<!--
// convert all characters to lowercase to simplify testing
	var agt=navigator.userAgent.toLowerCase();
	var appVer = navigator.appVersion.toLowerCase();
	var IFrameObj; // our IFrame object

	// *** BROWSER VERSION ***
	var is_minor = parseFloat(appVer);
	var is_major = parseInt(is_minor);

	// Note: On IE, start of appVersion return 3 or 4
	// which supposedly is the version of Netscape it is compatible with.
	// So we look for the real version further on in the string

	var iePos  = appVer.indexOf('msie');
	if (iePos !=-1) {
		is_minor = parseFloat(appVer.substring(iePos+5,appVer.indexOf(';',iePos)))
		is_major = parseInt(is_minor);
	}

	// Netscape6 is mozilla/5 + Netscape6/6.0!!!
	// Mozilla/5.0 (Windows; U; Win98; en-US; m18) Gecko/20001108 Netscape6/6.0
	var nav6Pos = agt.indexOf('netscape6');
	if (nav6Pos !=-1) {
	is_minor = parseFloat(agt.substring(nav6Pos+10))
	is_major = parseInt(is_minor)
	}


	var is_getElementById   = (document.getElementById) ? "true" : "false"; // 001121-abk
	var is_getElementsByTagName = (document.getElementsByTagName) ? "true" : "false"; // 001127-abk
	var is_documentElement = (document.documentElement) ? "true" : "false"; // 001121-abk

	var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
	        && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
	        && (agt.indexOf('webtv')==-1));
	var is_nav6   = (is_nav && is_major==6);    // new 010118 mhp
	var is_nav6up = (is_nav && is_minor >= 6) // new 010118 mhp

	var is_nav5   = (is_nav && is_major == 5 && !is_nav6); // checked for ns6
	var is_nav5up = (is_nav && is_minor >= 5);


	var img, lyr, lyr2;
	var pageX, pageY;

	var isMOZ = is_getElementById ? true : false;
	var isNN = document.layers ? true : false;
	var isIE = document.all ? true : false;
	

	if(is_nav5up)
		isIE = false;

	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();
	}
	
	
	
	function handleMouseMove(evt) {
		if(isIE){
	  		mouseX = window.event.clientX
	  		//+ document.documentElement.scrollLeft + document.body.scrollLeft;
	  		mouseY = window.event.clientY
	  		//+ document.documentElement.scrollTop + document.body.scrollTop;
	  		pageX = document.body.scrollLeft;
	  		pageY = document.body.scrollTop;
	  	}else{
    			mouseX = evt.clientX + window.scrollX;
    			mouseY = evt.clientY + window.scrollY;
    			pageX = window.scrollX;
    			pageY = window.scrollY;
    			
	  	}
		 //window.status = "Mouses: "+mouseX+","+mouseY;
	  	return false;
	}

	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_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 moveLayer(layername,x,y){
		if(isIE){
			document.all[layername].style.left=x;
			document.all[layername].style.top=y;
		}else if(is_nav5up || isMOZ){
			leijer = document.getElementById(layername);
			leijer.style.left=x
			leijer.style.top=y
		}else if(isNN){
			document.layers[layername].pageX=x;
			document.layers[layername].pageY=y;
		}
	}

	function showLayer(layername, vis){
		if(isIE){
			if(document.all[layername]){
				if(vis==1)
					document.all[layername].style.visibility="visible";
				else
					document.all[layername].style.visibility="hidden";
				}
		}else if(is_nav5up || isMOZ){
			leijer2 = document.getElementById(layername)
			if(vis==1){
				leijer2.style.visibility="visible";
				}
			else
				leijer2.style.visibility="hidden";
		}else{
			if(vis==1)
				document.layers[layername].hidden=false;
			else
				document.layers[layername].hidden=true;
		}
	}


	function getLayer(obj1) {
	  if (isIE){
	    //return eval('document.all.' + obj);
	    return document.all(obj1);
	  }else if(is_nav5up || isMOZ){
	  	//alert("isnav6up");
	    	//return eval('document.' + obj1);
	    	return document.getElementById(obj1);
	  }else{
	  	return document.layers[layername];
	  }
	}


	function getObjectPosition(obj, position) {

	  var nod = new Object();
	  nod = getLayer(obj);
	 
	  if(nod != null){
			if(position=="left")
	  			return nod.style.left;
			if(position=="right")
	  			return nod.style.left+nod.style.width;
			if(position=="top"){
	  			 nod.innerHTML=nod.style.top;
	  		}
			if(position=="bottom")
	  			return nod.style.top+nod.style.height;
		}
		return null;
	}

	function findImage(name, doc) {
	  var i, img;
	  for (i = 0; i < doc.images.length; i++)
	    if (doc.images[i].name == name)
	      return doc.images[i];
	  for (i = 0; i < doc.layers.length; i++)
	    if ((img = findImage(name, doc.layers[i].document)) != null) {
	      img.container = doc.layers[i];

	      return img;
	    }
	  return null;
	}

	function getImage(name) {
	  if (isNN) {
	    return findImage(name, document);
	  }
	  if (isIE){
	    return eval('document.all.' + name);
	  }
	  if(is_nav5up) {
	    return eval('document.' + name);
	  }

	  return null;
	}

	function getImagePageLeft(img) {
	  var x, obj;
	  if (isNN) {
	    if (img.container != null)
	      return img.container.pageX + img.x;
	    else
	      return img.x;
	  }
	  if (isIE || is_nav5up) {
	    x = 0;
	    obj = img;
	    while (obj.offsetParent != null) {
	      x += obj.offsetLeft;
	      obj = obj.offsetParent;
	    }
	    x += obj.offsetLeft;
	    return x;
	  }

	  return -1;
	}

	function getImagePageTop(img) {
	  var y, obj;
	  if (isNN) {
	    if (img.container != null)
	      return img.container.pageY + img.y;
	    else
	      return img.y;
	  }
	  if (isIE || is_nav5up) {
	    y = 0;
	    obj = img;
	    while (obj.offsetParent != null) {
	      y += obj.offsetTop;
	      obj = obj.offsetParent;
	    }
	    y += obj.offsetTop;
	    return y;
	  }
	  return -1;
	}

	function setInnerHtml(obj, val){

		if(isIE){
			document.all[obj].innerHTML = val;
		}else if(is_nav5up  || isMOZ){
			var f;
			f = document.getElementById(obj)
			f.innerHTML = val;
		}

	}

function callToServer(URL) {
  if (!document.createElement) {return true};
  var IFrameDoc;
  if (!IFrameObj && document.createElement) {
    // create the IFrame and assign a reference to the
    // object to our global variable IFrameObj.
    // this will only happen the first time 
    // callToServer() is called
    var tempIFrame=document.createElement('iframe');
    tempIFrame.setAttribute('id','RSIFrame');
    tempIFrame.style.border='0px';
    tempIFrame.style.width='0px';
    tempIFrame.style.height='0px';
    IFrameObj = document.body.appendChild(tempIFrame);
  
    if (document.frames) {
      // this is for IE5 Mac, because it will only
      // allow access to the document object
      // of the IFrame if we access it through
      // the document.frames array
      IFrameObj = document.frames['RSIFrame'];
    }
  }
  
  if (navigator.userAgent.indexOf('Gecko') !=-1 && !IFrameObj.contentDocument) {
    // we have to give NS6 a fraction of a second
    // to recognize the new IFrame
    setTimeout('callToServer()',10);
    return false;
  }
  
  if (IFrameObj.contentDocument) {
    // For NS6
    IFrameDoc = IFrameObj.contentDocument; 
  } else if (IFrameObj.contentWindow) {
    // For IE5.5 and IE6
    IFrameDoc = IFrameObj.contentWindow.document;
  } else if (IFrameObj.document) {
    // For IE5
    IFrameDoc = IFrameObj.document;
  } else {
    return true;
  }
  
  IFrameDoc.location.replace(URL);
  return false;
}

//-->
