var xs_bv=0;
var xs_pTop=0;
var xs_pHeight=210;
var xs_pIcrement=1;  // up down speed


var xs_updown=1;
var xs_endpt=0;
var xs_ranonce=0;
var xs_pDivSeen=0;
var xs_pTuck=0;
var ua=navigator.userAgent.toLowerCase()

// added by ihab
//var myLeftPos = 100;   //582; //the Left pos
//var myTOPPos =56; // 250; // the div top 

//var xs_exp = new Date(); 
//xs_exp.setTime(xs_exp.getTime()+(48*60*60*1000));

if ( (ua.indexOf("opera")==-1)&&((ua.indexOf("msie")!=-1)&&(ua.indexOf("windows")!=-1))||((ua.indexOf("msie 5")!=-1)&&(ua.indexOf("mac")!=-1)) ) {xs_bv=1}

function xs_pdEx()
{
//alert(document.body.offsetWidth)

	if((xs_bv)&&(!xs_ranonce))
		{
		xs_pd();
		}
}


function xs_pd()
{
	xs_ranonce=1;
	//xs_pDiv.style.left= (document.body.offsetWidth/2) - myLeftPos
	//alert(xs_pDiv.style.left)
	xs_pDiv.style.left= myLeftPos
		
	if (((xs_pHeight<210)&&(xs_updown==0)) || ((xs_pHeight>xs_pIcrement)&&(xs_updown==1))) 
	{
		if(xs_pHeight==210){xs_pDiv.style.display=""}
		(xs_updown==0)?xs_pHeight+=xs_pIcrement:xs_pHeight-=xs_pIcrement;
		(xs_updown==0)?xs_pTop-=xs_pIcrement:xs_pTop+=xs_pIcrement;
		xs_pDiv.style.clip="rect(" + xs_pHeight + ",520,210,0)";
		xs_pDiv.style.top= xs_pTop-210 + myTOPPos;
		//xs_pDiv.style.backgroundColor ="red";
		setTimeout("xs_pd();",10);
	}
	else
	{

	if (xs_updown==1)
	{
	xs_pDiv.style.clip="rect(0,320,210,0)";
	//xs_pDiv.style.top=54;
	xs_updown=0;
	xs_pDiv.style.display='';
	setTimeout("xs_pd();",10000);
	//xs_pDiv.style.backgroundColor ="yellow"; 
	}

}
}

