/* 2003 Copyright Genetrack Biolabs Inc. ALL RIGHTS RESERVED */
/* This .JS file contains global functions for genetrack.com.tw */

function glsOf(bm) { /* This fuction pops up gls.html and scrolls down to the glossary item the users have clicked. */
	url = 'gls.html#' + bm;
	window.open(url,'','width=450,height=250,scrollbars=1,top=50,left=50,resizable=0,menubar=0,toolbar=0,status=0,location=0');
}

function winSub(url,x,y,bln) { /* This fuction pops up an external link (i.e. target="_blank"). */
	window.open(url,'','width=' + x + ',height=' + y + ',scrollbars=' + bln + ',top=50,left=50,resizable=' + bln + ',menubar=' + bln + ',toolbar=' + bln + ',status=' + bln + ',location=' + bln);
}

function imgPrl() { /* This function preloads the nav images for rollover. */
	(new Image()).src="img/nav/pat2.png";
	(new Image()).src="img/nav/pata2.png";
	(new Image()).src="img/nav/patb2.png";
	(new Image()).src="img/nav/patc2.png";
	(new Image()).src="img/nav/typ2.png";
	(new Image()).src="img/nav/typa2.png";
	(new Image()).src="img/nav/typb2.png";
	(new Image()).src="img/nav/typc2.png";
	(new Image()).src="img/nav/pri2.png";
	(new Image()).src="img/nav/ord2.png";
	(new Image()).src="img/nav/chk2.png";
	(new Image()).src="img/nav/abt2.png";
	(new Image()).src="img/nav/abta2.png";
	(new Image()).src="img/nav/abtb2.png";
	(new Image()).src="img/nav/abtc2.png";
	(new Image()).src="img/nav/faq2.png";
	(new Image()).src="img/nav/cnt2.png";
}

function imgPrlIndex() { /* This function preloads the nav images for rollover on INDEX.HTML. */
	(new Image()).src="img/nav_ind/pat2.png";
	(new Image()).src="img/nav_ind/typ2.png";
	(new Image()).src="img/nav_ind/pri2.png";
	(new Image()).src="img/nav_ind/ord2.png";
	(new Image()).src="img/nav_ind/chk2.png";
	(new Image()).src="img/nav_ind/abt2.png";
	(new Image()).src="img/nav_ind/faq2.png";
	(new Image()).src="img/nav_ind/cnt2.png";
}