function redirectTo(url){ window.location = url; } function show(layerName) { document.getElementById(layerName).style.display = ''; document.getElementById(layerName).style.visibility = "visible"; } function hide(layerName) { document.getElementById(layerName).style.display = 'none'; document.getElementById(layerName).style.visibility = "hidden"; } function showTAB(tab_name) { document.getElementById(last_tab).className = 'tab'; var curr = document.getElementById(tab_name); curr.className='tab_hover'; hide(last_tab+'_data'); show(tab_name+'_data'); last_tab=tab_name; } last_prodtab = 'tabFeatures'; function showProd(layerName) { document.getElementById(layerName).style.display = ''; } function hideProd(layerName) { document.getElementById(layerName).style.display = 'none'; } function showProductTAB(tab_name) { document.getElementById(last_prodtab).className = 'tabproduct'; var curr = document.getElementById(tab_name); curr.className='tabproduct_hover'; hideProd(last_prodtab+'_data'); showProd(tab_name+'_data'); last_prodtab=tab_name; } function previewImage(imgPath,modelName){ width = 600; height = 600; if(window.innerWidth){ LeftPosition =(window.innerWidth-width)/2; TopPosition =((window.innerHeight-height)/4)-50; } else{ LeftPosition =(parseInt(window.screen.width)- width)/2; TopPosition=((parseInt(window.screen.height)-height)/2)-50; } attr = 'resizable=no,scrollbars=no,width=' + width + ',height=' + height + ',screenX=500,screenY=500,left=' + LeftPosition + ',top=' + TopPosition + ''; popWin=open('', 'new_window', attr); popWin.document.write(''+modelName+''); popWin.document.write('
'); popWin.document.write(''+modelName+''); popWin.document.write('
'+modelName+'
'); popWin.document.write('

'); popWin.document.write(''); } function toggleBox(szDivID, iState) // 1 visible, 0 hidden { if(document.layers) // NN4 { document.layers[szDivID].visibility = iState ? "show" : "hide"; } else if(document.getElementById) // gecko(NN6) + IE5+ { var obj = document.getElementById(szDivID); obj.style.visibility = iState ? "visible" : "hidden"; } else if(document.all) //IE 4 { document.all[szDivID].style.visibility = iState ? "visible" : "hidden"; } } function overlay(tagID) { el = document.getElementById(tagID); el.style.visibility = (el.style.visibility == "visible") ? "hidden" : "visible"; }