function MM_preloadImages() {
	var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
	if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() {
	var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) {
	var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
	d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function MM_swapImage() {
	var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
	if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function P7_autoLayers() {
	var g,b,k,f,args=P7_autoLayers.arguments;
	if(!document.p7setc) {p7c=new Array();document.p7setc=true;}
	for(k=0; k<p7c.length; k++) {
		if((g=MM_findObj(p7c[k]))!=null) {b=(document.layers)?g:g.style;b.visibility="hidden";}
	}
	for(k=0; k<args.length; k++) {
		if((g=MM_findObj(args[k])) != null) {
			b=(document.layers)?g:g.style;b.visibility="visible";f=false;
			for(j=0;j<p7c.length;j++) {if(args[k]==p7c[j]) {f=true;}}
			if(!f) {p7c[p7c.length++]=args[k];}
		}
	}
}
//older functions below
<!--
function WM_initializeToolbar(){
    var i;
	try {
	    if (document.all){
			for(i = 0; i < document.all('container').all.length; i++){
			    if ((document.all('container').all[i].className == 'header') || (document.all('container').all[i].className == 'links')){
				document.WM.menu.dropdown[document.WM.menu.dropdown.length] = document.all('container').all[i];
			    }
			}
	    } else if (document.getElementsByTagName && document.getElementById){
			var contained = document.getElementById('container').getElementsByTagName('div');
			for(i = 0; i < contained.length; i++){
			    if ((contained[i].getAttribute('class') == 'header') || (contained[i].getAttribute('class') == 'links')){
				document.WM.menu.dropdown[document.WM.menu.dropdown.length] = contained[i];
			    }
			}
	    }
	}
	catch(e) {
		//alert(e.description);
	}
}

function MM_reloadPage(init) {  //reloads the window if Netscape resized
  if (init==true) with (navigator) {if (appName=="Netscape") {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

//MM_reloadPage(true);

function hideSelect(state) {
	if (navigator.userAgent.indexOf('MSIE')!=-1 || navigator.appVersion>=5) { //Only hide for IE or Netscape 5+
		for(var w = 1; w <= (document.forms.length - 1); w++) //Set w to 1 in stead of 0 since the first form on each page is the search form, no need to hide that one
		for(var v = 0; v <= (document.forms[w].elements.length - 1); v++)
		if(document.forms[w].elements[v].type=="select-one")
			document.forms[w].elements[v].style.visibility = state;
	}
}
function pviiW3Cbg(obj, pviiColor) { //v1.1 by Project VII
	obj.style.backgroundColor=pviiColor
}
function changeFormAction(formname) {
	var form = eval('document.' +formname);
	var formfield = eval('document.' + formname + '.c_Category.options[document.' +formname+ '.c_Category.selectedIndex]');
	if (formfield.value == "All") {
		form.target="_self";
		form.action="search/dsp_searchresults.cfm";
		return validateform(form);
	} else if (formfield.value == "by Name") {
		form.select.value = 'itemname';
		form.SearchString.value = form.c_SearchString.value
		return validateform(form);
	} else if (formfield.value == "by Cat. No.") {
		form.select.value = 'identifier';
		form.SearchString.value = form.c_SearchString.value
		return validateform(form);
	} else {
		form.target="_self";
		form.action="advancedsearch_action.cfm";
		return validateform(form);
	}
	return true;
}

document.WM = new Object();
document.WM.menu = new Object();
document.WM.menu.dropdown = new Array();

function nav(item, navID, pageID){
	if(document.WM.menu.dropdown.length) {
		if (document.WM.menu.dropdown[item + 1].style.display == 'none'){
			document.WM.menu.dropdown[item + 1].style.display = '';
			document.images[document.WM.menu.dropdown[item].id + 'Img'].src = 'images/navigation/leftnav_arrow_open.gif';
		}
		else {
			document.WM.menu.dropdown[item + 1].style.display = 'none';
			document.images[document.WM.menu.dropdown[item].id + 'Img'].src = 'images/navigation/leftnav_arrow_closed.gif';
		}
	}
	else{
		window.location = '/content.cfm?pageID=' + pageID + '&e=' + navID;
	}
}
function popUpOrder()
{
	//Function used by files in transfection collection - CWW 08/22/02
	//sealWin=window.open("http://www.invitrogen.com/order_popup/nmole_popup.html","win",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=450,height=287');
	//self.name="mainWin";
}
function validateform(formname) {
	var formlength = formname.elements.length;
	var valid = " -ABCDEFGHIJKLMNOPQRSTUVWXYZ)*?.(/abcdefghijklmnopqrstuvwxyz0123456789"
	if (formname.search_term1.value == "" && formname.search_term2.value == "") {
		alert("Please enter a search value");
		formname.search_term1.focus();
		return false;
	}
	else if (formname.search_term1.value == "" && formname.search_term2.value !== "") {
		formname.search_term1.value = formname.search_term2.value;
		formname.search_term2.value = '';
	}
	for (var j=0; j<formlength; j++){
		if (formname.elements[j].type == "text"){
			var ok = "yes";
			var temp;
			var field = formname.elements[j];
			for (var i=0; i<field.value.length; i++) {
				temp = "" + field.value.substring(i, i+1);
				if (valid.indexOf(temp) == "-1") ok = "no";
			}
			if (ok == "no") {
				alert("Invalid entry!  \nThe only special characters allowed are '/' '.' '*' '?' '(' and ')' \n");
				field.focus();
				field.select();
				return false;
			}
		}
	}
	return true;
}
/*
* THE INPUTS SHOULD BE IN THIS ORDER
* pbPopUp (
* targetURL
* windowName [optional, default = 'defaultNewWindow']
* width [optional, default = 400]
* height [optional, default = 400]
* location [optional, default = 1]
* menubar [optional, default = 1]
* resizable [optional, default = 1]
* scrollbars [optional, default = 1]
* status [optional, default = 1]
* toolbar [optional, default = 1]
* )
*/
function pbPopUp() {
	//defaults
	f_targetURL = '';
	f_windowName = 'defaultNewWindow';
	f_width = 400;
	f_height = 400;
	f_location = 1;
	f_menubar = 1;
	f_resizable = 1;
	f_scrollbars = 1;
	f_status = 1;
	f_toolbar = 1;
	//for each argument, if exist use;
	if (arguments.length > 0)
		f_targetURL = arguments[0];
	if (arguments.length > 1)
		f_windowName = arguments[1];
	if (arguments.length > 2)
		f_width = arguments[2];
	if (arguments.length > 3)
		f_height = arguments[3];
	if (arguments.length > 4)
		f_location = arguments[4];
	if (arguments.length > 5)
		f_menubar = arguments[5];
	if (arguments.length > 6)
		f_resizable = arguments[6];
	if (arguments.length > 7)
		f_scrollbars = arguments[7];
	if (arguments.length > 8)
		f_status = arguments[8];
	if (arguments.length > 9)
		f_toolbar = arguments[9];
	features = 'width=' + f_width + ',height=' + f_height + ',';
	features = features + 'location=' + f_location + ',menubar=' + f_menubar + ',';
	features = features + 'resizable=' + f_resizable + ',scrollbars=' + f_scrollbars + ',';
	features = features + 'status=' + f_status + ',toolbar=' + f_toolbar;
	window.open(f_targetURL,f_windowName,features);
}
