document.writeln('<layer name="txt"><div id="txt" style="position:absolute; left:0px; visibility:visible;">');
document.writeln('<A HREF="#"><IMG SRC="images/topbtn.gif" BORDER="0"></A>'+jsfldelim(2)+'');
document.writeln('</div></layer>');
z=0;

//document.write("hello");

var delay=10;
var x1=500;
var y1=300;

wt=screen.width;
//alert(wt);

if(wt==800)
{
x1=x1+240;
y1=y1+70;
}

if(wt==1024)
{
x1=x1+480;
y1=y1+230;}

if(wt==1152)
{
x1=x1+580;
y1=y1+340;
}
if(wt==1280)
{
x1=x1+640;
y1=y1+460;
}

ns4 = (navigator.appName.indexOf("Netscape")>=0 && document.layers)? true : false;
ie4 = (document.all && !document.getElementById)? true : false;
ie5 = (document.all && document.getElementById)? true : false;
op5 = (navigator.userAgent.indexOf("Opera")>=0)? true : false;

var txtA;

function jsfldelim(ddd) {

  if (ddd==1)  return "&nbsp;";
  else if (ddd==2) return "<br>";
  else return "";
	

}

function moveid(id,x,y)
{

if((ie4||ie5)&&!op5)
	{
	x=x+document.body.scrollLeft;
	y=y+document.body.scrollTop;
	}
	else
	{
	x=x+pageXOffset;
	y=y+pageYOffset;

/*	if(z==0)	
	{
	alert("hello");
	z=1;	
	}
*/
	}
	

	if(ns4){ alert("hello"); id.moveTo(x,y); }

	else
	{
	  if (op5) 
		{
		id.style.left=x;
		id.style.top=y;
 		 } 

		else 
		{
		id.style.left=x+'px';
		id.style.top=y+'px';
	 	 }

	}

//alert("hello2");
}



function movetxts(){
 if ((document.all) && (!op5)) {
  x = x1 //Math.round((document.body.clientWidth-50)*x1/150);
  y = y1 //Math.round((document.body.clientHeight-64)*y1/150);

	
/*	if(z==0)	
	{
	alert(document.body.clientWidth + " " + x1);
	z=1;	
	}	

*/

 } else {
  x =x1 //Math.round((window.innerWidth-50)*x1/150);
  y =y1 //Math.round((window.innerHeight-64)*y1/100);


/*	//z=0;
	if(z==0)	
	{
	alert(x);
	z=1;	
	}
*/
	
 }
 moveid(txtA,x,y);
}

txtA=(ns4)?document.layers['txt']:(ie4)?document.all['txt']:document.getElementById('txt');
setInterval('movetxts()',delay);
self.name="main";
//alert(window.self.name);

function wn1(wname, ht, wt)
{
window.open(wname,'','menubar=no,scrollbars=yes,resizable=yes,width=' + wt + ',height=' + ht);
} 

