
function popUp(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable=yes';
win=window.open(mypage,myname,settings);
}

// Parag
function popUpParag(mypage,myname,w,h,scroll){
LeftPosition = 0;
TopPosition = 310;
settings ='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable=yes';
win=window.open(mypage,myname,settings);

}


function cross_marquee(delayb4scroll, marqueespeed, pauseit){

if(!cross_marquee.ar)

cross_marquee.ar=[];

cross_marquee.ar[this.mqid=cross_marquee.ar.length]=this;

this.delayb4scroll=delayb4scroll;

this.marqueespeed=marqueespeed;

this.pauseit=pauseit;

this.copyspeed=this.marqueespeed

this.pausespeed=(this.pauseit==0)? this.copyspeed: 0;

this.actualheight=''

document.write('<div id="marqueecontainer'+this.mqid+'" onmouseover="cross_marquee.ar['+this.mqid+'].copyspeed=cross_marquee.ar['+this.mqid+'].pausespeed" onmouseout="cross_marquee.ar['+this.mqid+'].copyspeed=cross_marquee.ar['+this.mqid+'].marqueespeed">\n'+

'<div id="vmarquee'+this.mqid+'" style="position: absolute; width: 98%;">')

this.cross_marquee=document.getElementById("vmarquee"+this.mqid)

this.cross_marquee.style.top=0

this.marqueeheight=document.getElementById("marqueecontainer"+this.mqid).offsetHeight

var cacheobj=this;

setTimeout(function(){cacheobj.lefttime=setInterval("cross_marquee.ar["+cacheobj.mqid+"].scrollmarquee()",30)}, cacheobj.delayb4scroll)

}

cross_marquee.prototype.scrollmarquee=function(){

this.actualheight=this.cross_marquee.offsetHeight

if (parseInt(this.cross_marquee.style.top)>(this.actualheight*(-1)-28))

this.cross_marquee.style.top=parseInt(this.cross_marquee.style.top)-this.copyspeed+"px"

else

this.cross_marquee.style.top=parseInt(this.marqueeheight)+8+"px"

}

