// must include hsnm_rollovers.js

function hsnm_layer_init()
{
	if(document.all){ // IE4
		document.hsnm_layerRef='';
		document.hsnm_topRef='.style.pixelTop';
		document.hsnm_leftRef='.style.pixelLeft';
		document.hsnm_layerZ='.style.zIndex';
	} else if(document.layers){ // Netscape 4
		document.hsnm_layerRef='document.';
		document.hsnm_topRef='.top';
		document.hsnm_leftRef='.left';
		document.hsnm_layerZ='.zIndex';
	} else if(document.getElementById){ // Gecko
		document.hsnm_layerRef="document.getElementById('";
		document.hsnm_topRef="').style.top";
		document.hsnm_leftRef="').style.left";
		document.hsnm_layerZ="').style.zIndex";
	}
}


function hsnm_center_layer(init, layer)
{
	var left=0;
	
  if ((!init) && navigator) { // NS 4 bug
		if ((navigator.appName=="Netscape")&&(parseInt(navigator.appVersion)==4)) {
	    location.reload();
			return;
		}
	}
	
	if(window.innerWidth) { // NS
		left = (window.innerWidth / 2) - 349;
	}
	else if(document.body.clientWidth) { // IE
		left = (document.body.clientWidth/2) - 349;
	}	

	if(!document.hsnm_layerRef)
		hsnm_layer_init();

	eval(document.hsnm_layerRef+layer+document.hsnm_leftRef+'='+left);
}


function set_z() {
  var i,p,v,obj,args=set_z.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; }
  obj.zIndex=v; }
}