﻿// JScript File: added on 03.17.2009 for used to reduce no of Template Main master page
/* page events*/
var _strLoadFunctions="";
function DoLoadTask(){
try{browser_detect();setTimeout("__BannerRefreshContent(1)",__TeaserRefreshFrequency*1000);eval(_strLoadFunctions);}catch(e){}}
window.onerror=HandleError;window.onload=DoLoadTask;

/* browser detection */
var d,dom,nu='',brow='',ie,ie4,ie5,ie5x,ie6,ie7,ie8;var ns4,moz,moz_rv_sub,release_date='',moz_brow,moz_brow_nu='',moz_brow_nu_sub='',rv_full='';var mac,win,old,lin,ie5mac,ie5xwin,konq,saf,op,op4,op5,op6,op7;d=document;n=navigator;nav=n.appVersion;nan=n.appName;nua=n.userAgent;old=(nav.substring(0,1)<4);mac=(nav.indexOf('Mac')!=-1);win=(((nav.indexOf('Win')!=-1)||(nav.indexOf('NT')!=-1))&&!mac)?true:false;lin=(nua.indexOf('Linux')!=-1);if(!document.layers)
{dom=(d.getElementById)?d.getElementById:false;}
else{dom=false;ns4=true;}
op=(nua.indexOf('Opera')!=-1);saf=(nua.indexOf('Safari')!=-1);konq=(!saf&&(nua.indexOf('Konqueror')!=-1))?true:false;moz=((!saf&&!konq)&&(nua.indexOf('Gecko')!=-1))?true:false;ie=((nua.indexOf('MSIE')!=-1)&&!op);if(op)
{str_pos=nua.indexOf('Opera');nu=nua.substr((str_pos+6),4);brow='Opera';}
else if(saf)
{str_pos=nua.indexOf('Safari');nu=nua.substr((str_pos+7),5);brow='Safari';}
else if(konq)
{str_pos=nua.indexOf('Konqueror');nu=nua.substr((str_pos+10),3);brow='Konqueror';}
else if(moz)
{pattern=/[(); \n]/;moz_types=new Array('Firebird','Phoenix','Firefox','Iceweasel','Galeon','K-Meleon','Camino','Epiphany','Netscape6','Netscape','MultiZilla','Gecko Debian','rv');rv_pos=nua.indexOf('rv');rv_full=nua.substr(rv_pos+3,6);rv_slice=(rv_full.search(pattern)!=-1)?rv_full.search(pattern):'';(rv_slice)?rv_full=rv_full.substr(0,rv_slice):'';nu=rv_full.substr(0,3);for(i=0;i<moz_types.length;i++)
{if(nua.indexOf(moz_types[i])!=-1)
{moz_brow=moz_types[i];break;}}
if(moz_brow)
{str_pos=nua.indexOf(moz_brow);moz_brow_nu=nua.substr((str_pos+moz_brow.length+1),3);moz_brow_nu=(isNaN(moz_brow_nu))?moz_brow_nu=nu:moz_brow_nu;moz_brow_nu_sub=nua.substr((str_pos+moz_brow.length+1),8);sub_nu_slice=(moz_brow_nu_sub.search(pattern)!=-1)?moz_brow_nu_sub.search(pattern):'';(sub_nu_slice)?moz_brow_nu_sub=moz_brow_nu_sub.substr(0,sub_nu_slice):'';}
if(moz_brow=='Netscape6')
{moz_brow='Netscape';}
else if(moz_brow=='rv'||moz_brow=='')
{moz_brow='Mozilla';}
if(!moz_brow_nu)
{moz_brow_nu=nu;moz_brow_nu_sub=nu;}
if(n.productSub)
{release_date=n.productSub;}}
else if(ie)
{str_pos=nua.indexOf('MSIE');nu=nua.substr((str_pos+5),3);brow='Microsoft Internet Explorer';}
else
{brow=nan;}
op5=(op&&(nu.substring(0,1)==5));op6=(op&&(nu.substring(0,1)==6));op7=(op&&(nu.substring(0,1)==7));op8=(op&&(nu.substring(0,1)==8));op9=(op&&(nu.substring(0,1)==9));ie4=(ie&&!dom);ie5=(ie&&(nu.substring(0,1)==5));ie6=(ie&&(nu.substring(0,1)==6));ie7=(ie&&(nu.substring(0,1)==7));ie8 = (ie && (nu.substring(0, 1) == 8));if(!nu)
{nu=nav.substring(0,1);}
ie5x=(d.all&&dom);ie5mac=(mac&&ie5);ie5xwin=(win&&ie5x);

/* common */
var __TeaserRefreshFrequency=4;var requiredMajorVersion=8;var requiredMinorVersion=0;var requiredRevision=0;function _$(pId){return document.getElementById(pId);}
function __$(pName){return document.getElementsByName(pName);}
function HandleError(){return false;}
function GetRandomInt(pUpperLimit){var ran_unrounded=Math.random()*pUpperLimit;return Math.floor(ran_unrounded);}
function LoadScript(pScriptFileName,pID){if(_$(pID)){return;}
var scrptE=document.createElement("script");scrptE.type="text/javascript";if(pID){scrptE.id=pID;}
scrptE.setAttribute("language","JavaScript");scrptE.src=pScriptFileName;document.getElementsByTagName("head")[0].appendChild(scrptE);}
function LoadCSS(pScriptFileName,pID){if(_$(pID)){return;}
var scrptE=document.createElement("link");scrptE.type="text/css";if(pID){scrptE.id=pID;}
scrptE.href=pScriptFileName;scrptE.rel="stylesheet";document.getElementsByTagName("head")[0].appendChild(scrptE);}
function OpenPop(pUrlLink)
{window.open(pUrlLink,'_blank');}
var __isIE=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;var __isWin=(navigator.appVersion.toLowerCase().indexOf("win")!=-1)?true:false;var __isOpera=(navigator.userAgent.indexOf("Opera")!=-1)?true:false;function __ControlVersion()
{var version;var axo;var e;try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");version=axo.GetVariable("$version");}catch(e){}
if(!version)
{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");version="WIN 6,0,21,0";axo.AllowScriptAccess="always";version=axo.GetVariable("$version");}catch(e){}}
if(!version)
{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");version=axo.GetVariable("$version");}catch(e){}}
if(!version)
{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");version="WIN 3,0,18,0";}catch(e){}}
if(!version)
{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");version="WIN 2,0,0,11";}catch(e){version=-1;}}
return version;}
function __GetSwfVer(){var flashVer=-1;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var swVer2=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var flashDescription=navigator.plugins["Shockwave Flash"+swVer2].description;var descArray=flashDescription.split(" ");var tempArrayMajor=descArray[2].split(".");var versionMajor=tempArrayMajor[0];var versionMinor=tempArrayMajor[1];var versionRevision=descArray[3];if(versionRevision==""){versionRevision=descArray[4];}
if(versionRevision[0]=="d"){versionRevision=versionRevision.substring(1);}else if(versionRevision[0]=="r"){versionRevision=versionRevision.substring(1);if(versionRevision.indexOf("d")>0){versionRevision=versionRevision.substring(0,versionRevision.indexOf("d"));}}
var flashVer=versionMajor+"."+versionMinor+"."+versionRevision;}}
else if(navigator.userAgent.toLowerCase().indexOf("webtv/2.6")!=-1)flashVer=4;else if(navigator.userAgent.toLowerCase().indexOf("webtv/2.5")!=-1)flashVer=3;else if(navigator.userAgent.toLowerCase().indexOf("webtv")!=-1)flashVer=2;else if(__isIE&&__isWin&&!__isOpera){flashVer=__ControlVersion();}
return flashVer;}
function IsMatchedFlashVer(reqMajorVer,reqMinorVer,reqRevision)
{versionStr=__GetSwfVer();if(versionStr==-1){return false;}else if(versionStr!=0){if(__isIE&&__isWin&&!__isOpera){tempArray=versionStr.split(" ");tempString=tempArray[1];versionArray=tempString.split(",");}else{versionArray=versionStr.split(".");}
var versionMajor=versionArray[0];var versionMinor=versionArray[1];var versionRevision=versionArray[2];if(versionMajor>parseFloat(reqMajorVer)){return true;}else if(versionMajor==parseFloat(reqMajorVer)){if(versionMinor>parseFloat(reqMinorVer))
return true;else if(versionMinor==parseFloat(reqMinorVer)){if(versionRevision>=parseFloat(reqRevision))
return true;}}
return false;}}
function ViewAlertForFlashPlayer(msg){var vReqMajorVer=9;var vReqMinorVer=0;var vReqRevision=0;if(ie){vReqRevision=124;}
if(!IsMatchedFlashVer(vReqMajorVer,vReqMinorVer,vReqRevision)){alert(msg);window.open("http://www.adobe.com/go/getflashplayer","_blank");}}
function getFlashMovie(movieName){if(window.document[movieName]){return window.document[movieName];}else{return document.getElementById(movieName);}}
function ChangeImage(pImageId,pUrl){_$(pImageId).src=pUrl;}
function ToggleImage(pImageId,pImage1Url,pImage2Url){var strUrl=_$(pImageId).src;if(strUrl.toLowerCase().indexOf(pImage1Url.toLowerCase())!=-1){_$(pImageId).src=pImage2Url;}else{_$(pImageId).src=pImage1Url;}}
function ToggleLists1(pCurrentDivId,pIdPrefix,count,colno){for(var counter=0;counter<20;counter++){var ulId=pIdPrefix+counter;if(pCurrentDivId!=ulId){var objDiv=_$(pIdPrefix+counter);if(objDiv){objDiv.style.display="none";}}}
_$(pCurrentDivId).style.display=$(pCurrentDivId).style.display=="none"?"":"none";if(_$(pCurrentDivId).style.display=="none")
{AdjustSitemap(-1,count,colno);}
else
{AdjustSitemap(1,count,colno);}}
function __EmbedSwf(pFileName,pObjName,pWidth,pHeight,pFlashVars,pContainer,pVersion){if(swfobject){var params={};params.quality="high";params.scale="showall";params.wmode="transparent";params.allowScriptAccess="always";params.allowFullScreen="true";var attributes={};attributes.id=pObjName;attributes.name=pObjName;if(!pVersion){pVersion="9.0.0";}
swfobject.embedSWF(pFileName,pContainer,pWidth,pHeight,pVersion,"swf/expressInstall.swf",pFlashVars,params,attributes);}}

function getCookie(c_name){
        if (document.cookie.length>0)
        {
            c_start=document.cookie.indexOf(c_name + "=");
            if (c_start!=-1)
            { 
                c_start=c_start + c_name.length+1;
                c_end=document.cookie.indexOf(";",c_start);                
                if (c_end==-1){c_end=document.cookie.length;}                    
                return unescape(document.cookie.substring(c_start,c_end));
            } 
          }
        return "";
    } 
    function setCookie(c_name,value,expiredays)
    {
        var exdate=new Date();
        exdate.setDate(exdate.getDate()+expiredays);       
        document.cookie= c_name+ "=" + escape(value) + ";path=/" + ((expiredays==null) ? "" : ";expires=" + exdate.toGMTString()); 
    }
 
    
function RedirectWithLanguage(e,pLangID,pExpireDays)
{  
       setCookie("SiteLanguage",pLangID,pExpireDays);        
       if(e){e=e}else{e=window.event}; 
        var strBookmark = location.hash;
        if(strBookmark.toString().length > 0){
            var strRedirectURL ="";           
            if(e.currentTarget)
            {
                strRedirectURL = e.currentTarget + strBookmark.toString().replace('#','%23');
             }else{
                strRedirectURL = e.srcElement.href + strBookmark.toString().replace('#','%23');
             }   
        location.href=strRedirectURL;
        return false;
     }         
}

/* News Teaser*/
var __DDSPEED = 4; var __DDTIMER = 15; function ddMenu_nws(id,d){ var h = document.getElementById(_DivBaseTeaserId); var c = document.getElementById(id + '-ddcontent'); c.style.visibility= "visible"; clearInterval(c.timer); IsOpenSliderNews = true; if(d == 1){ clearTimeout(h.timer); if(c.maxh && c.maxh <= c.offsetHeight){return}
else if(!c.maxh){ var val=57+c.offsetHeight ; c.style.top = '-' + val + 'px'; c.style.display = 'block'; c.style.height = 'auto'; c.maxh = c.offsetHeight; c.style.height = '77px';}
c.timer = setInterval(function(){ddSlide_nws(c,1)},__DDTIMER);}else{ h.timer = setTimeout(function(){ddCollapse_nws(c)},1);}
}
function ddCollapse_nws(c){ c.timer = setInterval(function(){ddSlide_nws(c,-1)},__DDTIMER);}
function cancelHide_nws(id){ var h = document.getElementById(_DivBaseTeaserId); var c = document.getElementById(id + '-ddcontent'); clearTimeout(h.timer); clearInterval(c.timer); if(c.offsetHeight < c.maxh){ c.timer = setInterval(function(){ddSlide_nws(c,1)},__DDTIMER);}
}
function ddSlide_nws(c,d){ var currh = c.offsetHeight; var dist; if(d == 1){ dist = (Math.round((c.maxh - currh) / __DDSPEED));}else{ dist = (Math.round(currh / __DDSPEED));}
if(dist <= 1 && d == 1){ dist = 1;}
c.style.top = parseInt(c.style.top.replace('px','')) - parseInt(dist * d) + 'px'; c.style.height = currh + (dist * d) + 'px'; /*c.style.opacity =100; c.style.filter = 'alpha(opacity=' + '100' + ')';*/ if((currh < 60 && d != 1) || (currh > (c.maxh - 2) && d == 1)){ clearInterval(c.timer); if(d != 1){ IsOpenSliderNews = false; c.style.height = '45px'; c.style.top='-27px'; /*c.style.opacity =0; c.style.filter = 'alpha(opacity=' + (0) + ')';*/c.style.visibility= "hidden";}
}
}

/* Animate */
var topNormal=-26,topFull=-132;var duracion=400;var transUp=Fx.Transitions.Cubic.easeOut;var transDown=Fx.Transitions.Cubic.easeOut;var updownFrequency=300;var fx=new Fx.Elements($('content'),{wait:false,duration:duracion,transition:transUp});var fxs={};function __OpenPop(divid){IsOpenSlider=true;var a=document.getElementById(divid);a=$(a);if(a.hasClass("caso")){var b=a.getElement('div[class=desc_caso]');b=$(b);if(b){if(b.getProperty("moving")>0){fxs[b.getProperty("moving")].stop();b.setProperty("moving",0);}fx=new Fx.Elements(b,{wait:false,duration:updownFrequency,transition:transUp});var _teaserContent=a.getElement('div[class=teaserContent]');var _desc_caso=a.getElement('div[class=desc_caso]');var totalH=_teaserContent.scrollHeight+30;if(moz){totalH=165;_teaserContent.style.height=totalH+"px";}if(op){totalH=165;_teaserContent.style.height=totalH+"px";}if(saf){totalH=150;_teaserContent.style.height=totalH+"px";}if(ie6){totalH=_teaserContent.scrollHeight+27;_teaserContent.style.height=totalH+"px";}if(ie8){totalH=165;_teaserContent.style.height=totalH+"px";}_desc_caso.style.height=totalH+"px";topFull=-totalH;var o={};o[0]={'top':[topFull]};var ran=$random(0,100000);fxs[ran]=fx;b.setProperty("moving",ran);var _hideID=a.getElement('img[class=imguparrow]');_hideID.style.visibility="hidden";fx.start(o);}}}function __HidePop(divid){var a=document.getElementById(divid);a=$(a);if(a.hasClass("caso")){var b=a.getElement('div[class=desc_caso]');b=$(b);if(b){if(b.getProperty("moving")>0){fxs[b.getProperty("moving")].stop();b.setProperty("moving",0);}fx=new Fx.Elements(b,{wait:false,duration:updownFrequency,transition:transDown});var o={};o[0]={'top':[topNormal]};b.setProperty("moving",1);var ran=$random(0,100000);fxs[ran]=fx;b.setProperty("moving",ran);fx.start(o);var _hideID=a.getElement('img[class=imguparrow]');_hideID.style.visibility="";}};IsOpenSlider=false;}var topNormalAnimated=-31,topFullAnimated=-104;function __OpenPopAnimated(divid){IsOpenSlider=true;var a=document.getElementById(divid);a=$(a);if(a.hasClass("casoAnimated")){var b=a.getElement('div[class=desc_casoAnimated]');b=$(b);if(b){if(b.getProperty("moving")>0){fxs[b.getProperty("moving")].stop();b.setProperty("moving",0);}fx=new Fx.Elements(b,{wait:false,duration:updownFrequency,transition:transUp});var _teaserContent=a.getElement('div[class=teaserContentbig]');var totalH=_teaserContent.scrollHeight+45;if(moz){totalH=149;_teaserContent.style.height=totalH+"px";}if(saf){totalH=150;_teaserContent.style.height=totalH+"px";}if(op){totalH=146;_teaserContent.style.height=totalH+"px";}if(ie6){totalH=_teaserContent.scrollHeight+36;_teaserContent.style.height=totalH+"px";}if(ie8){totalH=149;_teaserContent.style.height=totalH+"px";}var _desc_caso=a.getElement('div[class=desc_casoAnimated]');_desc_caso.style.height=totalH+"px";topFullAnimated=-totalH;var o={};o[0]={'top':[topFullAnimated]};var ran=$random(0,100000);fxs[ran]=fx;b.setProperty("moving",ran);fx.start(o);}}}function __HidePopAnimated(divid){var a=document.getElementById(divid);a=$(a);if(a.hasClass("casoAnimated")){var b=a.getElement('div[class=desc_casoAnimated]');b=$(b);if(b){if(b.getProperty("moving")>0){fxs[b.getProperty("moving")].stop();b.setProperty("moving",0);}fx=new Fx.Elements(b,{wait:false,duration:updownFrequency,transition:transDown});var o={};o[0]={'top':[topNormalAnimated]};b.setProperty("moving",1);var ran=$random(0,100000);fxs[ran]=fx;b.setProperty("moving",ran);fx.start(o);}};IsOpenSlider=false;}

/* page function */
var __TeaserRefreshFrequency=4;var requiredMajorVersion=8;var requiredMinorVersion=0;var requiredRevision=0;function changeZIndex(param){if(param){document.getElementById("flashContainer").className="highDepth";}else{document.getElementById("flashContainer").className="lowDepth";}
changeZIndexOpera(param);}
function changeSize(sizeID){try{var objMenuFlash=getFlashMovie("flashMenu");if(objMenuFlash){objMenuFlash.changeSize(sizeID);}}catch(e){}}
function changeZIndexOpera(param){if(op){if(param){_$("flashContainer").style.zIndex=54;_$("rightSection").style.zIndex=2;}else{_$("flashContainer").style.zIndex=1;_$("rightSection").style.zIndex=44;}}}
function readyToSearch(){if(document.getElementById("searchBox").value==langSearchText){document.getElementById("searchBox").value="";}}
function blankSearch(){if(document.getElementById("searchBox").value==""){document.getElementById("searchBox").value=langSearchText;}}
var arrBannerIdPrefix=new Array();var IsOpenSlider=false;var IsOpenSliderNews=false;function __BannerRefreshContent(pIsStart)
{if(arrBannerIdPrefix==null)
{return;}
if(!IsOpenSlider&&!IsOpenSliderNews){for(var keys in arrBannerIdPrefix){if(keys.toString().toLowerCase().indexOf('ctl')!=-1||keys.toString().toLowerCase().indexOf('banner')!=-1){try{var strIdPrefix=arrBannerIdPrefix[keys][0];var intTotalCount=parseInt(arrBannerIdPrefix[keys][1]);var intOldIndex=parseInt(arrBannerIdPrefix[keys][2]);var strClientId=arrBannerIdPrefix[keys][3];var intCurrentIndex=intOldIndex;if(intOldIndex==(intTotalCount-1)){intCurrentIndex=0;}else{if(pIsStart==0){intCurrentIndex=intCurrentIndex+1;}}
if(intCurrentIndex!=intOldIndex){_$(strIdPrefix+intCurrentIndex).style.display="block";_$(strIdPrefix+intOldIndex).style.display="none";if(strIdPrefix.indexOf('NewsTeaser')>=0){_DivBaseTeaserId=strIdPrefix+intCurrentIndex;}
arrBannerIdPrefix[keys][2]=intCurrentIndex;}}catch(e){}}}}
strTimeoutExpression="__BannerRefreshContent(0)";setTimeout(strTimeoutExpression,parseInt(__TeaserRefreshFrequency)*1000);}
function browser_detect(){d=document;if(ie6){LoadCSS("css/style_ie6.css");}
else if(moz){LoadCSS("css/stylemozilla.css");}
else if(saf){LoadCSS("css/stylesafari.css");}
else if(op){LoadCSS("css/styleopera.css");}
else{LoadCSS("css/style.css");}}

var fadeSteps=20;var fadeDelay=20;var loopPrepend=true;var fadeStep=0;var fadeElem;function showBox1(param){if(document.getElementById(param).style.display=="none"){document.getElementById(param).style.display="";fadeStep=0;fadeElem=document.getElementById(param);fadeIn();}else{document.getElementById(param).style.display="none";}}
function fadeIn(){if(fadeStep>fadeSteps){return;}else{setOpacity(fadeElem,(fadeStep/fadeSteps));fadeStep++;window.setTimeout("fadeIn()",fadeDelay);}}
function fadeOut(){if(fadeStep<fadeSteps){return;}else{setOpacity(fadeElem,(fadeStep/fadeSteps));fadeStep++;window.setTimeout("fadeOut()",fadeDelay);}}
function setOpacity(el,opacity){if(el.style.opacity!=undefined){el.style.opacity=opacity;}else if(el.style.MozOpacity!=undefined){el.style.MozOpacity=opacity;}else if(el.style.filter!=undefined){}}
function ToggleLayer(pLayerId){if(_$(pLayerId).style.display=="none"){_$(pLayerId).style.display="";fadeStep=0;fadeElem=_$(pLayerId);fadeIn();}else{_$(pLayerId).style.display="none";}}
function CompareVersion()
{var intCount=0;var BTID,TSFID1,TSFID2,VID1,VID2;var allDiv=document.getElementsByTagName("img");for(var i=0;i<allDiv.length;i++)
{if(allDiv[i].getAttribute('bid')>0)
{if(allDiv[i].src.indexOf('images/cheackbox_on.gif')!=-1)
{intCount=intCount+1;if(intCount==1)
{BTID=allDiv[i].getAttribute('bid');TSFID1=allDiv[i].getAttribute('value');VID1=allDiv[i].getAttribute('VID');}
else if(intCount==2)
{TSFID2=allDiv[i].getAttribute('value');VID2=allDiv[i].getAttribute('VID');}}}}
if(intCount==2)
{location.href='TechnicalSpecification.aspx?BTID='+BTID+'&TSFID1='+TSFID1+'&TSFID2='+TSFID2+'&VID1='+VID1+'&VID2='+VID2+'&PMID='+PMID;}
else
{alert('Please Select 2 Versions.');}}
function showDisclaimer(pDisclaimerIDs){_openLightBox("pages/DisclaimerContent.aspx?ids="+pDisclaimerIDs);}
var __isLightBoxInitiallize=false;function _initializeLightbox(){var divWin=document.createElement("div");divWin.id="__divWinLightBox";divWin.className="lightboxwinOuter";divWin.innerHTML='<div class=\"lightboxouter\"><div class=\"lightboxContainer2_up\"><img src=\"images/close.gif\"  alt=\"close\" style=\"cursor: pointer;\" title=\"close\" onclick=\"_closeLightBox()\" /></div><div class=\"lightboxContainer2\"><iframe id=\"iframeLightbox\" frameborder=\"0\" scrolling=\"no\" vspace=\"0\" hspace=\"0\"></iframe></div><div class=\"lightboxContainer2_bottom\"></div></div><div class=\"lightboxwin\"> </div>';document.getElementsByTagName("body")[0].appendChild(divWin);__isLightBoxInitiallize=true;}
function _openLightBox(pIframeUrl){if(!__isLightBoxInitiallize){_initializeLightbox();}
var iframeLightbox=_$("iframeLightbox");iframeLightbox.src=pIframeUrl;iframeLightbox.style.height='354px';iframeLightbox.style.width='354px';var pageHeight=0;if(moz){pageHeight=screen.availHeight;}else{if(document.body.scrollHeight<document.body.offsetHeight)
{pageHeight=document.body.offsetHeight;}else{pageHeight=document.body.scrollHeight;}}
var objPanel=_$('__divWinLightBox');if(objPanel){objPanel.style.height=pageHeight+'px';objPanel.style.display="";}}
function _closeLightBox(){var objPanel=_$('__divWinLightBox');if(objPanel){objPanel.style.display="none";}}
function __searchEnter(e)
{var keycode=null;if(e){e=e}else{e=window.event}
if(e.which){keycode=e.which}else{keycode=e.keyCode}
if(keycode==13){var search_rnd=Math.floor(Math.random()*100000000)+1;window.location=_ekSitePath+"search.aspx?searchtext="+document.getElementById("searchBox").value + "&rnd=" + search_rnd;return false;}
else
return true;}
function __submainSearch()
{var search_rnd=Math.floor(Math.random()*100000000)+1;window.location=_ekSitePath+"search.aspx?searchtext="+document.getElementById("searchBox").value + "&rnd=" + search_rnd;return false;}
