//-Urchin Tracking Module(UTM),$Revision: 1.4 $,Copyright 2002 Urchin Software Corporation-

var __utmf;

if (!__utmf) {
 var __utm1,__utm2,__utm3,__utmi,__utmn,__utmd,__utmu,__utmp,__utmr;
 __utm1 = document.cookie.indexOf("__utm1=");
 __utm2 = document.cookie.indexOf("__utm2=");
 __utm3 = document.cookie.indexOf("__utm3=");
 __utmn = Math.round(Math.random() * 4294967295);
 __utmd = new Date();
 __utmu = Math.round(__utmd.getTime()/1000);
 if ((__utm1 < 0) || (__utm2 < 0)) {
  document.cookie="__utm1="+__utmn+"."+__utmu+"; path=/; expires=Sun, 18 Jan 2038 00:00:00 GMT";
  document.cookie="__utm2="+__utmu+"; path=/; expires=Sun, 18 Jan 2038 00:00:00 GMT";
  document.cookie="__utm3="+__utmu+"; path=/;";
 } else if (__utm3 < 0) {
  document.cookie="__utm2="+__utmu+"; path=/; expires=Sun, 18 Jan 2038 00:00:00 GMT";
  document.cookie="__utm3="+__utmu+"; path=/;";
 }
 __utmr = document.referrer;
 if (!__utmr) {__utmr = "-";}
 else {
  __utmp = __utmr.indexOf(document.domain);
  if ((__utmp >= 0) && (__utmp <= 8)) __utmr = 0;
 }
 var __utmi = new Image(1,1);
 __utmi.src ="/Images/CommonImages/__utm.gif?utmn="+__utmn+"&utmr="+__utmr;
 __utmf = 1;
}
 //mouseover
<!--
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();
}
MM_reloadPage(true);

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_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_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
  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 MM_jumpMenu(targ,selObj,restore){ //v3.0
	if (selObj.options[selObj.selectedIndex].value=="/NewsEvents/Registration.pdf")
	{
		window.open(selObj.options[selObj.selectedIndex].value);
	}
	else
	{
		eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
		if (restore) selObj.selectedIndex=0;
	}
}
//-->

// dropnav
browser = navigator.appName;
ie = "Microsoft Internet Explorer";
netscape = "Netscape";

//Declaring variables for setting and manipulating navigation
var navActive   //Name of active navigation
var timerID     //Timer variable

//Creating a custom object called nav with the methods "name" and "menuExist"
function nav(name) {
this.name = name;
}

//Array of all navigation objects with variables "name" and "menuExist"
//var linkcount
//linkcount = parseInt(document.links[linkcount].innerHTML);

navItem = new Array()
for (i=0;i<4;i++) {
navItem[i] = new nav('drop'+(i+1));
}

//Simple function to turn on a <DIV>
function showMenu(navInput) {
if (browser == netscape) {
document.layers['M' + navInput].visibility = 'show';
}
else if (browser == ie) {
document.all['M' + navInput].style.visibility = 'visible';
}
}

//Simple function to turn off a <DIV>
function hideMenu(navInput) {
if (browser == netscape) {
document.layers['M' + navInput].visibility = 'hide';
}
else if (browser == ie) {
document.all['M' + navInput].style.visibility = 'hidden';
}
}

function activateMenu(navInput) {
stopTimer()
for (i = 0; i < navItem.length; i++) {
if (navItem[i].name == navInput) {
  showMenu(navItem[i].name);
}
else {
  hideMenu(navItem[i].name);
}
}
}

function setTimer(navInput) {
for (i = 0; i < navItem.length; i++) {
if (navItem[i].name == navInput) {
  navActive = navItem[i].name;
  timerID = setTimeout('hideMenu(navActive)', 100);
}
}
}

function stopTimer() {
clearTimeout(timerID);
}

//disable form fields when the new customer radio button is selected in my account
function NewCustomer1()
{	loginform.Email.disabled = true;
	loginform.Password.disabled = true;
}
function NewCustomer2()
{	loginform.Email.disabled = false;
	loginform.Password.disabled = false;
}
function init()
{	this.NewCustomer1();
	this.NewCustomer2();
}

//popup
<!-- Begin
function NewWindow1(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
//  End -->

function SetFormValue(formStr,field,value) {
	form=(MM_findObj(formStr))

	if (form) {
		if (null != (form.elements[field])) {
			form.elements[field].value=value.options[value.selectedIndex].value;
		}		
	}
}

function SubmitForm(formStr) {
	form=(MM_findObj(formStr))
	if(form) form.submit();
}