function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    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 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_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}	


	function openWindow(page) {
		genericWindow(page, 500, 500, -1);
	}

	var popWin;
	function genericWindow(page, width, height, scrollbars) {  
		if (scrollbars) scrollbars = "yes";
		else scrollbars = "no";

	        if (popWin != null && !popWin.closed) popWin.close();
	        popWin = window.open(page,"PopUp","width="+width+",height="+height+",dependent=yes,resizable,scrollbars=" + scrollbars); 
	}

	var popWinAdv
	function openWindowAdv(page, width, height, scrollbars, titlebar, resizable, status, menubar, toolbar) {
		if (scrollbars) scrollbars = "yes";
		else scrollbars = "no";

	        if (popWinAdv != null && !popWinAdv.closed) popWinAdv.close();
	        popWinAdv = window.open(page,"PopUp","width="+width+",height="+height+",dependent=yes,resizable,scrollbars="+scrollbars+",titlebar="+titlebar+",resizable="+resizable+",status="+status+",menubar="+menubar+",toolbar="+toolbar); 
	}

	var w_status;
	function windowPopup(lang) 
	{
	if (lang == "FR")
	{
	  if (w_status == null || w_status.closed == true)
	      w_status = window.open("/informationcentre/popuphelp/inventorypopup_fr.asp","_blank","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,height=500,width=500");
	  else
	      w_status.focus();
	}
	else
	{
	  if (w_status == null || w_status.closed == true)
	      w_status = window.open("/informationcentre/popuphelp/inventorypopup_en.asp","_blank","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,height=500,width=500");
	  else
	      w_status.focus();
	}}
	
	var w_status_shippable;
	function windowPopupShippable() 
	{
	if (lang == "FR")
	{
	  if (w_status_shippable == null || w_status_shippable.closed == true)
	      w_status_shippable = window.open("/help/popuphelp/popup_usshippable_fr.asp","_blank","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,height=450,width=450");
	  else
	      w_status_shippable.focus();
	}
	else
	{
	  if (w_status_shippable == null || w_status_shippable.closed == true)
	      w_status_shippable = window.open("/help/popuphelp/popup_usshippable_en.asp","_blank","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,height=450,width=450");
	  else
	      w_status_shippable.focus();
	}}
	
	
	var varNewWin;
	function LearnMorePopup(page, width, height, scrollbars) {  
		if (scrollbars) scrollbars = "yes";
		else scrollbars = "no";

	        if (varNewWin != null && !varNewWin.closed) 
				{
				varNewWin.focus();
				varNewWin.open(page,"PopUp","width="+width+",height="+height+",dependent=yes,resizable,scrollbars=" + scrollbars); 
				}
			else
				{
				varNewWin = window.open(page,"PopUp","width="+width+",height="+height+",dependent=yes,resizable,scrollbars=" + scrollbars); 
				}
		}
		
	var varNewWin1;
	function LearnMoreWindow(page, scrollbars) {  
		if (scrollbars) scrollbars = "yes";
		else scrollbars = "no";

	        if (varNewWin1 != null && !varNewWin1.closed) 
				{
				varNewWin1.focus();
				varNewWin1.open(page,"PopUp"); 
				}
			else
				{
				varNewWin1 = window.open(page,"PopUp"); 
				}
		}