// JavaScript Document<!--/*Auto center window script- Eric King (http://redrival.com/eak/index.shtml)Permission granted to Dynamic Drive to feature script in archiveFor full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com*/var win = null;function NewWindow(mypage,myname,w,h,scroll){LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;TopPosition = (screen.height) ? (screen.height-h)/2 : 0;settings ='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'win = window.open(mypage,myname,settings)}function closeCurrentWindow(){  window.close();}function P7_JumpMenu(selObj,restore){ //v1.4 by Project Seven	var theFullString = selObj.options[selObj.selectedIndex].value;	if (restore) selObj.selectedIndex=0;	var theLength = theFullString.length;	var endPos = theFullString.lastIndexOf("~");	var theUrl, theTarget, theParent;	if (endPos > 0) {theUrl = theFullString.substring(0,endPos);}	else {theUrl = theFullString;}	endPos++	if (endPos < theLength) {theTarget = theFullString.substring(endPos,theLength)}	else {theTarget = "window:Main";}	if (theTarget == "window:New") {window.open(theUrl);}	else if (theTarget == "window:Main") {eval("parent.location='"+theUrl+"'");}	else {eval("parent.frames[\'"+theTarget+"\'].location='"+theUrl+"'");}}function printWindow(){   bV = parseInt(navigator.appVersion)   if (bV >= 4) window.print()}this.tooltip = function(){		/* CONFIG */				xOffset = 10;		yOffset = 20;				// these 2 variable determine popup's distance from the cursor		// you might want to adjust to get the right result			/* END CONFIG */			$("a.tooltip").hover(function(e){											  		this.t = this.title;		this.title = "";									  		$("body").append("<p id='tooltip'>"+ this.t +"</p>");		$("#tooltip")			.css("top",(e.pageY - xOffset) + "px")			.css("left",(e.pageX + yOffset) + "px")			.fadeIn("fast");		    },	function(){		this.title = this.t;				$("#tooltip").remove();    });		$("a.tooltip").mousemove(function(e){		$("#tooltip")			.css("top",(e.pageY - xOffset) + "px")			.css("left",(e.pageX + yOffset) + "px");	});			};function externalLinks() { if (!document.getElementsByTagName) return; var anchors = document.getElementsByTagName("a"); for (var i=0; i<anchors.length; i++) {   var anchor = anchors[i];   if (anchor.getAttribute("href") &&       anchor.getAttribute("rel") == "external")     anchor.target = "_blank"; }}window.onload = externalLinks;//-->
