	// Detect Netscape 4 browser
	var NS4 = false ;
	var MSDetect = 'false';

	// Generate Wrapper for right side quick links
	
	function sidebartop (title, width) {
		var bgcolor='#01548E';
		var seccolor='#ECECEC';
		var temptitle
		temptitle = title.split(" ").join(" ");
		document.write ('<table cellSpacing="0" cellPadding="0" width="'+width+'" border="0">');
		document.write ('<TR>');
		document.write ('<TD width="1%" bgColor="'+bgcolor+'"><IMG alt="bullet" src="/images/sidetabbullet.gif" hspace="2" vspace="1"></TD>');
		document.write ('<TD width="1%" class="sidenote" bgColor="'+bgcolor+'" noWrap><FONT ');
		document.write (' color="white"><B>' +temptitle+ '</B></FONT></TD>');
		
		document.write (' <td width="1%"  bgColor="'+bgcolor+'"><img alt="box edge" src="/images/edge.gif"></td>');
		document.write (' <td width="97%"  bgColor="'+bgcolor+'" background="/images/edge1.gif" valign="top"></td>');
		
		document.write ('</TR></TABLE>');
		document.write ('<TABLE cellSpacing="0" cellPadding="1" width="'+width+'" bgColor="'+bgcolor+'" border="0">');
		document.write ('<TR><TD>');
		document.write ('<TABLE cellSpacing="0" cellPadding="8" height="90" width="100%" bgColor="'+seccolor+'" border="0">');
		document.write ('<TR><TD class="sidenote">');
	}

	function sidebarbtm () {
		document.write ('</TD></TR></TABLE>');
		document.write ('</TD></TR></TABLE><p>');
	}


	function textfield (ftype, fname, fsize) {
		document.write ('<input type="');
		document.write (ftype);
		document.write ('" name="');
		document.write (fname);
		document.write ('" size="')
		if (NS4) 
			document.write (fsize/2);
		else
			document.write (fsize);
		document.write ('" >');
	}

//========= This is the FLASH DETECTION script =======
function IsFlashInstalled() {
	var flashinstalled = 0;
		var flashversion = 0;
		MSDetect = "false";
		if (navigator.plugins && navigator.plugins.length)
		{
			x = navigator.plugins["Shockwave Flash"];
			if (x)
			{
				flashinstalled = 2;
				if (x.description)
				{
					y = x.description;
					flashversion = y.charAt(y.indexOf('.')-1);
				}
			}
			else
				flashinstalled = 1;
			if (navigator.plugins["Shockwave Flash 2.0"])
			{
				flashinstalled = 2;
				flashversion = 2;
			}
		}
		else if (navigator.mimeTypes && navigator.mimeTypes.length)
		{
			x = navigator.mimeTypes['application/x-shockwave-flash'];
			if (x && x.enabledPlugin)
				flashinstalled = 2;
			else
				flashinstalled = 1;
		}
		else
			MSDetect = "true";

}

	 // rollover effect for vertical navigation bar
function bgOver(element){ 
		  element.style.background='#ECECEC'; 
		  element.style.cursor='hand'; 
		  return true; 
}

function bgOut(element){ 
		  element.style.background='#D3D3D3'; 
		  element.style.cursor='default'; 
		  return true; 
}

function bgOutWhite(element){ 
		  element.style.background='#00548D'; 
		  element.style.cursor='default'; 
		  return true; 
}

function bgClick(link){ 
		  top.location.href = link; 
		  return true; 
} 

function bgClickPopup(link){
			window.open (link);  
}

function bgOverV(element){ 
		  element.style.background='white'; 
		  element.style.border='solid #00548D 1px';
		  element.style.cursor='hand'; 
		  return true; 
}

function bgOutV(element){ 
		  element.style.background='#ECECEC'; 
		  element.style.border='solid #ECECEC 1px';
		  element.style.cursor='default'; 
		  return true; 
}


//========================= click-through =======
  function rClickTroughPop(UID, ProductID, FileName){
    var xurl
    // not scrambled ID for Exchange Libraries only
    xurl = "/ClickThrough/ClickThroughLib.aspx?UID=" + UID + "&ProductID=" + ProductID + "&FileName=" + FileName;
    rPopUpAWindowWithHeight( "", "", xurl, 700,500);
   // this.location = xurl;
  }
  
  function rClickTroughPop2(UID, Activity){
    var xurl 
    
    xurl = "/ClickThrough/ClickThroughBc.aspx?UID=" + UID + "&Activity=" + Activity;
    this.location = xurl;
  }
  
    
  function rClickTroughPopBe(UID, Activity){
    var xurl 
    
    xurl = "/ClickThrough/ClickThroughBe.aspx?UID=" + UID + "&Activity=" + Activity;
    rPopUpAWindowWithHeight( "", "", xurl, 700,500);
  }
  
  function rClickTroughPopBc(UID, Activity){
    var xurl 
    
    xurl = "/ClickThrough/ClickThroughBc.aspx?UID=" + UID + "&Activity=" + Activity;
    rPopUpAWindowWithHeight( "", "", xurl, 700,500);
  }
  
  function rClickTroughPopKey(RID,UID, Activity){
    var xurl 
    
    xurl = "/ClickThrough/ClickThroughKey.aspx?UID=" + UID + "&RegistrationID=" + RID + "&Activity=" + Activity;
    this.location = xurl;
  }
  
  function rClickTroughPop3(UID, Activity){
    var xurl
    xurl = "/cgi-bin/bc_asp/ClickThrough/ClickThrough2.asp?UID=" + UID + "&Activity=" + Activity;
    top.location.href = xurl;
  }  

 
