
<!--
function MM_swapImgRestore() { //v3.0
  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_preloadImages() { //v3.0
  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_findObj(n, d) { //v4.0
  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() { //v3.0
  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 showObj(id){
document.getElementById(""+id+"").style.display='block';
}
function hideObj(id){
document.getElementById(""+id+"").style.display='none';
}

function showProducts(){
document.getElementById("bt_products").src='images/menus/m_products_on.gif';
document.getElementById("bt_itch_conditions").src='images/menus/m_itch_condition_off.gif';
document.getElementById("tbl_menu_itch_conditions").style.display='none';
document.getElementById("tbl_menu_products").style.display='block';
}
function showItchConditions(){
document.getElementById("bt_itch_conditions").src='images/menus/m_itch_condition_on.gif';
document.getElementById("bt_products").src='images/menus/m_products_off.gif';
document.getElementById("tbl_menu_products").style.display='none';
document.getElementById("tbl_menu_itch_conditions").style.display='block';
}

//===========================================================

var ids1=new Array('tab_1','tab_2','tab_3');

function switchid1(id){	
	hideallids1();
	showdiv1(id);
}

function hideallids1(){
	//loop through the array and hide each element by id
	for (var i=0;i<ids1.length;i++){
		hidediv1(ids1[i]);
	}		  
}

function hidediv1(id) {
	//safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		}
		else { // IE 4
			document.all.id.style.display = 'none';
		}
	}
}

function showdiv1(id) {
	//safe function to show an element with a specified id
		  
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'block';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'block';
		}
		else { // IE 4
			document.all.id.style.display = 'block';
		}
	}
}


//===========================================================

var ids=new Array('tab_1','tab_2','tab_3','tab_4');

function switchid(id){	
	hideallids();
	showdiv(id);
}

function hideallids(){
	//loop through the array and hide each element by id
	for (var i=0;i<ids.length;i++){
		hidediv(ids[i]);
	}		  
}

function hidediv(id) {
	//safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		}
		else { // IE 4
			document.all.id.style.display = 'none';
		}
	}
}

function showdiv(id) {
	//safe function to show an element with a specified id
		  
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'block';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'block';
		}
		else { // IE 4
			document.all.id.style.display = 'block';
		}
	}
}

//===========================================================

function changeProductsMessage(msg){
	
	document.getElementById("product_message").innerHTML = msg;
	
	}

//===========================================================

    function openPhoto (width, height, url, name) {
	var windowWidth = window.screen.width;
	var windowHeight = window.screen.height;
	
	var popupWidth = width;
	var popupHeight = height;
	
	var popupTop = (windowHeight - popupHeight) / 2;
	var popupLeft = (windowWidth - popupWidth) / 2;
	
	var features = "width=" +  popupWidth + ",height=" + popupHeight + ",top=" + popupTop + ",left=" + popupLeft;
	
	
	window.open(url, name, features);			
}

//===========================================================

function preLoadImages(){
	
	image1 = new Image();
	image1.src = "../images/menus/m_dry_skin_on.gif";
	
	image2 = new Image();
	image2.src = "../images/menus/m_poison_plant_reactions_on.gif";
	
	image3 = new Image();
	image3.src = "../images/menus/m_allergic_reactions_on.gif";
	
	image4 = new Image();
	image4.src = "../images/menus/m_insect_bites_on.gif";
	
	image5 = new Image();
	image5.src = "../images/menus/m_eczema_on.gif";
	
	image6 = new Image();
	image6.src = "../images/menus/m_psoriasis_on.gif";
	
	image7 = new Image();
	image7.src = "../images/menus/m_seborrheic_dermatitis_on.gif";
	
	image8 = new Image();
	image8.src = "../images/menus/a_menu_products.gif";
	
	}
	
function openBuffer(pageId){
	window.open('buffer.jsp?id=' + escape(pageId) + '','bufferPage','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,width=400,height=200'); void(0);
	}

    function openPopup (width, height, url, name) {
	var windowWidth = window.screen.width;
	var windowHeight = window.screen.height;
	
	var popupWidth = width;
	var popupHeight = height;
	
	var popupTop = (windowHeight - popupHeight) / 2;
	var popupLeft = (windowWidth - popupWidth) / 2;
	
	var features = "width=" +  popupWidth + ",height=" + popupHeight + ",top=" + popupTop + ",left=" + popupLeft;
	
	
	window.open(url, name, features);			
}

preLoadImages();
//-->
