function marquee_js()
{
this.marquee_js_name;
this.marquee_speed;
this.marquee_obj1;
this.marquee_obj2;
this.marquee_obj3;
this.marquee_MyMar;
this.marquee_mtype;

this.set_marquee_value=function(jname,mspeed,mobj1,mobj2,mobj3,mwidth,mheight,mtype)
{
this.marquee_js_name=jname;
this.marquee_speed=mspeed;
this.marquee_obj1=mobj1;
this.marquee_obj2=mobj2;
this.marquee_obj3=mobj3;
this.marquee_obj1.style.overflow='hidden';
this.marquee_obj1.style.height=mheight;
this.marquee_obj1.style.width=mwidth;
this.marquee_mtype=(mtype=='width')?('.make_marquee_mygd2()'):((mtype=='height')?('.make_marquee_mygd1()'):('.make_marquee_mygd2()'));
}
this.make_marquee=function()
{
this.marquee_obj3.innerHTML=this.marquee_obj2.innerHTML;
this.marquee_MyMar=setInterval(this.marquee_js_name+this.marquee_mtype,this.marquee_speed);
}

this.marquee_mouse_over=function()
{
clearInterval(this.marquee_MyMar);
}
this.marquee_mouse_out=function()
{
this.marquee_MyMar=setInterval(this.marquee_js_name+this.marquee_mtype,this.marquee_speed);
}

this.make_marquee_mygd1=function() 
{
if(this.marquee_obj3.offsetTop-this.marquee_obj1.scrollTop<=0)
{
this.marquee_obj1.scrollTop-=this.marquee_obj2.offsetHeight;
}
else
{
this.marquee_obj1.scrollTop++;
}
}
this.make_marquee_mygd2=function() 
{
if(this.marquee_obj3.offsetWidth-this.marquee_obj1.scrollLeft<=0)
{
this.marquee_obj1.scrollLeft-=this.marquee_obj2.offsetWidth;
}
else
{
this.marquee_obj1.scrollLeft++;
}
}
}
