var browser; var browserver; var css_browser_selector = function() {var ua=navigator.userAgent.toLowerCase(),is=function(t){return ua.indexOf(t) != -1;},h=document.getElementsByTagName('html')[0],b=(!(/opera|webtv/i.test(ua))&&/msie\s(\d)/.test(ua))?('ie ie'+RegExp.$1):is('firefox/2')?'gecko ff2':is('firefox/3')?'gecko ff3':is('gecko/')?'gecko':is('opera/9')?'opera opera9':/opera\s(\d)/.test(ua)?'opera opera'+RegExp.$1:is('konqueror')?'konqueror':is('chrome')?'chrome webkit safari':is('applewebkit/')?'webkit safari':is('mozilla/')?'gecko':'',os=(is('x11')||is('linux'))?' linux':is('mac')?' mac':is('win')?' win':'';var c=b+os+' js'; h.className += h.className?' '+c:c; browser=b.split(' ')[0]; browserver=b.split(' ')[1]; }(); var agt = navigator.userAgent.toLowerCase(); var is_ie = false; function recieveFromFlash(data) { // alert(data); if(data == "getFlag") sendExternalInterface("0"); return true; } function getMovie() { var M$ = navigator.appName.indexOf("Microsoft")!=-1; object=(M$ ? window : document)["cards"]; // if(typeof object.sendFromJS == "undefined") { // for(j=0;j 100) opacityAsInt = opacityAsDecimal = 100; else if (opacityAsInt < 0) opacityAsInt = opacityAsDecimal = 0; opacityAsDecimal /= 100; if (opacityAsInt < 1) opacityAsInt = 1; elem.style.opacity = (opacityAsDecimal); elem.style.filter = "alpha(opacity=" + opacityAsInt + ")"; } function FadeOpacity(elemId, fromOpacity, toOpacity, time, fps){ var steps = Math.ceil(fps * (time / 1000)); var delta = (toOpacity - fromOpacity) / steps; FadeOpacityStep(elemId, 0, steps, fromOpacity, delta, (time / steps)); } function FadeOpacityStep(elemId, stepNum, steps, fromOpacity, delta, timePerStep){ SetOpacity(document.getElementById(elemId), Math.round(parseInt(fromOpacity) + (delta * stepNum))); if (stepNum < steps) setTimeout("FadeOpacityStep('" + elemId + "', " + (stepNum+1) + ", " + steps + ", " + fromOpacity + ", "+ delta + ", " + timePerStep + ");", timePerStep); } var arrImgs=Array('headerrightimg3','headerrightimg4','headerrightimg5','headerrightimg6'); function startSlide(id) { id=id || 0; // FadeOpacity(arrImgs[id].id, 100, 0, 160, 20); // alert(id+'\n'+arrImgs[id].style.zIndex+'\n'+arrImgs[id].style.filter) SetOpacity(arrImgs[(((id+1)==arrImgs.length) ? 0 : (id+1))], 0); SetOpacity(arrImgs[((id==0) ? (arrImgs.length-1) : (id-1))], 0); arrImgs[id].style.zIndex='4'; id++; if(id==arrImgs.length) id=0; arrImgs[id].style.zIndex='5'; FadeOpacity(arrImgs[id].id, 0, 100, 160, 20); setTimeout('startSlide('+id+');',15000); } function startPictures() { document.getElementById('headerleftimg').style.display='block'; for(i in arrImgs) { arrImgs[i]=document.getElementById(arrImgs[i]); if(i==0) { // arrImgs[i].style.display='block'; document.getElementById('headerdiv').style.backgroundImage="none"; SetOpacity(arrImgs[i], 100); } } } function flashFix(retry) { retry=retry || 0; if(!document.embeds.length) { if(retry++==10) return; setTimeout('flashFix('+retry+');',100); return; } for(i=0;i'+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''; } function Init() { // flashFix(); if(is_ie) { fnInitAniMenu(); } document.getElementById('headerdiv').innerHTML=''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''; createCards(); // alert(document.getElementById('carddiv').innerHTML); } function pageWidth(){return window.innerWidth != null ? window.innerWidth : document.documentElement && document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body != null ? document.body.clientWidth : null;} function pageHeight(){return window.innerHeight != null? window.innerHeight : document.documentElement && document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body != null? document.body.clientHeight : null;} // function posLeft(){return typeof window.pageXOffset != 'undefined' ? window.pageXOffset :document.documentElement && document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ? document.body.scrollLeft : 0;} // function posTop(){return typeof window.pageYOffset != 'undefined' ? window.pageYOffset : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ? document.body.scrollTop : 0;} // function posRight(){return posLeft()+pageWidth();} // function posBottom(){return posTop()+pageHeight();} var position = false; var size = false; var step = 10; var flag = false; var ison = false; function setMove(x,y) { position.marginTop='-'+y+'px'; position.marginLeft='-'+x+'px'; size.width=x+"px"; size.height=y+50+"px"; } function startMovie(x,y) { if(!position) { position = document.getElementById('cardsposition').style; } if(!size) { size = document.getElementById('cardssize').style; } y=y || (pageHeight()/2)+40; x=x || (pageWidth()/2)+200; newx = Math.ceil(x/step); newy = Math.ceil(y/step); if(step>=1) { step=step-0.2; if(flag) { setMove(newx,newy); setTimeout('startMovie('+x+','+y+');',10); } else { if(newx>200 && newy>35) flag=true; step=step-0.2; setTimeout('startMovie('+x+','+y+');',0); } } else { ison = true; step = 10; flag = false; } } function stopMovie() { ison = false; if(!position) { position = document.getElementById('cardsposition').style; } if(!size) { size = document.getElementById('cardssize').style; } position.marginTop='-35px'; position.marginLeft='-250px'; size.width="253px"; size.height="86px"; document.getElementById('carddiv').innerHTML=''; setTimeout("createCards();",100); } function hideCards() { if(typeof ison!='undefined') if(ison) { // if(true) { ison = false; stopMovie(); document.getElementById('carddiv').innerHTML=''; setTimeout("createCards();",100); } }