var messages = new Array();
var textFDY;
var textSSDY;
var textFPDY;

messages[0] = new Array('<p id="disclaimer-text"><b>Fund Distribution Yield:</b> The Fund Distribution Yield is the annual yield a Fund investor would receive in distributions if the most recent Fund distribution stayed consistent going forward. It is calculated by annualizing the most recent Fund distribution and dividing by the current Fund NAV. The yield represents a single distribution from the fund and does not represent the total returns of the fund.</p>');

messages[1] = new Array('<p id="disclaimer-text"><b>SEC Standardized 30-Day Yield:</b> The SEC 30-day Yield is a standard yield calculation developed and required by the Securities and Exchange Commission (SEC). It is based on the most recent 30-day period covered by the Fund\'s filings with the SEC. The yield figure reflects the dividends and interest earned during the period, after the deduction of the Fund\'s expenses. This is also referred to as the "Standardized Yield".</p>');

messages[2] = new Array('<p id="disclaimer-text"><b>7-Day Current Yield:</b> Reflects the average of all the rates on the securities in a portfolio over a 7-day period and annualizes the result. The result is then converted into a percent (multiplied by 100). The 7-day current yield does not take into account the effects of compounding or expenses.</p>');

messages[3] = new Array('<p id="disclaimer-text"><b>Yield to Maturity:</b> The average YTM is the interest rate that will make the present value of the cash flows equal to its market price plus accrued interest. The yield to maturity considers not only the coupon income, but any capital gain or loss that the investor will realize by holding the securities to maturity. It also considers the reinvestment of the coupons. </p>');

messages[4] = new Array('<p id="disclaimer-text"><b>Implied Yield:</b> This yield calculation represents the weighted average of the yields of the fund\'s underlying securities. This represents the annualized rate of return the fund would receive if it held all its component securities to maturity and there were no fluctuations in the fund\'s specified currency.</p>');

messages[5] = new Array('<p id="disclaimer-text"><b>Portfolio Dividend Yield</b> is the aggregate weighted yield on the portfolio securities held by a fund on a specified date. The Portfolio Dividend Yield is calculated on a daily basis and "looks through" to the actual holdings of the fund. It creates a snapshot each day of the weighted yield of each portfolio holding based on the 12 month trailing dividend per share divided by its current price. This does not represent any Funds actual distribution. The yield is NOT a current yield since no annualizing factor is used.<br>The Gross Portfolio Dividend Yield reflects the total amount of distributions on each security in the Fund\'s portfolio. For investments in U.S. securities, the gross yield and the net yield will be identical. In the case of foreign securities however, taxes are withheld by foreign governments. Each country has a different withholding rate. The Net Portfolio Dividend Yield is the Gross Yield less taxes based on a designated tax rate for each security of a foreign country represented in the Fund\'s portfolio. Investors may be able to receive a credit on their tax returns for taxes withheld by foreign governments - please check with your tax adviser.<br>WisdomTree shares are bought and sold at market price (not NAV) and are not individually redeemed from the Fund. Total Returns are calculated using the daily 4:00pm net asset value (NAV). Market price returns reflect the midpoint of the bid/ask spread as of the close of trading on the exchange where Fund shares are listed. Market price returns do not represent the returns you would receive if you traded shares at other times.</p>');

textFDY = messages[0];
textSSDY = messages[1];
textFPDY = messages[2];

function chBg(obj) { 
   obj.bgColor = "#F8DA87"; 
} 
function chBg2(obj) { 
   obj.bgColor = "#D1EBC4"; 
}



<!-- // script for div tags

function FP_getObjectByID(id,o) {//v1.0
 var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id);
 else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
 if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
 for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }
 f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
 for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el; } }
 return null;
}


			var ie = false;

			function showglossaryDiv(name) {
				var button = getObj(name);

				if (button.className == 'glossaryvisible') {
					button.className = 'glossaryhidden';
					return;
				} else {
					button.className = 'glossaryvisible';
					return;
				}
			}
			
			function hideglossaryDiv() { 
			document.getElementById("closed01").className = 'glossaryhidden';
			document.getElementById("closed1_1").className = 'glossaryhidden';
			document.getElementById("closed2_1").className = 'glossaryhidden';
			document.getElementById("closed3_1").className = 'glossaryhidden';
			document.getElementById("closed4_1").className = 'glossaryhidden';
			document.getElementById("closed5_1").className = 'glossaryhidden';
			document.getElementById("closed6_1").className = 'glossaryhidden';
			document.getElementById("closed7_1").className = 'glossaryhidden';
			document.getElementById("closed8_1").className = 'glossaryhidden';
			document.getElementById("closed9_1").className = 'glossaryhidden';
			document.getElementById("closed10_1").className = 'glossaryhidden';
			document.getElementById("closed11_1").className = 'glossaryhidden';
			document.getElementById("closed12_1").className = 'glossaryhidden';
			document.getElementById("closed13_1").className = 'glossaryhidden';
			document.getElementById("closed14_1").className = 'glossaryhidden';
			document.getElementById("closed15_1").className = 'glossaryhidden';
			document.getElementById("closed16_1").className = 'glossaryhidden';
			document.getElementById("closed17_1").className = 'glossaryhidden';																																																			
			document.getElementById("closed18_1").className = 'glossaryhidden';
			document.getElementById("closed19_1").className = 'glossaryhidden';
			document.getElementById("closed20_1").className = 'glossaryhidden';
			document.getElementById("closed21_1").className = 'glossaryhidden';
			document.getElementById("closed22_1").className = 'glossaryhidden';
			document.getElementById("closed23_1").className = 'glossaryhidden';
			document.getElementById("closed24_1").className = 'glossaryhidden';

			document.getElementById("closed0").className = 'glossaryvisible';
			document.getElementById("closed1").className = 'glossaryvisible';
			document.getElementById("closed2").className = 'glossaryvisible';
			document.getElementById("closed3").className = 'glossaryvisible';
			document.getElementById("closed4").className = 'glossaryvisible';
			document.getElementById("closed5").className = 'glossaryvisible';
			document.getElementById("closed6").className = 'glossaryvisible';
			document.getElementById("closed7").className = 'glossaryvisible';
			document.getElementById("closed8").className = 'glossaryvisible';
			document.getElementById("closed9").className = 'glossaryvisible';
			document.getElementById("closed10").className = 'glossaryvisible';
			document.getElementById("closed11").className = 'glossaryvisible';
			document.getElementById("closed12").className = 'glossaryvisible';
			document.getElementById("closed13").className = 'glossaryvisible';
			document.getElementById("closed14").className = 'glossaryvisible';
			document.getElementById("closed15").className = 'glossaryvisible';
			document.getElementById("closed16").className = 'glossaryvisible';
			document.getElementById("closed17").className = 'glossaryvisible';																																																			
			document.getElementById("closed18").className = 'glossaryvisible';
			document.getElementById("closed19").className = 'glossaryvisible';
			document.getElementById("closed20").className = 'glossaryvisible';
			document.getElementById("closed21").className = 'glossaryvisible';
			document.getElementById("closed22").className = 'glossaryvisible';
			document.getElementById("closed23").className = 'glossaryvisible';
			document.getElementById("closed24").className = 'glossaryvisible';			
			return;
			}
			
			function getObj(id) {
				if (ie) {
					return document.all[id];
				} else {
					return document.getElementById(id);
				}
			}
//-->


<!--
// This code is from Dynamic Web Coding www.dyn-web.com 
// Copyright 2002 by Sharon Paine Permission granted to use this code as long as this entire notice is included.
// Courtesy of SimplytheBest.net - http://simplythebest.net/scripts/

var dom = (document.getElementById) ? true : false;
var ns5 = ((navigator.userAgent.indexOf("Gecko")>-1) && dom) ? true: false;
var ie5 = ((navigator.userAgent.indexOf("MSIE")>-1) && dom) ? true : false;
var ns4 = (document.layers && !dom) ? true : false;
var ie4 = (document.all && !dom) ? true : false;
var nodyn = (!ns5 && !ns4 && !ie4 && !ie5) ? true : false;

var origWidth, origHeight;
if (ns4) {
	origWidth = window.innerWidth; origHeight = window.innerHeight;
	window.onresize = function() { if (window.innerWidth != origWidth || window.innerHeight != origHeight) history.go(0); }
}

if (nodyn) { event = "nope" }
var tipFollowMouse	= true;	
var tipWidth		= 307;
//var offX		 	= 12;	// how far from mouse to show tip
//var offY		 	= 12; 

var offX		 	= -320;//310
var offY		 	= 10;

var tipFontFamily 	= "arial, Verdana, helvetica, sans-serif";
var tipFontSize		= "11px";
var tipFontColor	= "#5B5946";
var tipBgColor		= "#ffffff"; 
var origBgColor 	= tipBgColor; // in case no bgColor set in array
var tipBorderColor 	= "#50473E";
var tipBorderWidth 	= 2;
var tipBorderStyle 	= "solid";
var tipPadding	 	= 0;

//OLD ARRAY
//var messages = new Array();
//messages[0] = new Array('IMAGE URL','DESCRIPTION',"TEXT COLOR");
//messages[0] = new Array('','TEXT<BR>Professional business planning software.');
//messages[1] = new Array('','TEXT<BR>Professional marketing planning software.');
//messages[2] = new Array('','TEXT<BR>Financial calculations and projections made easy.');


if (document.images) {
	var theImgs = new Array();
	for (var i=0; i<messages.length; i++) {
  	theImgs[i] = new Image();
		theImgs[i].src = messages[i][0];
  }
}

var startStr = '<table width="' + tipWidth + '"><tr><td align="center" width="100%">';
var midStr = '</td></tr><tr><td valign="top">';
var endStr = '</td></tr></table>';

//TO USE IMAGES IN THE ROLLOVER GLOSSARY ITEMS
//var startStr = '<table width="' + tipWidth + '"><tr><td align="center" width="100%"><img src="';
//var midStr = '" border="0"></td></tr><tr><td valign="top">';
//var endStr = '</td></tr></table>';

var tooltip, tipcss;
var tooltip2, tipcss2; 			//SWM
function initTip() {
	if (nodyn) return;
	tooltip = (ns4)? document.tipDiv.document: (ie4)? document.all['tipDiv']: (ie5||ns5)? document.getElementById('tipDiv'): null;
	tooltip2 = (ns4)? document.tipDiv2.document: (ie4)? document.all['tipDiv2']: (ie5||ns5)? document.getElementById('tipDiv2'): null;  //SWM
	tipcss = (ns4)? document.tipDiv: tooltip.style;
	tipcss2 = (ns4)? document.tipDiv2: tooltip2.style;																					//SWM
	if (ie4||ie5||ns5) {	// ns4 would lose all this on rewrites
		//tipcss.width = tipWidth+"px";
		tipcss.fontFamily = tipFontFamily;
		tipcss.fontSize = tipFontSize;
		tipcss.color = tipFontColor;
		tipcss.backgroundColor = tipBgColor;
		tipcss.borderColor = tipBorderColor;
		tipcss.borderWidth = tipBorderWidth+"px";
		tipcss.padding = tipPadding+"px";
		tipcss.borderStyle = tipBorderStyle;
		
		/* BELOW - SWM code mods */
		//tipcss.width = tipWidth+"px";
		tipcss2.fontFamily = tipFontFamily;
		tipcss2.fontSize = tipFontSize;
		tipcss2.color = tipFontColor;
		tipcss2.backgroundColor = tipBgColor;
		tipcss2.borderColor = tipBorderColor;
		tipcss2.borderWidth = tipBorderWidth+"px";
		tipcss2.padding = tipPadding+"px";
		tipcss2.borderStyle = tipBorderStyle;
	}
	if (tooltip&&tipFollowMouse) {
		if (ns4) document.captureEvents(Event.MOUSEMOVE);
		document.onmousemove = trackMouse;
	}
	
	/* BELOW - SWM code mods */
	if (tooltip2&&tipFollowMouse) {
		if (ns4) document.captureEvents(Event.MOUSEMOVE);
		document.onmousemove = trackMouse;
	}
}

window.onload = initTip;

var t1,t2;	// for setTimeouts
var t11,t22; //SWM code mod - for setTimeouts
var tipOn = false;	// check if over tooltip link
function doTooltip(evt,num,var_width) {

	/* SWM Custom code begin */
	//var_width is 0 || 307;
	var nowidth = new Boolean("false"); //to remove the "width" attribute.
	if(var_width != 0){
		tipWidth = var_width;
		tipcss.width = var_width + "px";
		nowidth = false;
	}else{
		nowidth = true;
	}
	if(var_width != 0){
		if (!tooltip) return;
	}else{
		if (!tooltip2) return;
	}
	/* SWM Custom code end */
	
	//if (!tooltip) return;									//commented out to account for SWM code mod above
	
	if (t1) clearTimeout(t1);	if (t2) clearTimeout(t2);
	if (t11) clearTimeout(t11);	if (t22) clearTimeout(t22);	//account for SWM code mod
	tipOn = true;
	// set colors if included in messages array
	if (messages[num][2])	var curBgColor = messages[num][2];
	else curBgColor = tipBgColor;
	if (messages[num][3])	var curFontColor = messages[num][3];
	else curFontColor = tipFontColor;
	//if (ns4) {
	//	var tip = '<table bgcolor="' + tipBorderColor + '" width="' + tipWidth + '" cellspacing="0" cellpadding="' + tipBorderWidth + '" border="0"><tr><td><table bgcolor="' + curBgColor + '" width="100%" cellspacing="0" cellpadding="' + tipPadding + '" border="0"><tr><td>'+ startStr  + midStr + '<span style="font-family:' + tipFontFamily + '; font-size:' + tipFontSize + '; color:' + curFontColor + ';">' + messages[num][1] + '</span>' + endStr + '</td></tr></table></td></tr></table>';
	//	tooltip.write(tip);
	//	tooltip.close();
	//} else if (ie4||ie5||ns5) {
	//	var tip = startStr  + midStr + '<span style="font-family:' + tipFontFamily + '; font-size:' + tipFontSize + '; color:' + curFontColor + ';">' + messages[num][1] + '</span>' + endStr;
	//	tipcss.backgroundColor = curBgColor;
	// 	tooltip.innerHTML = tip;
	//}
	
//	IF YOU  want the word as well as the description use this commented out one instead of the above stuff
	if (ns4) {
		var tip;
		if(nowidth){
			tip = '<table cellpadding="0" cellspacing="0" border="0">';
		}else{
			tip = '<table cellpadding="0" cellspacing="0" border="0" width="' + tipWidth + '">';
		}
		//tip += '<tr><td colspan="4" bgcolor="#A1A1A1"><img src="images/spacer.gif" alt="" width="1" height="2" border="0"></td></tr><tr><td bgcolor="#A1A1A1"><img src="images/spacer.gif" alt="" width="2" height="1" border="0"></td><td class="content" valign="top"><font size="2">' + messages[num][0] + '</font><br>' + messages[num][1] + '</div></td><td bgcolor="#A1A1A1"><img src="images/spacer.gif" alt="" width="2" height="1" border="0"></td></tr><tr><td colspan="4" bgcolor="#A1A1A1"><img src="images/spacer.gif" alt="" width="1" height="2" border="0"></td></tr></table>';
		tip += '<tr><td colspan="4" bgcolor="#A1A1A1"><img src="images/spacer.gif" alt="" width="1" height="2" border="0"></td></tr><tr><td bgcolor="#A1A1A1"><img src="images/spacer.gif" alt="" width="2" height="1" border="0"></td><td class="content" valign="top"><font size="2">' + messages[num][0] + '</font></div></td><td bgcolor="#A1A1A1"><img src="images/spacer.gif" alt="" width="2" height="1" border="0"></td></tr><tr><td colspan="4" bgcolor="#A1A1A1"><img src="images/spacer.gif" alt="" width="1" height="2" border="0"></td></tr></table>';
		//tooltip.write(tip);
		//tooltip.close();					//commented out to account for SWM code mod below.
		
		if(var_width != 0){
			tooltip.write(tip);
			tooltip.close();
		}else{
			tooltip2.write(tip);
			tooltip2.close();
		}
		
	} else if (ie4||ie5||ns5) {
		var tip;
		if(nowidth){
			tip = '<table cellpadding="0" cellspacing="0" border="0">';
		}else{
			tip = '<table cellpadding="0" cellspacing="0" border="0" width="' + tipWidth + '">';
		}
		//tip += '<tr><td colspan="4" bgcolor="#A1A1A1"><img src="images/spacer.gif" alt="" width="1" height="2" border="0"></td></tr><tr><td bgcolor="#A1A1A1"><img src="images/spacer.gif" alt="" width="2" height="1" border="0"></td><td class="content" valign="top"><font size="2">R1' + messages[num][0] + '</font><br>R2' + messages[num][1] + '</div></td><td bgcolor="#A1A1A1"><img src="images/spacer.gif" alt="" width="2" height="1" border="0"></td></tr><tr><td colspan="4" bgcolor="#A1A1A1"><img src="images/spacer.gif" alt="" width="1" height="2" border="0"></td></tr></table>';
		tip += '<tr><td colspan="4" bgcolor="#A1A1A1"><img src="images/spacer.gif" alt="" width="1" height="2" border="0"></td></tr><tr><td bgcolor="#A1A1A1"><img src="images/spacer.gif" alt="" width="2" height="1" border="0"></td><td class="content" valign="top"><font size="2">' + messages[num][0] + '</font></div></td><td bgcolor="#A1A1A1"><img src="images/spacer.gif" alt="" width="2" height="1" border="0"></td></tr><tr><td colspan="4" bgcolor="#A1A1A1"><img src="images/spacer.gif" alt="" width="1" height="2" border="0"></td></tr></table>';
		tipcss.backgroundColor = curBgColor;
	 	//tooltip.innerHTML = tip;									//commented out to account for SWM code mod below.
		
		/* begin SWM code mod */
		if(var_width != 0){
			tooltip.innerHTML = tip;
		}else{
			tooltip2.innerHTML = tip;
		}
		/* end SWM code mod */
	}
	
		
	//if (!tipFollowMouse) positionTip(evt);
	//else t1=setTimeout("tipcss.visibility='visible'",100);			//commented out to account for SWM code mod below.
	/* begin SWM code mod */
	if(var_width != 0){
		if (!tipFollowMouse){
			 positionTip(evt);
		}else{ 
			t1=setTimeout("tipcss.visibility='visible'",100);
		}
	}else{
		if (!tipFollowMouse){
			 positionTip(evt);
		}else{ 
			t11=setTimeout("tipcss2.visibility='visible'",100);
		}
	}
	/* end SWM code mod */
}

//SWM MOD - Ronan 5/9/08 ToolTip Overloaded -------------------------------------------------------------------------------
function doTooltipOverLoaded(evt,num,var_width,cust_msg) {

	/* SWM Custom code begin */
	//var_width is 0 || 307;
	var nowidth = new Boolean("false"); //to remove the "width" attribute.
	if(var_width != 0){
		tipWidth = var_width;
		tipcss.width = var_width + "px";
		nowidth = false;
	}else{
		nowidth = true;
	}
	if(var_width != 0){
		if (!tooltip) return;
	}else{
		if (!tooltip2) return;
	}
	/* SWM Custom code end */
	
	//if (!tooltip) return;									//commented out to account for SWM code mod above
	
	if (t1) clearTimeout(t1);	if (t2) clearTimeout(t2);
	if (t11) clearTimeout(t11);	if (t22) clearTimeout(t22);	//account for SWM code mod
	tipOn = true;
	// set colors if included in messages array
	//if (messages[num][2])	var curBgColor = messages[num][2];
	//else curBgColor = tipBgColor;
	//if (messages[num][3])	var curFontColor = messages[num][3];
	//else 
	curFontColor = tipFontColor; //this line originally came after the "else"
	//if (ns4) {
	//	var tip = '<table bgcolor="' + tipBorderColor + '" width="' + tipWidth + '" cellspacing="0" cellpadding="' + tipBorderWidth + '" border="0"><tr><td><table bgcolor="' + curBgColor + '" width="100%" cellspacing="0" cellpadding="' + tipPadding + '" border="0"><tr><td>'+ startStr  + midStr + '<span style="font-family:' + tipFontFamily + '; font-size:' + tipFontSize + '; color:' + curFontColor + ';">' + messages[num][1] + '</span>' + endStr + '</td></tr></table></td></tr></table>';
	//	tooltip.write(tip);
	//	tooltip.close();
	//} else if (ie4||ie5||ns5) {
	//	var tip = startStr  + midStr + '<span style="font-family:' + tipFontFamily + '; font-size:' + tipFontSize + '; color:' + curFontColor + ';">' + messages[num][1] + '</span>' + endStr;
	//	tipcss.backgroundColor = curBgColor;
	// 	tooltip.innerHTML = tip;
	//}
	
//	IF YOU  want the word as well as the description use this commented out one instead of the above stuff
	if (ns4) {
		var tip;
		if(nowidth){
			tip = '<table cellpadding="0" cellspacing="0" border="0">';
		}else{
			tip = '<table cellpadding="0" cellspacing="0" border="0" width="' + tipWidth + '">';
		}
		//tip += '<tr><td colspan="4" bgcolor="#A1A1A1"><img src="images/spacer.gif" alt="" width="1" height="2" border="0"></td></tr><tr><td bgcolor="#A1A1A1"><img src="images/spacer.gif" alt="" width="2" height="1" border="0"></td><td class="content" valign="top"><font size="2">' + messages[num][0] + '</font><br>' + messages[num][1] + '</div></td><td bgcolor="#A1A1A1"><img src="images/spacer.gif" alt="" width="2" height="1" border="0"></td></tr><tr><td colspan="4" bgcolor="#A1A1A1"><img src="images/spacer.gif" alt="" width="1" height="2" border="0"></td></tr></table>';
		tip += '<tr><td colspan="4" bgcolor="#A1A1A1"><img src="images/spacer.gif" alt="" width="1" height="2" border="0"></td></tr><tr><td bgcolor="#A1A1A1"><img src="images/spacer.gif" alt="" width="2" height="1" border="0"></td><td class="content" valign="top"><font size="2">' + cust_msg + '</font></div></td><td bgcolor="#A1A1A1"><img src="images/spacer.gif" alt="" width="2" height="1" border="0"></td></tr><tr><td colspan="4" bgcolor="#A1A1A1"><img src="images/spacer.gif" alt="" width="1" height="2" border="0"></td></tr></table>';
		//tooltip.write(tip);
		//tooltip.close();					//commented out to account for SWM code mod below.
		
		if(var_width != 0){
			tooltip.write(tip);
			tooltip.close();
		}else{
			tooltip2.write(tip);
			tooltip2.close();
		}
		
	} else if (ie4||ie5||ns5) {
		var tip;
		if(nowidth){
			tip = '<table cellpadding="0" cellspacing="0" border="0">';
		}else{
			tip = '<table cellpadding="0" cellspacing="0" border="0" width="' + tipWidth + '">';
		}
		//tip += '<tr><td colspan="4" bgcolor="#A1A1A1"><img src="images/spacer.gif" alt="" width="1" height="2" border="0"></td></tr><tr><td bgcolor="#A1A1A1"><img src="images/spacer.gif" alt="" width="2" height="1" border="0"></td><td class="content" valign="top"><font size="2">R1' + messages[num][0] + '</font><br>R2' + messages[num][1] + '</div></td><td bgcolor="#A1A1A1"><img src="images/spacer.gif" alt="" width="2" height="1" border="0"></td></tr><tr><td colspan="4" bgcolor="#A1A1A1"><img src="images/spacer.gif" alt="" width="1" height="2" border="0"></td></tr></table>';
		tip += '<tr><td colspan="4" bgcolor="#A1A1A1"><img src="images/spacer.gif" alt="" width="1" height="2" border="0"></td></tr><tr><td bgcolor="#A1A1A1"><img src="images/spacer.gif" alt="" width="2" height="1" border="0"></td><td class="content" valign="top"><font size="2">' + cust_msg + '</font></div></td><td bgcolor="#A1A1A1"><img src="images/spacer.gif" alt="" width="2" height="1" border="0"></td></tr><tr><td colspan="4" bgcolor="#A1A1A1"><img src="images/spacer.gif" alt="" width="1" height="2" border="0"></td></tr></table>';
		tipcss.backgroundColor = curBgColor;
	 	//tooltip.innerHTML = tip;									//commented out to account for SWM code mod below.
		
		/* begin SWM code mod */
		if(var_width != 0){
			tooltip.innerHTML = tip;
		}else{
			tooltip2.innerHTML = tip;
		}
		/* end SWM code mod */
	}
	
		
	//if (!tipFollowMouse) positionTip(evt);
	//else t1=setTimeout("tipcss.visibility='visible'",100);			//commented out to account for SWM code mod below.
	/* begin SWM code mod */
	if(var_width != 0){
		if (!tipFollowMouse){
			 positionTip(evt);
		}else{ 
			t1=setTimeout("tipcss.visibility='visible'",100);
		}
	}else{
		if (!tipFollowMouse){
			 positionTip(evt);
		}else{ 
			t11=setTimeout("tipcss2.visibility='visible'",100);
		}
	}
	/* end SWM code mod */
}// end overloaded tooltip function.-------------------------------------------------------------------------------------------------------

var mouseX, mouseY;
function trackMouse(evt) {
	mouseX = (ns4||ns5)? evt.pageX: window.event.clientX + document.body.scrollLeft;
	mouseY = (ns4||ns5)? evt.pageY: window.event.clientY + document.body.scrollTop;
	if (tipOn) positionTip(evt);
}

function positionTip(evt) {
	if (!tipFollowMouse) {
		mouseX = (ns4||ns5)? evt.pageX: window.event.clientX + document.body.scrollLeft;
		mouseY = (ns4||ns5)? evt.pageY: window.event.clientY + document.body.scrollTop;
	}
	// tooltip width and height
	var tpWd = (ns4)? tooltip.width: (ie4||ie5)? tooltip.clientWidth: tooltip.offsetWidth;
	var tpHt = (ns4)? tooltip.height: (ie4||ie5)? tooltip.clientHeight: tooltip.offsetHeight;
		//tooltip for additional layer - SWM code mod
		var tpWd = (ns4)? tooltip2.width: (ie4||ie5)? tooltip2.clientWidth: tooltip2.offsetWidth;
		var tpHt = (ns4)? tooltip2.height: (ie4||ie5)? tooltip2.clientHeight: tooltip2.offsetHeight;
	// document area in view (subtract scrollbar width for ns)
	var winWd = (ns4||ns5)? window.innerWidth-20+window.pageXOffset: document.body.clientWidth+document.body.scrollLeft;
	var winHt = (ns4||ns5)? window.innerHeight-20+window.pageYOffset: document.body.clientHeight+document.body.scrollTop;
	// check mouse position against tip and window dimensions
	// and position the tooltip 
	if ((mouseX+offX+tpWd)>winWd){
		tipcss.left = (ns4)? mouseX-(tpWd+offX): mouseX-(tpWd+offX)+"px";
		tipcss2.left = (ns4)? mouseX-(tpWd+offX): mouseX-(tpWd+offX)+"px";				//SWM code mod
	}else{ 
		tipcss.left = (ns4)? mouseX+offX: mouseX+offX+"px";
		tipcss2.left = (ns4)? mouseX+offX: mouseX+offX+"px";				//SWM code mod
	}
	if ((mouseY+offY+tpHt)>winHt){
		tipcss.top = (ns4)? winHt-(tpHt+offY): winHt-(tpHt+offY)+"px";
		tipcss2.top = (ns4)? winHt-(tpHt+offY): winHt-(tpHt+offY)+"px";				//SWM code mod
	} else { 
		tipcss.top = (ns4)? mouseY+offY: mouseY+offY+"px";
		tipcss2.top = (ns4)? mouseY+offY: mouseY+offY+"px";				//SWM code mod
	}
	if (!tipFollowMouse){
		 t1=setTimeout("tipcss.visibility='visible'",100);
		 t11=setTimeout("tipcss2.visibility='visible'",100);
	}
}

function hideTip() {
	if (!tooltip) return;
	t2=setTimeout("tipcss.visibility='hidden'",100);
	t22=setTimeout("tipcss2.visibility='hidden'",100);
	tipOn = false;
}

//-->

<!--

function updatecounter(hit,hit2) {
  document.getElementById("counter").innerHTML = "Showing&nbsp;" + hit + "/" + hit2;
}
function updatecounter2(hit,hit2) {
  document.getElementById("counter2").innerHTML = "Showing&nbsp;" + hit + "/" + hit2;
}
function updatecounter3(hit,hit2) {
  document.getElementById("counter3").innerHTML = "Showing&nbsp;" + hit + "/" + hit2;
}
//document.getElementById("counter").innerHTML = "Showing" + counter + counter2;
//onclick="updateMessage()"
// -->

