//Resize Netscape window.onresize = resize; window.saveInnerWidth = window.innerWidth; window.saveInnerHeight = window.innerHeight; function resize() { if (saveInnerWidth < window.innerWidth || saveInnerWidth > window.innerWidth || saveInnerHeight > window.innerHeight || saveInnerHeight > window.innerHeight ) { window.location.reload(); } } //End resize if (parseInt(navigator.appVersion.substring(0,1))>=3) { //initialize off images features_off = new Image(); //img size goes in parentheses features_off.src = "/images/include/nav/1features/features.gif"; //img src goes here path_off = new Image(); path_off.src = "/images/include/nav/2pathways/pathways.gif"; customservices_off = new Image(); customservices_off.src = "/images/include/nav/3customservices/customservices.gif"; genes_off = new Image(); genes_off.src = "/images/include/nav/4genes/genes.gif"; market_off = new Image(); market_off.src = "/images/include/nav/5market/market.gif"; login_off = new Image(); login_off.src = "/images/include/nav/6login/login.gif"; //initialize on images features_on = new Image(); //img size goes in parentheses features_on.src = "/images/include/nav/1features/features_f2.gif"; //img src goes here path_on = new Image(); path_on.src = "/images/include/nav/2pathways/pathways_f2.gif"; customservices_on = new Image(); customservices_on.src = "/images/include/nav/3customservices/customservices_f2.gif"; genes_on = new Image(); genes_on.src = "/images/include/nav/4genes/genes_f2.gif"; market_on = new Image(); market_on.src = "/images/include/nav/5market/market_f2.gif"; login_on = new Image(); login_on.src = "/images/include/nav/6login/login_f2.gif"; //initialize active images features_act = new Image(); //img size goes in parentheses features_act.src = "/images/include/nav/1features/features_f3.gif"; //img src goes here path_act = new Image(); path_act.src = "/images/include/nav/2pathways/pathways_f3.gif"; customservices_act = new Image(); customservices_act.src = "/images/include/nav/3customservices/customservices_f3.gif"; genes_act = new Image(); genes_act.src = "/images/include/nav/4genes/genes_f3.gif"; market_act = new Image(); market_act.src = "/images/include/nav/5market/market_f3.gif"; login_act = new Image(); login_act.src = "/images/include/nav/6login/login_f3.gif"; //initialize text rollover images features_txt = new Image(); //img size goes in parentheses features_txt.src = "/images/include/nav/1features/features_text.gif"; //img src goes here path_txt = new Image(); path_txt.src = "/images/include/nav/2pathways/pathways_text.gif"; customservices_txt = new Image(); customservices_txt.src = "/images/include/nav/3customservices/customservices_text.gif"; genes_txt = new Image(); genes_txt.src = "/images/include/nav/4genes/genes_text.gif"; market_txt = new Image(); market_txt.src = "/images/include/nav/5market/market_text.gif"; login_txt = new Image(); login_txt.src = "/images/include/nav/6login/login_text.gif"; blank_txt = new Image(); blank_txt.src = "/images/include/nav/blank_txt.gif"; //initialize onBlocks features_shd_on = new Image(); //img size goes in parentheses features_shd_on.src = "/images/include/blocks/features_block_f2.gif"; //img src goes here path_shd_on = new Image(); path_shd_on.src = "/images/include/blocks/path_block_f2.gif"; customservices_shd_on = new Image(); customservices_shd_on.src = "/images/include/blocks/customservices_block_f2.gif"; genes_shd_on = new Image(); genes_shd_on.src = "/images/include/blocks/genes_block_f2.gif"; market_shd_on = new Image(); market_shd_on.src = "/images/include/blocks/market_block_f2.gif"; login_shd_on = new Image(); login_shd_on.src = "/images/include/blocks/login_block_f2.gif"; //initialize offBlocks features_shd_off = new Image(); //img size goes in parentheses features_shd_off.src = "/images/include/blocks/features_block.gif"; //img src goes here path_shd_off = new Image(); path_shd_off.src = "/images/include/blocks/path_block.gif"; customservices_shd_off = new Image(); customservices_shd_off.src = "/images/include/blocks/customservices_block.gif"; genes_shd_off = new Image(); genes_shd_off.src = "/images/include/blocks/genes_block.gif"; market_shd_off = new Image(); market_shd_off.src = "/images/include/blocks/market_block.gif"; login_shd_off = new Image(); login_shd_off.src = "/images/include/blocks/login_block.gif"; } function rollOn(image) { if (parseInt(navigator.appVersion.substring(0,1))>=3) { document[image].src = eval(image + "_on.src"); document.txt.src = eval(image + "_txt.src"); } } function rollOff(image) { if (parseInt(navigator.appVersion.substring(0,1))>=3) { document[image].src = eval(image + "_off.src"); document.txt.src = eval("blank_txt.src"); } } function control(page_){ if(document[page_]){ var shadow = page_ + "_shd"; document[page_].src = eval(page_+"_act.src"); document.txt.src = eval(page_ + "_txt.src"); eval(page_+"_off.src = " + page_ + "_act.src"); eval(page_+"_on.src = " + page_ + "_act.src"); eval("blank_txt.src = " + page_ + "_txt.src"); document[shadow].src = eval(shadow + "_on.src"); eval(shadow + "_on.src =" + shadow + "_off.src"); } } function openBoard(boardid, forumid, loginChoice) { var boardURL; boardURL = "/bioboards/BioBoard.asp?board=" + boardid + "&forum=" + forumid + "&login=" + loginChoice; window.open(boardURL, "Board1", "resizable=1,width=760,height=480,toolbars=0"); } function openLegend() { aWindow=window.open("/genes/legend.asp", "thewindow", "width=750, height=506"); }