﻿function dynamicContentShowRight(target,id,content,offset){
  var div=document.createElement ("div");
  $(div).addClass("dynamiccontent");
  div.id=id;
  $(div).html(content);
  if (offset){
    $(div).css({position:"absolute",top:$(target).position().top+3,left:$(target).position().left+offset,zIndex:99});
  }
  else{
    $(div).css({position:"absolute",top:$(target).position().top+3,left:$(target).position().left+170,zIndex:99});
  }
  
  if(document.getElementById (div.id)){
  }
  else{
    $(target).append(div);
    setTimeout (function(){
       $(div).hide("slow");
       setTimeout (function(){
         $(div).remove();
       },1000);  
    },2000);
  } 
}
function screenPrompt(content){
  $(".screenprompt").css({position:"absolute",left:0,top:0,width:$("body").width,height:$("body").height,background:"#cccccc",opacity:0.6}).show();
  $(".promptcontent").css({position:"absolute",left:($("body").width-$(this).width)/2,top:($("body").height-$(this).height)/2}).show();
  $(".promptcontent").show();
}