/*
 * date:	2002-10-14
 * info:	http://inspire.server101.com/js/m/
 */

var mItem = [];
var mTime = [];
var mWait = 250;
var imgnum2 = 1;

function mSet(ul, c) {


if (document.getElementById) {

	ul = document.getElementById(ul).getElementsByTagName('ul');
	var i, j, e, a, f, b;
	var m = mItem.length;
	for (i = 0; i < ul.length; i++) {
		if (e = ul[i].getAttribute('id')) {
			mItem[m] = e;
			e = ul[i].parentNode;
			e.className = c;

			f = new Function('mShow(\'' + mItem[m] + '\');');
			b = new Function('mBlur(\'' + mItem[m] + '\');');
			e.onmouseover = f;
			e.onmouseout = b;
			a = e.getElementsByTagName('a');
			for (j = 0; j < a.length; j++) {
				a[j].onfocus = f;
				a[j].onblur = b;
			}
			m++;
		}
	}
}
}


function mShow(id) {

	for (var i = 0; i < mItem.length; i++) {
		if (document.getElementById(mItem[i]).style.display != 'none') {
			if (mItem[i] != id) mHide(mItem[i]);
			else mClear(mItem[i]);
		}
	}
	document.getElementById(id).style.display = 'block';
}


function mHide(id) {

	mClear(id);
	document.getElementById(id).style.display = 'none';
}


function mBlur(id) {
	mTime[id] = setTimeout('mHide(\'' + id + '\');', mWait);
}


function mClear(id) {
	if (mTime[id]) {
		clearTimeout(mTime[id]);
		mTime[id] = null;
	}
}


function OpenNewWin(id) {
var url;
var options = 'toolbar=yes,menubar=yes,location=yes,statusbar=yes,scrollbars=yes,resizable=yes,width=800,height=600,left=0,top=0'
	url=id;
	window.open(url, '', '');
}

function SolutionInit() {
var f;
f = document.frmSolution;
var list1 = f.speciesFS;

	if (list1.options[list1.selectedIndex].value != '0') {
		submFS(list1.selectedIndex);
	}
}

function GetSolution() {
	var f;
	f = document.frmSolution;
	var list2 = f.diseaseFS;
	if (list2.options[list2.selectedIndex].value != '') {
		var list2val = list2.options[list2.selectedIndex].value;
		var n = list2val.substr(0,1);
		if (n=='0')
			window.location.href=list2val.substr(2);
		else
			OpenNewWin(list2val.substr(2));
	}
	else
		return;
}

function ProductInit() {
var f;
f = document.frmProduct;
var list1 = f.species;

	if (list1.options[list1.selectedIndex].value != '0') {
		submPL(list1.selectedIndex);
	}
}

function GetProduct() {
					var f;
					f = document.frmProduct;
					var list2 = f.product;
					if (list2.options[list2.selectedIndex].value != '') {
						var list2val = list2.options[list2.selectedIndex].value;
						var n = list2val.substr(0,1);
						if (n=='0')
							window.location.href=list2val.substr(2);
						else
							OpenNewWin(list2val.substr(2));
					}
					else
						return;
				}
				
				
				function jmp(f) {

var url = f.options[f.selectedIndex].value;
	
if (url != '') {
	window.location.href=url;
	}
}
function popupDisclaimer(theURL) 
{ //v2.0
    //window.open("pop_jump.aspx?urlto=" + escape(theURL),'','width=620,height=460,location=yes,menubar=yes,scrollbars=yes,status=yes,toolbar=yes,resizable=yes');
    window.open("pop_jump.aspx?urlto=" + theURL,'','width=620,height=460,location=yes,menubar=yes,scrollbars=yes,status=yes,toolbar=yes,resizable=yes');
}

