function selectCSS() { var browser=navigator.userAgent.toLowerCase(); var is_good_browser=false; var is_good_res=false; var css_name; if ((browser.indexOf('msie 6.0')!=-1) || (browser.indexOf('msie 5.5')!=-1)) is_good_browser=true; if (screen.width>=1024) is_good_res=true; if (is_good_browser && is_good_res) css_name='ie-hi-res.css' else if (is_good_browser && !is_good_res) css_name='ie-low-res.css' else if (!is_good_browser && is_good_res) css_name='others-hi-res.css' else css_name='others-low-res.css'; return css_name; } function on(obj) { index=obj.id.substr(1); k=1; if (activeObj) if (obj.id==activeObj) k=2; if (ImgArr[parseInt(index)+k].complete) obj.src=ImgArr[parseInt(index)+k].src; } function mandatory_on(obj) { index=obj.id.substr(1); k=1; if (activeObj) if (obj.id==activeObj) k=2; obj.src=ImgArr[parseInt(index)+k].src; } function off(obj) { index=obj.id.substr(1); k=0; if (activeObj) if (obj.id==activeObj) k=2; if (ImgArr[parseInt(index)+k].complete) obj.src=ImgArr[parseInt(index)+k].src; } function universal(objCaller,divToShow) { document.getElementById(activeDIV).style.display="none"; document.getElementById(divToShow).style.display="block"; activeDIV=divToShow; oldAO=activeObj; activeObj=objCaller.id; off(document.getElementById(oldAO)); on(document.getElementById(activeObj)); } function zero(param) { if(param>9) return(param); else return ('0'+param); } var activeObj, activeDIV;