document.writeln("<div id=postit>");
document.writeln("	<div align=right>");
document.writeln("		<a href=javascript:closeit()>");
document.writeln("		<img src=/merav/promo/close.gif border=0 alt=свеш onMouseOver=src='/merav/promo/close.gif'; onMouseOut=src='/merav/promo/close.gif';>");
document.writeln("		</a>");
document.writeln("	</div>");
document.writeln("<!--INSERT YOUR CONTENT HERE-->");
document.writeln("	<div id=promo align=center>");
document.writeln("		<div class='flashpromo'>");
document.writeln("			<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='316' height='136' id='banner'>");
document.writeln("				<param name='allowScriptAccess' value='sameDomain' />");
document.writeln("				<param name='movie' value='/merav/promo/promo.swf' />");
document.writeln("				<param name='quality' value='high' />");
document.writeln("				<param name='bgcolor' value='#ffffff' />");
document.writeln("				<param name='wmode' value='transparent' />");
document.writeln("				<embed src='/merav/promo/promo.swf' wmode='transparent' quality='high' bgcolor='#ffffff' width='315' height='136' name='banner' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
document.writeln("			</object>");
document.writeln("		</div>");
document.writeln("	</div>");
document.writeln("<!--END YOUR CONTENT HERE-->");
document.writeln("</div>");




//Post-it only once per browser session? (0=no, 1=yes)
//Specifying 0 will cause postit to display every time page is loaded
var once_per_browser=0

///No need to edit beyond here///

var ns4=document.layers
var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ns4)
crossobj=document.layers.postit
else if (ie4||ns6)
crossobj=ns6? document.getElementById("postit") : document.all.postit


function closeit(){
if (ie4||ns6)
crossobj.style.visibility="hidden"
else if (ns4)
crossobj.visibility="hide"
}

function get_cookie(Name) {
  var search = Name + "="
  var returnvalue = "";
  if (document.cookie.length > 0) {
    offset = document.cookie.indexOf(search)
    if (offset != -1) { // if cookie exists
      offset += search.length
      // set index of beginning of value
      end = document.cookie.indexOf(";", offset);
      // set index of end of cookie value
      if (end == -1)
         end = document.cookie.length;
      returnvalue=unescape(document.cookie.substring(offset, end))
      }
   }
  return returnvalue;
}

function showornot(){
if (get_cookie('postdisplay')==''){
showit()
document.cookie="postdisplay=yes"
}
}

function showit(){
if (ie4||ns6)
crossobj.style.visibility="visible"
else if (ns4)
crossobj.visibility="show"
}

if (once_per_browser)
showornot()
else
showit()



//drag drop function for ie4+ and NS6////
/////////////////////////////////

function drag_drop(e){
if (ie4&&dragapproved){
crossobj.style.left=tempx+event.clientX-offsetx+'px'
crossobj.style.top=tempy+event.clientY-offsety+'px'
return false
}
else if (ns6&&dragapproved){
crossobj.style.left=tempx+e.clientX-offsetx+'px'
crossobj.style.top=tempy+e.clientY-offsety+'px'
return false
}
}

function initializedrag(e){
if (ie4&&event.srcElement.id=="postit"||ns6&&e.target.id=="postit"){
offsetx=ie4? event.clientX : e.clientX
offsety=ie4? event.clientY : e.clientY

tempx=parseInt(crossobj.style.left)
tempy=parseInt(crossobj.style.top)

dragapproved=true
document.onmousemove=drag_drop
}
}
document.onmousedown=initializedrag
document.onmouseup=new Function("dragapproved=false")
