var AcafaAds; var brOK=false; var mie=false; var vmin=2; var vmax=5; var vr=3; var timer1; function movechip(chipname, ww) { if(brOK) { eval("chip="+chipname); if(!mie) { pageX=window.pageXOffset; pageW=window.innerWidth; pageY=window.pageYOffset; pageH=window.innerHeight; } else { pageX=window.document.body.scrollLeft; pageW=window.document.body.offsetWidth-8; pageY=window.document.body.scrollTop; pageH=window.document.body.offsetHeight; } chip.xx=chip.xx+chip.vx; chip.yy=chip.yy+chip.vy; chip.vx+=vr*(Math.random()-0.5); chip.vy+=vr*(Math.random()-0.5); if(chip.vx>(vmax+vmin)) chip.vx=(vmax+vmin)*2-chip.vx; if(chip.vx<(-vmax-vmin)) chip.vx=(-vmax-vmin)*2-chip.vx; if(chip.vy>(vmax+vmin)) chip.vy=(vmax+vmin)*2-chip.vy; if(chip.vy<(-vmax-vmin)) chip.vy=(-vmax-vmin)*2-chip.vy; if(chip.xx<=pageX) { chip.xx=pageX; chip.vx=vmin+vmax*Math.random(); } if(chip.xx>=pageX+pageW-chip.w) { chip.xx=pageX+pageW-chip.w; chip.vx=-vmin-vmax*Math.random(); } if(chip.xx>=pageW - ww -12) { chip.xx=chip.xx-20; chip.vx=-vmin-vmax*Math.random(); } if(chip.yy<=pageY) { chip.yy=pageY; chip.vy=vmin+vmax*Math.random(); } if(chip.yy>=pageY+pageH-chip.h) { chip.yy=pageY+pageH-chip.h; chip.vy=-vmin-vmax*Math.random(); } if (document.getElementById) { document.getElementById(chip.named).style.left=chip.xx; document.getElementById(chip.named).style.top =chip.yy; } else if(document.layers) { eval('document.'+chip.named+'.top ='+chip.yy); eval('document.'+chip.named+'.left='+chip.xx); } else { eval('document.all.'+chip.named+'.style.pixelLeft='+chip.xx); eval('document.all.'+chip.named+'.style.pixelTop ='+chip.yy); } chip.timer1=setTimeout("movechip('"+chip.named+"'," + ww + ")",80); } } function StopMe(chipname) { if(brOK) { eval("chip="+chipname); if(chip.timer1!=null) { clearTimeout(chip.timer1) } } } function AcafaAds(ww) { var pageW; if(navigator.appName.indexOf("Internet Explorer")!=-1) { if(parseInt(navigator.appVersion.substring(0,1))>=4) brOK=navigator.javaEnabled();mie=true; pageW=window.document.body.offsetWidth-8; } if(navigator.appName.indexOf("Netscape")!=-1) { if(parseInt(navigator.appVersion.substring(0,1))>=4) brOK=navigator.javaEnabled(); pageW=window.innerWidth; } AcafaAds.named="AcafaAds"; AcafaAds.vx=vmin+vmax*Math.random(); AcafaAds.vy=vmin+vmax*Math.random(); AcafaAds.w=2; AcafaAds.h=2; AcafaAds.xx=pageW - ww - 20; AcafaAds.yy=0; AcafaAds.timer1=null; movechip("AcafaAds", ww); } function FloatAds(url,imgurl,title,ww) { document.write('
'); document.write(''); document.write('
'); AcafaAds(ww); } function getposOffset(what, offsettype){ var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop; var parentEl=what.offsetParent; while (parentEl!=null){ totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop; parentEl=parentEl.offsetParent; } return totaloffset; } function ToggleMenu(hpLink,classCode) { newsMenu = document.getElementById('change_stat'+classCode); newsMenu.style.left = getposOffset(hpLink, "left")-168; newsMenu.style.top = getposOffset(hpLink, "top") + hpLink.offsetHeight; if (newsMenu.style.visibility == "hidden") { newsMenu.style.visibility = "visible"; newsMenu.style.display = 'block'; } else { newsMenu.style.visibility = "hidden"; newsMenu.style.display = 'none'; } } function onLoginForm_KeyPress() { var e = event.srcElement; if(event.keyCode == 13 && e.tagName == "INPUT" && e.type == "text") { event.keyCode = 0; } } function ShowFlash(obj,strMediaURL,obj_width,obj_height){ document.write('\n'); document.write(' \n'); document.write(' \n'); document.write(' \n'); document.write(' \n'); document.write(' \n'); document.write(' \n'); document.write(' \n'); document.write(' \n'); document.write('\n'); } function ShowMovie(obj,strMediaURL,obj_width,obj_height){ document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); } function ShowMusic(obj,obj_width,obj_height){ document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); } function slideLine(ul, delay, speed, lh) { var slideBox = (typeof ul == 'string')?document.getElementById(ul):ul; if(slideBox.getElementsByTagName('li').length == 0) return; var delay = delay||1000, speed=speed||20, lh = lh||20; var tid = null, pause = false; var start = function() { tid=setInterval(slide, speed); } var slide = function() { if (pause) return; slideBox.scrollTop += 2; if (slideBox.scrollTop % lh == 0) { clearInterval(tid); slideBox.appendChild(slideBox.getElementsByTagName('li')[0]); slideBox.scrollTop = 0; setTimeout(start, delay); } } slideBox.onmouseover=function(){pause=true;} slideBox.onmouseout=function(){pause=false;} setTimeout(start, delay); } function Show_TabMenu(tabadid_num,tabadnum,tmpMenu,tmpList,tmpClassOn,tmpItems){ for(var i=0;i0) this.Width=arguments[3]; if(arguments[4]>0) this.Height=arguments[4]; this.Timer=arguments[5]; this.WaitTime=arguments[6]; this.StopTime=arguments[7]; if(arguments[8]) this.ScrollStep=arguments[8]; else this.ScrollStep=this.Direction>1?this.Width:this.Height; this.CTL=this.StartID=this.Stop=this.MouseOver=0; this.ID.style.overflowX=this.ID.style.overflowY="hidden"; this.ID.noWrap=true; if(arguments[3]>0) this.ID.style.width=this.Width; if(arguments[4]>0) this.ID.style.height=this.Height; this.ClientScroll=this.Direction>1?this.ID.scrollWidth:this.ID.scrollHeight; this.ID.innerHTML+=this.ID.innerHTML; this.Start(this,this.Timer,this.WaitTime,this.StopTime); } Marquee.prototype.Start=function(msobj,timer,waittime,stoptime){ msobj.StartID=function(){ msobj.Scroll(); } msobj.Continue=function(){ if(msobj.MouseOver==1) setTimeout(msobj.Continue,waittime); else{ clearInterval(msobj.TimerID); msobj.CTL=msobj.Stop=0; msobj.TimerID=setInterval(msobj.StartID,timer); } } msobj.Pause=function(){ msobj.Stop=1; clearInterval(msobj.TimerID); setTimeout(msobj.Continue,waittime); } msobj.Begin=function(){ msobj.TimerID=setInterval(msobj.StartID,timer); msobj.ID.onmouseover=function(){ msobj.MouseOver=1; clearInterval(msobj.TimerID); } msobj.ID.onmouseout=function(){ msobj.MouseOver=0; if(msobj.Stop==0){ clearInterval(msobj.TimerID); msobj.TimerID=setInterval(msobj.StartID,timer); } } } setTimeout(msobj.Begin,stoptime); } Marquee.prototype.Scroll=function(){ switch(this.Direction){ case 0: this.CTL+=this.Step; if(this.CTL>=this.ScrollStep&&this.WaitTime>0){ this.ID.scrollTop+=this.ScrollStep+this.Step-this.CTL; this.Pause(); return; } else{ if(this.ID.scrollTop>=this.ClientScroll) this.ID.scrollTop-=this.ClientScroll; this.ID.scrollTop+=this.Step; } break; case 1: this.CTL+=this.Step; if(this.CTL>=this.ScrollStep&&this.WaitTime>0){ this.ID.scrollTop-=this.ScrollStep+this.Step-this.CTL; this.Pause(); return; } else{ if(this.ID.scrollTop<=0) this.ID.scrollTop+=this.ClientScroll; this.ID.scrollTop-=this.Step; } break; case 2: this.CTL+=this.Step; if(this.CTL>=this.ScrollStep&&this.WaitTime>0){ this.ID.scrollLeft+=this.ScrollStep+this.Step-this.CTL; this.Pause(); return; } else{ if(this.ID.scrollLeft>=this.ClientScroll) this.ID.scrollLeft-=this.ClientScroll; this.ID.scrollLeft+=this.Step; } break; case 3: this.CTL+=this.Step; if(this.CTL>=this.ScrollStep&&this.WaitTime>0){ this.ID.scrollLeft-=this.ScrollStep+this.Step-this.CTL; this.Pause(); return; } else{ if(this.ID.scrollLeft<=0) this.ID.scrollLeft+=this.ClientScroll; this.ID.scrollLeft-=this.Step; } break; } } function ProductShowPassword(idStr) { divPassWordMenu = document.getElementById('divPassWord'); btnShow = document.getElementById(idStr); divPassWordMenu.style.left = getposOffset(btnShow, "left")+75; divPassWordMenu.style.top = getposOffset(btnShow, "top") + btnShow.offsetHeight-80; if (divPassWordMenu.style.visibility == "hidden") { divPassWordMenu.style.visibility = "visible"; divPassWordMenu.style.display = 'block'; } else { divPassWordMenu.style.visibility = "hidden"; divPassWordMenu.style.display = 'none'; } } function CompanyProductRedirectLoginPage() { top.location.href="/Mphjo.btqy"; }