//<![CDATA[

  // --------------------------------------------------------------------------

  document.writeln('<script type="text/javascript" src="'+page.baseHref+'/js/swfobject.js"></script>');

  // --------------------------------------------------------------------------

  function printPage() {
    if (window.print) {
      window.print();
    } else {
      alert(page.noPrintMessage);
    }
  }

  // --------------------------------------------------------------------------
  
  var topVal;
  var leaving = "You are now leaving the Eiger Biopharmaceuticals website. If you would like to continue, click Continue.";
  
  $(document).ready(function () {
	
  	$("a.prompt").click(function(e) {
		topVal = null;
		topVal = e.pageY - 10 + "px";
		destiNation = $(this).attr("href");
		doLeave(destiNation, false);
		return false;	
	});
  
  });
  
  function doLeave(href, cancel) {
	
	$("#divFloatPop").css("top", topVal);
	$("#divFloatPop").fadeIn("normal");
	$("#divFloatPop").html(leaving);
	$("#divFloatPop").append('<div style="clear: both; height: 25px"><!-- c --></div>');
	
	if (cancel) {
		$("#divFloatPop").append('<a href="'+ cancel +'">Cancel</a>');
	} else {
		$("#divFloatPop").append('<a href="#" onclick="return stay();">Cancel</a>');	
	}
	
	if (href) {
		$("#divFloatPop").append('<a href="'+ destiNation +'" onclick="setCookie(\'US\', \'1\', null);">Continue</a>');
	} else {
		$("#divFloatPop").append('<a href="#" onclick="setCookie(\'US\', \'1\', null); return stay();">Continue</a>');	
	}
	
  }
  
  function stay() {
		destiNation = '';
		$("#divFloatPop").fadeOut("normal");
		return false;	  
  }

  // --------------------------------------------------------------------------
    
	startList = function() {
		if (document.all&&document.getElementById) {
			navRoot = document.getElementById("menu");
			for (i=0; i<navRoot.childNodes.length; i++) {
				node = navRoot.childNodes[i];
				if (node.nodeName=="LI") {
					node.onmouseover=function() {
						this.className+=" over";
					}
		  			node.onmouseout=function() {
	  					this.className=this.className.replace(" over", "");
	   				}
	   			}
	  		}
	 	}
	}
	
	window.onload=startList;  
  
//]]>