function setCookie() 
{ 
  var FromUrl=window.location.toString();
      FromUrl=FromUrl.replace("http://","");
	  FromUrl=FromUrl.replace("www.","");
	  FromUrl=FromUrl.substring(0,FromUrl.indexOf("/"));
  var now=new Date();
//set cookie  expires date 1000ms*60*60
  now.setTime( now.getTime() + 1000 * 60 * 60 );
  var the_cookie = escape("FromUrl="+FromUrl+";expires="+now.toGMTString());
  document.cookie = the_cookie;//write Cookie
} 
function readCookie()
{ var the_cookie = document.cookie; 
  return unescape(the_cookie);
}
setCookie();
//end of init cookie
var imgheight
var imgleft
document.ns = navigator.appName == "Netscape"
IDCheight=130;
 


var IDCwidth=125;  //imagewidth
var IDCleft=window.screen.width-IDCwidth-30;
function IDCload()
{
if (navigator.appName == "Netscape")
{document.IDC.pageY=pageYOffset+IDCheight;
document.IDC.pageX=IDCleft;
leftmove();
}
else
{
IDC.style.top=document.body.scrollTop+IDCheight;
IDC.style.pixelLeft=IDCleft;
leftmove();
}
}
function leftmove()
 {
 if(document.ns)
 {
 document.IDC.top=pageYOffset+IDCheight
 document.IDC.pageX=IDCleft;
 setTimeout("leftmove();",80)
 }
 else
 {
 IDC.style.top=document.body.scrollTop+IDCheight;
 IDC.style.pixelLeft=IDCleft;
 setTimeout("leftmove();",80)
 }
 }

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true)

if (navigator.appName == "Netscape")
{
document.write("<layer id=IDC top=125 width=125 height=80><EMBED src='../ad/125X125.swf' quality=high  wmode=Window WIDTH=100 HEIGHT=300 TYPE='application/x-shockwave-flash' id=adleft></EMBED></layer>");
IDCload()}
else
{
document.write("<span id=IDC style='position: absolute;width:64;top:250;visibility: visible;z-index: 1000'><EMBED src='../ad/125X125.swf' quality=high  wmode=Window WIDTH=125 HEIGHT=125 TYPE='application/x-shockwave-flash' id=adleft></EMBED></span>");
IDCload()
}
function getClientSize()
{
    //pageW=window.document.body.offsetWidth-8;
    //pageH=window.document.body.offsetHeight;
    IDCleft=window.document.body.offsetWidth-30-IDCwidth;
}
window.onresize=getClientSize;
window.onload=getClientSize;