/* BROWSER CHECK FUNCTIONS */function Browser() {  var ua, s, i;  this.isIE    = false;  // Internet Explorer  this.isNS    = false;  // Netscape  this.isMac   = false;  // Macintosh	this.isSafari = false;	// Safari	this.isSafari10 = false;  this.version = null;	this.versionMinor = null;	  ua = navigator.userAgent; 		s = "Safari";	if ((i = ua.indexOf(s)) >= 0) {    this.isSafari = true;    this.version = parseFloat(ua.substr(i + s.length));    return;  }	s = "MSIE";	if ((i = ua.indexOf(s)) >= 0) {    this.isIE = true;    this.version = parseFloat(ua.substr(i + s.length));    return;  }  s = "Netscape6/";  if ((i = ua.indexOf(s)) >= 0) {    this.isNS = true;    this.version = parseFloat(ua.substr(i + s.length));    return;  }    s = "Macintosh";  if ((i=ua.indexOf(s)) >= 0){  	this.isMac = true;	  return;  }    // Treat any other "Gecko" browser as NS 6.1.  s = "Gecko";  if ((i = ua.indexOf(s)) >= 0) {    this.isNS = true;    this.version = 6.1;    return;  }}var browser = new Browser();function correctPNG()  /* Purpose: Correctly handle PNG transparency in Win IE 5.5 or higher. ** Modification History:  ** 2005.07.13/LRR - Added "name" attribute to span tag for cross-browser compatibility. ** 2005.07.19/LRR - Changed quotes around title tag to double quotes to allow for single quotes in the alt text. */	{		if (browser.isIE&&browser.version>=5.5) {		 for(var i=0; i<document.images.length; i++) {				var img = document.images[i];				var imgName = img.src.toUpperCase();				if (imgName.substring(imgName.length-3, imgName.length) == "PNG") {					 var imgID = (img.id) ? "id='" + img.id + "' name='" + img.id + "' " : "";					 var imgClass = (img.className) ? "class='" + img.className + "' " : "";					 var imgTitle = (img.title) ? "title=\"" + img.title + "\" " : "title=\"" + img.alt + "\" ";					 var imgStyle = "display:inline-block" + img.style.cssText ;					 //var imgSizingMethod 					 if (img.align == "left") imgStyle = "float:left;" + imgStyle;					 if (img.align == "right") imgStyle = "float:right;" + imgStyle;					 if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle;						 var strNewHTML = "<span " + imgID + imgClass + imgTitle					 + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"						 + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"					 + "(src=\'" + img.src + "\', sizingMethod='image');\"></span>" ;					 //alert(strNewHTML);					 img.outerHTML = strNewHTML;					 i = i-1;				 }			 }		 }   }	 /* Image-swap Functions */function MM_preloadImages() { //v3.0  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}}function MM_swapImgRestore() { //v3.0	/* Modification History: 	** 2005.07.13/LRR - Modified to accommodate use of filters to handle png files in IE 	*/	var tmp = document.MM_sr[0];		var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&(x.oSrc||x.oFilter);i++) { 			if (x.oSrc) {				x.src=x.oSrc;			} else {				if (x.oFilter) {					x.style.filter=x.oFilter;				}			}		}}function MM_findObj(n, d) { //v4.01  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 && d.getElementById) x=d.getElementById(n); return x;}function MM_swapImage() { //v3.0	/* Modification History: 	** 2005.07.13/LRR - Modified to accommodate use of filters to handle png files in IE 	*/	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.src) {				x.oSrc=x.src; 				x.src=a[i+2];			} else {				x.oFilter = x.style.filter;				x.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'" + a[i+2] + "\')";			}		}	}}/* SHOW RANDOM ELEMENT FUNCTIONS */function GetRandomNumber(n) {    // Return a random number between 0 and n		return Math.round(Math.random()*n);	}function PickOne() {	// Randomly select and return one of the incoming arguments	if (PickOne.arguments.length > 0) {		return arguments[GetRandomNumber(PickOne.arguments.length-1)];	} else {			return -1;	}}function ShowElement(elemID) {	var elem = document.getElementById(elemID);	elem.style.display = "block";}function HideElement(elemID) {	var elem = document.getElementById(elemID);	elem.style.display = "none";}function SwapDiv(divPrefix, showNumber, ofCount) {	/* Note that this function is 1-based, not 0 */	var i;	for(i=1;i<=ofCount;i++) {		if (i==showNumber) {			ShowElement(divPrefix + i);		} else {			HideElement(divPrefix + i);		}	}}/* MISC. FUNCTIONS */function DoNothing() {		//Do Nothing - used for empty target anchors}function clearTextBox(objTxtBox) {	 if (objTxtBox.value == objTxtBox.defaultValue) {         objTxtBox.value = "";     }}function getPageOffsetLeft(el) {  var x;  // Return the x coordinate of an element relative to the page.  x = el.offsetLeft;  if (el.offsetParent != null)    x += getPageOffsetLeft(el.offsetParent);  return x;}function getPageOffsetTop(el) {  var y;  // Return the y coordinate of an element relative to the page.  y = el.offsetTop;    if (el.offsetParent != null)      y += getPageOffsetTop(el.offsetParent);  return y;}function alignElement(a, b) {	//* Get the top/left coordinates from item a and apply them to item b */	var elmA = MM_findObj(a);	var elmB = MM_findObj(b);	var x=getPageOffsetLeft(a);  var y=getPageOffsetTop(a); 	b.style.left = x + "px";	b.style.top = y + "px";}	function GetOtherSiteSelection(frm, elem) {	var sel = eval("document." + frm + "." + elem); 	ShowPage(sel.options[sel.selectedIndex].value, '');}function MM_SubmitOptInForm(){  if (document.frmOptIn.txtEmail.value == 'Enter e-mail address')   document.frmOptIn.txtEmail.value ="";   document.frmOptIn.submit();  }function OpenNewWindow(){	var OtherSites = document.getElementById('selOtherSites');	var str = OtherSites.options[OtherSites.selectedIndex].value;	if(str.indexOf("redr.aspx?siteid=")!= -1)	{		location = OtherSites.options[OtherSites.selectedIndex].value;	}	else	{		javascript:window.open(OtherSites.options[OtherSites.selectedIndex].value);	}}