var isMinNS4 = (navigator.appName.indexOf("Netscape") >= 0 && parseFloat(navigator.appVersion) >= 4) ? 1 : 0; var isMinIE4 = (document.all) ? 1 : 0; var isMinIE5 = (isMinIE4 && navigator.appVersion.indexOf("5.")) >= 0 ? 1 : 0; function RollOver( img ) { if( isMinNS4 || isMinIE4 ) { document.images[ img ].src = '/Images/' + img + '-on.gif'; } } function RollOut( img ) { if( isMinNS4 || isMinIE4 ) { document.images[ img ].src = '/Images/' + img + '.gif'; } } function RollOverTD( MyElement ) { MyElement.className = 'sub-menu-td-over'; } function RollOutTD( MyElement ) { MyElement.className = 'sub-menu-td'; } function getUrl( strUrl ) { window.navigate( strUrl ); } function PopupPic(sPicURL) { var wd = 150; var ht = 150; var d = 0; //((screen.width-wd)/2); var h = 0; //((screen.height-ht)/2); window.open('/popup.html?'+sPicURL,'popupImage','top='+h+',left='+d+',width='+wd+',height='+ht+',toolbar=no,location=no,directories=no,menubar=no,status=no,scrollbars=no,resizable=no'); } function openWork( intWorkID ) { window.open('/view-works.asp?wID='+intWorkID+'','','top=0,left=0,width=520,height=420,toolbar=no,location=no,directories=no,menubar=no,status=yes,scrollbars=0,resizable=0').focus(); } function openPortfolio( intWorkID ) { window.open('/view-portfolio.asp?wID='+intWorkID+'','','top=0,left=0,width=520,height=420,toolbar=no,location=no,directories=no,menubar=no,status=yes,scrollbars=0,resizable=0').focus(); } function openCenterWindow(url,wd,ht,st,scrl,rsz) { d = ((screen.width-wd)/2); h = ((screen.height-ht)/2); window.open(url,'','top='+h+',left='+d+',width='+wd+',height='+ht+',toolbar=no,location=no,directories=no,menubar=no,status='+ st +',scrollbars='+ scrl +',resizable='+ rsz +'').focus(); } var currClass = ''; function ChangeBorderColor( ){ var e = event.srcElement; if( event.type == 'focus' ) { currClass = e.className; if(currClass == '') e.className = 'input_focus'; else e.className = currClass + '_focus'; } else { e.className = currClass; } } // ===================== Menu Functions =======================>> function getSubCategories( strSection ) { var subMenuLayer = document.getElementById("subMenuDiv"); if(subMenuLayer){ switch ( strSection ){ case "about": subMenuLayer.innerHTML = aboutStr; break; case "portfolio": subMenuLayer.innerHTML = portfolioStr; break; case "mind": subMenuLayer.innerHTML = mindStr; break; case "contact": subMenuLayer.innerHTML = contactStr; break; case "blank": subMenuLayer.innerHTML = blankStr; break; } } if( timeOutID ) { clearTimeout( timeOutID ); } } function reloadSubCategories() { timeOutID = setTimeout("getSubCategories( '"+ myStrSection +"' );", 1000); } function UnsetTimeout( ) { if( timeOutID ) { clearTimeout( timeOutID ); } } // =========== Functions that gets the value of a key (strKey) from the GET query string. ========== function jsGet(strKey) { var strUrl, strOut, strKey; var strUrlArray, strRecArray; var startPos, endPos, x; strOut = ""; strUrl = window.location.href; startPos = strUrl.indexOf("?")+1; endPos = strUrl.length; strUrl = strUrl.substring(startPos, endPos); strUrlArray = strUrl.split("&"); for (x=0; x < strUrlArray.length; x++) { strRecArray = strUrlArray[x].split("="); if (strKey==strRecArray[0]){ strOut = strRecArray[1]; break; } } return strOut; }