function scrollerObj(name,initH,initW,heightB,widthB,content,initBg,Bg,speed,initFl)
{
//**data**//
this.name=name;
this.initH=initH;
this.initW=initW;
this.heightB=heightB;
this.widthB=widthB;
this.content=content;
this.initBg=initBg;
this.Bg=Bg;
this.iniFl=initFl;
this.speed=parseInt(speed);
this.timer = name + "Timer";
this.elem;
//**methods**//
this.getElement = getElement;
this.createLayer=createLayer;
this.scrollLayer = scrollLayer;
this.scrollLoop=scrollLoop;
//**initiate methods**//
this.createLayer();
this.getElement();
this.scrollLayer();
}
//**call this method to stop scrolling**//
function scrollLoop(s){
this.speed = s;
}
//**pretty obvious**//
function scrollLayer(){
if(parseInt(this.elem.style.top)>(this.elem.offsetHeight*(-1))){
this.elem.style.top = parseInt(this.elem.style.top)-this.speed;
}
else {this.elem.style.top = this.initH;}
}
//**get the specific dom-expression**//
function getElement(){
if(document.getElementById){
this.elem = document.getElementById(this.name);
}
else if (document.all){
this.elem = document.all[name];
}
else if (document.layers){
this.elem = document.layers[name];
}
}
//**pretty obvious - if NS4 - please upgrade to a standard compliant browser**//
function createLayer()
{
if(document.getElementById || document.all)
{
document.write('
');
document.write('
');
document.write(this.content);
document.write('<\/div><\/div>');
}
else if(document.layers)
{
document.write('
'+this.content+'<\/ilayer>');
return;
}
if(this.scrollLayer){
this.timer = setInterval(this.name+'.scrollLayer()','90');
}
}
function send_to(lang_type) {
var height,left;
width=310;
height=310;
window.open("send_to/send_to_friend.php?cookie_lang="+lang_type+"","", "menubar=no,resizable=no,scrollbars=no,toolbar=no,status=no,location=no,width="+width+",height="+height+",top=120,left=350");
}
function checkit_contant() {
a4 = document.contact_h_form.fname.value;
a5 = document.contact_h_form.email.value;
a6 = document.contact_h_form.phone.value;
if (a4 == "")
{
alert("Please insert your name")
document.contact_h_form.fname.focus()
return false;
}
if (a6 == "" && a5 == "")
{
alert("Please insert your phone number or Email address")
document.contact_h_form.phone.focus()
return false;
}
}
function openwin(id,page_data) {
myWin= open("tgova.php?cookie_lang=en&data[id]="+id+"&page_data[id]="+page_data,
"displayWindow",
"scrollbars=yes,width=300 ,height=325,status=no,toolbar=no,menubar=no,resizable=0, scrollbars=0, screenX=500, screenY=500");
}
function openwin2(id) {
myWin= open("view_tgova.php?cookie_lang=en&data[id]="+id,
"displayWindow",
"scrollbars=yes,width=300 ,height=325,status=no,toolbar=no,menubar=no,resizable=0, scrollbars=0, screenX=500, screenY=500");
}
function Show_top_slice_swf(id) {
document.getElementById(id).innerHTML = "";
}