var baseline;
var xs_bv=0;
var xs_pHeight=335;
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()
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(){
baseline = getPageCoords(popdownBaseline);
xs_pTop = baseline.y - xs_pHeight; if((xs_bv)&&(!xs_ranonce)){
xs_pDiv2.style.left=xs_pDiv.style.left=((document.body.offsetWidth/2)-160)
xs_pd();
}
else{
if(xs_pTuck == 1){
if (xs_pDivSeen != 1){
xs_pDiv.style.clip="rect(0,320,335,0)";
xs_pDiv.style.display="";
// xs_pDiv.style.top=31;
}
xs_endpt=(document.body.offsetWidth/2)-160;
xs_tuck();
}
}
}
function xs_pd(){
xs_ranonce=1;
if (((xs_pHeight<335)&&(xs_updown==0)) || ((xs_pHeight>3)&&(xs_updown==1))) {
if(xs_pHeight==335){xs_pDiv.style.display=""}
(xs_updown==0)?xs_pHeight+=3:xs_pHeight-=3;
(xs_updown==0)?xs_pTop-=3:xs_pTop+=3;
xs_pDiv.style.clip="rect(" + xs_pHeight + ",320,335,0)";
xs_pDiv.style.top=(xs_pTop+"px");
setTimeout("xs_pd();",20);
}
else{
if (xs_updown==1){
xs_pDiv.style.clip="rect(0,320,335,0)";
xs_pDiv.style.top=baseline.y;
xs_pDiv2.style.top=baseline.y + "px";
xs_updown=0;
xs_pDiv2.style.display='';
setTimeout("xs_pd();",10000);
} else{
xs_pDiv.style.display='none';
xs_pDivSeen = 1;
xs_endpt=(document.body.offsetWidth/2)-160;
xs_tuck();
}
}
}
function xs_tuck(){
if(xs_endpt<(document.body.offsetWidth-355)){
xs_endpt+=5;
xs_pDiv2.style.left=xs_endpt;
setTimeout("xs_tuck();",20);
}
else{xs_pTuck = 1}
} function getPageCoords(element) {
var coords = {x: 0, y: 0};
while (element) {
coords.x += element.offsetLeft;
coords.y += element.offsetTop;
element = element.offsetParent;
}
return coords;
}

