Cufon.replace('h1');
Cufon.replace('#custnav a', {
	hover: true
});

$(document).ready(function() {
    $(".tabs").tabs();
  });


// Converts links with an attribute of rel="external" to target="_blank"
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";
      anchor.title = "This link will open in a new window.";
	  }
  
 else if (anchor.getAttribute("href") && anchor.getAttribute("rel") != "external")
      {}
 
 }
}
window.onload = externalLinks;



/****************************************************************************
	 * Following two functions allow a child window to be sized and have all of the 
	 * items set such as menubar, re-sizable etc.
	 *
	 * Variables
	 * =========
	 * sURL - STRING - URL for new Window
	 * sLinkName - STRING - Name for new window
	 * sAppRoot - STRING - Root directory
	 * intResize - INTEGER - Use 1 for True and 0 for False
	 * intScrollbars - INTEGER - Use 1 for True and 0 for False
	 * intToolbar - INTEGER - Use 1 for True and 0 for False
	 * intMenubar - INTEGER - Use 1 for True and 0 for False
	 * intAddress - INTEGER - Use 1 for True and 0 for False
	 * intHorSize - INTEGER - New windows document width in Pixels
	 * intVertSize - INTEGER - New windows document height in Pixels
	 * intStatus - INTEGER - Use 1 for True and 0 for False
****************************************************************************/
		function openNewWindow(sURL, sLinkName, sAppRoot, intResize, intScrollbars, intToolbar, intMenubar, intAddress, intStatus, intHorSize, intVertSize)
		{
			if (intStatus>1)
				{
				intVertSize = intHorSize;
				intHorSize = intStatus;
				intStatus = 0;				
				}
			openChildWindow(sURL,sLinkName, "", true,"/", intResize, intScrollbars, intToolbar, intMenubar, intAddress, intStatus, intHorSize, intVertSize);
		}
		function openChildWindow(sURL, sLinkName, sWarn, bLocationBox, sAppRoot, intResize, intScrollbars, intToolbar, intMenubar, intAddress, intStatus, intHorSize, intVertSize)
		{
			var bContinue = true;
			if (sWarn != "")
			{
				bContinue = confirm (sWarn);
			}

			if (bContinue)
			{
				var browserVer = navigator.appVersion;
				var browserName = navigator.appName;
				var features = "";
				features += "resizable="+intResize;
				features += ",scrollbars="+intScrollbars;
				features += ",toolbar="+intToolbar;
				features += ",menubar="+intMenubar;
				features += ",width="+intHorSize;
				features += ",height="+intVertSize;
				features += ",location="+intAddress;
				features += ",status="+intStatus;

				var newWin = window.open(sURL, sLinkName, features);

				if ((browserVer.indexOf("MSIE 5.0") != -1) || (browserName == "Netscape"))
				{
					newWin.focus();
				}
			}
		}




