// horizontal button, version: $Revision: 1.19 $
var i = 1;
var YES = 1;
var NO = 0;

/*Choose Partner ID */
var partnerID='246';
var btn = new Image();
btn.src="http://btn.clickability.com/btn.gif?"+"["+0+"]["+partnerID+"]["+i+"]["+Math.random()+"]";


/*Choose App*/
var SAVETHIS = YES;
var EMAILTHIS = NO;
var PRINTTHIS = NO;

/*Choose Text*/
var textWrap = NO;

/*Choose Icon Color*/
var iconColor = "003366";

/*Choose Text Color*/
var textColor = "003366";

/*Choose Layer Text Color*/
var layerTextColor = "003366";

/*Choose Highlight Color */
var highlightColor = "000000";

/*Choose Dropdown Layer Color */ 
var layerColor = "ffffff";

/*Choose with or without most popular */ 
var mostPopularSave = YES;
var mostPopularEmail = NO;
var mostPopularPrint = NO;
var mpButtonSave = "";
var mpButtonEmail = "";
var mpButtonPrint = "";

/*Choose with or without what is this */
var whatSave = YES;
var whatEmail = NO;
var whatPrint = NO;
var whatButtonSave = "";
var whatButtonEmail = "";
var whatButtonPrint = "";

/*Choose with or without sponsorship */
var sponsorship = NO;
var sponsorLoc = "";
var sponsorIntro = "";
var sponsorColor = "";
var sponsorTag = "";

/*Disable dropdown for layer*/
var nsDropdownOn = YES;
var pcieDropdownOn = YES;
var macie5DropdownOn = YES;
var macie4DropdownOn = YES;

/****************Don't Change Below*************************************/

isNS = (isNS && nsDropdownOn);
isPCIE = (isPCIE && pcieDropdownOn);
isMACIE5 = (isMACIE5 && macie5DropdownOn);
isMACIE4 = (isMACIE4 && macie4DropdownOn);


/* Get image size and location*/
var layerTextHeight = 13;
if (!textWrap) {
	var shiftLayer = 15;
	var iconHeight = 18; 
	var sIconWidth = 34;
	var eIconWidth = 30;
	var pIconWidth = 31; 
	var textHeight = 18;
	var sTextWidth = 50; 
	var eTextWidth = 56;
	var pTextWidth = 55;
	sIconImage = IMG + iconColor + "/h-s-icon-l.gif";
	sTextImage = IMG + textColor + "/h-s-text-l.gif";
	eIconImage = IMG + iconColor + "/h-e-icon-l.gif";
	eTextImage = IMG + textColor + "/h-e-text-l.gif"; 
	pIconImage = IMG + iconColor + "/h-p-icon-l.gif";
	pTextImage = IMG + textColor + "/h-p-text-l.gif";
	
}
if (textWrap) {
	var shiftLayer = 0;
	var iconHeight = 24; 
	var sIconWidth = 35;
	var eIconWidth = 31; 
	var pIconWidth = 32;
	var textHeight = 24;
	var sTextWidth = 30;
	var eTextWidth = 34;
	var pTextWidth = 31;
	sIconImage = IMG + iconColor + "/h-s-icon-s.gif";
	sTextImage = IMG + textColor + "/h-s-text-s.gif";
	eIconImage = IMG + iconColor + "/h-e-icon-s.gif";
	eTextImage = IMG + textColor + "/h-e-text-s.gif"; 
	pIconImage = IMG + iconColor + "/h-p-icon-s.gif";
	pTextImage = IMG + textColor + "/h-p-text-s.gif";
}

/*Init array*/
buttonLayer[i]="";
dropLayer[i]="";

if (sponsorship) {
	if (sponsorIntro == "brought-to-you.gif") {
		sponsorWidth = 76;
		sponsorHeight = 16;
	}
	if (sponsorIntro == "sponsored-by.gif") {
		sponsorWidth = 59;
		sponsorHeight = 18;
	}
	if (sponsorIntro == "presented-by.gif") {
		sponsorWidth = 56;
		sponsorHeight = 16;
	}
	sponsorImage = IMG + sponsorColor + "/" + sponsorIntro;
	if (sponsorLoc == "top") {
		buttonLayer[i] += "<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tr><td align=\"right\"><img src=\""+sponsorImage+"\" width=\"" + sponsorWidth + "\" height=\"" + sponsorHeight + "\" border=0 align=\"top\">&nbsp;"+sponsorTag+"</td></tr><tr><td nowrap>";	
	}
	else {
		buttonLayer[i] += "<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tr><td valign=\"top\" nowrap>";	
	}
	
}

if (SAVETHIS) {
	/* ST App URL */
	var ssLocation ="" + saveThisLocation + "saveThis?&fb=Y&url='+escape(getClickURL())+'&title='+escape(getClickTitle())+'&partnerID=" + partnerID + "','click','status=0,toolbar=0,width=518,resizable=1,scrollbars=1,height=400'";
	var srLocation ="" + saveThisLocation + "saveThis?&fb=Y&retrieve=Y&partnerID=" + partnerID + "','click','status=0,toolbar=0,width=518,resizable=1,scrollbars=1,height=400'";
	var smLocation ="" + saveThisLocation + "saveThisApp?&fb=Y&clickMap=topTen&popularType=0&partnerID=" + partnerID + "','click','status=0,toolbar=0,width=518,resizable=1,scrollbars=1,height=400'";
	var swLocation = "" + saveThisLocation + "saveThisApp?&fb=Y&clickMap=whatIsThis&template=WhatIsThis&partnerID=" + partnerID + "','click','status=0,toolbar=0,width=518,resizable=1,scrollbars=1,height=400'";

	/* Layer Img Size and Location*/
	var ssTextWidth = 61;
	var srTextWidth = 77;
	var smTextWidth = 64;
	var swTextWidth = 68

	ssImage = IMG + layerTextColor + "/save-article.gif";
	srImage = IMG + layerTextColor + "/retrieve-article.gif";
	smImage = IMG + layerTextColor + "/most-popular.gif";
	swImage = IMG + layerTextColor + "/whats-this.gif";

	ssImageOn = IMG + highlightColor + "/save-article.gif";
	srImageOn = IMG + highlightColor + "/retrieve-article.gif";
	smImageOn = IMG + highlightColor + "/most-popular.gif";
	swImageOn = IMG + highlightColor + "/whats-this.gif";
	
	two_hl[i] = new Image();
	two_hl[i].src = ssImageOn;
	three_hl[i] = new Image();
	three_hl[i].src = srImageOn;
	four_hl[i] = new Image();
	four_hl[i].src = smImageOn;
	five_hl[i] = new Image();
	five_hl[i].src = swImageOn;
	
	totalHeight = 2 * layerTextHeight;
	if (mostPopularSave) {
		totalHeight += layerTextHeight;
		mpButtonSave = "<br><A HREF=\"#\" onClick=\"window.open('" + smLocation + ");di20('sm"+i+"', '" + smImage + "'); timeout(1,"+i+");return false;\" onMouseOver=\"di20('sm"+i+"', '" + smImageOn + "'); timeout(0,"+i+")\" onMouseOut=\"di20('sm"+i+"', '" + smImage + "'); timeout(1,"+i+")\"><img name=\"sm"+i+"\" src=\"" + smImage + "\" width=\"" + smTextWidth + "\" height=\"" + layerTextHeight + "\" border=\"0\"></a>";
	}
	if (whatSave) {
		totalHeight += layerTextHeight;
		whatButtonSave = "<br><A HREF=\"#\" onClick=\"javascript:window.open('" + swLocation + "); di20('sw"+i+"', '" + swImage + "'); timeout(1,"+i+"); return(false);\" onMouseOver=\"di20('sw"+i+"', '" + swImageOn + "');timeout(0,"+i+");\" onMouseOut=\"di20('sw"+i+"', '" + swImage + "'); timeout(1,"+i+")\"><img name=\"sw"+i+"\" src=\"" + swImage + "\" width=\"" + swTextWidth + "\" height=\"" + layerTextHeight + "\" border=\"0\"></a>";
	}		
	if (document.all) {
		buttonLayer[i] += "<span onMouseOver=\"if (layerLoaded) dropit_IE(saveLayer"+i+","+shiftLayer+","+textHeight+","+i+",'first'); event.cancelBubble=true; return false;\"><A HREF=\"#\" onClick=\"window.open('" + ssLocation + ");return(false);\" onMouseOver=\"timeout(0,"+i+"); return(false);\" onMouseOut=\"timeout(1,"+i+")\"><IMG src=\"" + sIconImage + "\" width=\"" + sIconWidth + "\" height=\"" + iconHeight + "\" align=\"top\" border=\"0\" NAME=\"first"+i+"\" ID=\"first"+i+"\"></a></span><span onMouseOver=\"if (layerLoaded) dropit_IE(saveLayer"+i+","+(shiftLayer-sIconWidth)+","+textHeight+","+i+",'second'); event.cancelBubble=true; return false;\"><A HREF=\"#\" onClick=\"window.open('" + ssLocation + ");return(false);\" onMouseOver=\"timeout(0,"+i+"); return(false);\" onMouseOut=\"timeout(1,"+i+")\"><IMG src=\"" + sTextImage + "\" width=\"" + sTextWidth + "\" height=\"" + textHeight + "\" border=\"0\" align=\"top\" NAME=\"second"+i+"\" ID=\"second"+i+"\"></a></span>&nbsp;&nbsp;";
		dropLayer[i] += "<SPAN id=\"saveLayer"+i+"\" style=\"position:absolute; left:0; top:0; width:" + srTextWidth + "; height:" + totalHeight + "; background-color:#" + layerColor + "; visibility:hidden; z-index:100;\"><p align=\"left\"><A HREF=\"#\" onClick=\"window.open('" + ssLocation + ");di20('ss"+i+"', '" + ssImage + "'); timeout(1,"+i+");return false;\" onMouseOver=\"di20('ss"+i+"', '" + ssImageOn + "'); timeout(0,"+i+")\" onMouseOut=\"di20('ss"+i+"', '" + ssImage + "'); timeout(1,"+i+")\"><img name=\"ss"+i+"\" src=\"" + ssImage + "\" width=\"" + ssTextWidth + "\" height=\"" + layerTextHeight + "\" border=\"0\"></a><br><A HREF=\"#\" onClick=\"javascript:window.open('" + srLocation + ");di20('sr"+i+"', '" + srImage + "'); timeout(1,"+i+");return false;\" onMouseOver=\"di20('sr"+i+"', '" + srImageOn + "');timeout(0,"+i+")\" onMouseOut=\"di20('sr"+i+"', '" + srImage + "');timeout(1,"+i+")\"><img name=\"sr"+i+"\" src=\"" + srImage + "\" width=\"" + srTextWidth + "\" height=\"" + layerTextHeight + "\" border=\"0\"></a>"+mpButtonSave+whatButtonSave+"</p></SPAN>";
	}
	if (document.layers) {
		buttonLayer[i] += "<A HREF=\"#\" onClick=\"javascript:window.open('"+ssLocation+");return(false);\" onMouseOver=\"if (layerLoaded){ dropit_NS(document.saveLayer"+i+","+shiftLayer+","+textHeight+","+i+",'first'); timeout(0,"+i+"); return(false);}\" onMouseOut=\"timeout(1,"+i+")\"><IMG src=\"" + sIconImage + "\" width=\"" + sIconWidth + "\" height=\"" + iconHeight + "\" align=\"top\" border=\"0\"  NAME=\"first"+i+"\" ID=\"first"+i+"\"><IMG src=\"" + sTextImage + "\" width=\"" + sTextWidth + "\" height=\"" + textHeight + "\" border=\"0\" align=\"top\"></a>&nbsp;&nbsp;";
		dropLayer[i] += "<layer left=\"0\" top=\"0\" width=\""+srTextWidth+"\" height=\""+totalHeight+"\" id=\"saveLayer"+i+"\" visibility=\"hidden\" bgcolor=\"#"+layerColor+"\"><A HREF=\"#\" onClick=\"window.open('" + ssLocation + ");di20('ss"+i+"', '" + ssImage + "'); timeout(1,"+i+");return false;\" onMouseOver=\"di20('ss"+i+"', '" + ssImageOn + "'); timeout(0,"+i+")\" onMouseOut=\"di20('ss"+i+"', '" + ssImage + "'); timeout(1,"+i+")\"><img name=\"ss"+i+"\" src=\"" + ssImage + "\" width=\"" + ssTextWidth + "\" height=\"" + layerTextHeight + "\" border=\"0\"></a><br><A HREF=\"#\" onClick=\"javascript:window.open('" + srLocation + ");di20('sr"+i+"', '" + srImage + "'); timeout(1,"+i+");return false;\" onMouseOver=\"di20('sr"+i+"', '" + srImageOn + "');timeout(0,"+i+")\" onMouseOut=\"di20('sr"+i+"', '" + srImage + "');timeout(1,"+i+")\"><img name=\"sr"+i+"\" src=\"" + srImage + "\" width=\"" + srTextWidth + "\" height=\"" + layerTextHeight + "\" border=\"0\"></a>"+mpButtonSave+whatButtonSave+"</layer>";
	}		

}

if (EMAILTHIS) {
	/* ET App URL */
	var eeLocation ="" + emailThisLocation + "create&fb=Y&partnerID=" + partnerID + "&url='+escape(getClickURL())+'&title='+escape(getClickTitle())+'&random='+Math.random(),'click','height=400,width=518,title=no,location=no,scrollbars=yes,menubars=no,toolbars=no,resizable=yes'";
	var emLocation ="" + emailThisLocation + "topTen&fb=Y&popularType=1&partnerID="+partnerID+"','click','status=0,toolbar=0,width=518,resizable=1,scrollbars=1,height=400'";
	var ewLocation ="" + emailThisLocation + "whatIsThis&fb=Y&partnerID="+partnerID+"','click','status=0,toolbar=0,width=518,resizable=1,scrollbars=1,height=400'";

	/* Layer Img Size and Location*/
	var eeTextWidth = 62;
	var emTextWidth = 64;
	var ewTextWidth = 68;

	eeImage = IMG + layerTextColor + "/email-article.gif";
	emImage = IMG + layerTextColor + "/most-popular.gif";
	ewImage = IMG + layerTextColor + "/whats-this.gif";

	eeImageOn = IMG + highlightColor + "/email-article.gif";
	emImageOn = IMG + highlightColor + "/most-popular.gif";
	ewImageOn = IMG + highlightColor + "/whats-this.gif";
	
	six_hl[i] = new Image();
	six_hl[i].src = eeImageOn;
	seven_hl[i] = new Image();
	seven_hl[i].src = emImageOn;
	eight_hl[i] = new Image();
	eight_hl[i].src = ewImageOn;

	totalHeight = layerTextHeight;
	if (mostPopularEmail) {
		totalHeight += layerTextHeight;
		mpButtonEmail = "<br><A HREF=\"#\" onClick=\"window.open('" + emLocation + ");di20('em"+i+"', '" + emImage + "'); timeout(2,"+i+");return false;\" onMouseOver=\"di20('em"+i+"', '" + emImageOn + "'); timeout(0,"+i+")\" onMouseOut=\"di20('em"+i+"', '" + emImage + "'); timeout(2,"+i+")\"><img name=\"em"+i+"\" src=\"" + emImage + "\" width=\"" + emTextWidth + "\" height=\"" + layerTextHeight + "\" border=\"0\"></a>";
	}
	if (whatEmail) {
		totalHeight += layerTextHeight;
		whatButtonEmail = "<br><A HREF=\"#\" onClick=\"javascript:window.open('" + ewLocation + ");di20('ew"+i+"', '" + ewImage + "'); timeout(2,"+i+");return false;\" onMouseOver=\"di20('ew"+i+"', '" + ewImageOn + "');timeout(0,"+i+")\" onMouseOut=\"di20('ew"+i+"', '" + ewImage + "');timeout(2,"+i+")\"><img name=\"ew"+i+"\" src=\"" + ewImage + "\" width=\"" + ewTextWidth + "\" height=\"" + layerTextHeight + "\" border=\"0\"></a>";
	}
	if (document.all) {
		buttonLayer[i] += "<span onMouseOver=\"if (layerLoaded) dropit_IE(emailLayer"+i+","+shiftLayer+","+textHeight+","+i+",'third'); event.cancelBubble=true; return false;\"><A HREF=\"#\" onClick=\"window.open('" + eeLocation + ");return(false);\" onMouseOver=\"timeout(0,"+i+"); return(false);\" onMouseOut=\"timeout(2,"+i+")\"><IMG src=\"" + eIconImage + "\" width=\"" + eIconWidth + "\" height=\"" + iconHeight + "\" align=\"top\" border=\"0\" NAME=\"third"+i+"\" ID=\"third"+i+"\"></a></span><span onMouseOver=\"if (layerLoaded) dropit_IE(emailLayer"+i+","+(shiftLayer-eIconWidth)+","+textHeight+","+i+",'fourth'); event.cancelBubble=true; return false;\"><A HREF=\"#\" onClick=\"window.open('" + eeLocation + ");return(false);\" onMouseOver=\"timeout(0,"+i+"); return(false);\" onMouseOut=\"timeout(2,"+i+")\"><IMG src=\"" + eTextImage + "\" width=\"" + eTextWidth + "\" height=\"" + textHeight + "\" border=\"0\" align=\"top\" NAME=\"fourth"+i+"\" ID=\"fourth"+i+"\"></a></span>&nbsp;&nbsp;";
		dropLayer[i] += "<SPAN id=\"emailLayer"+i+"\" style=\"position:absolute; left:0; top:0; width:" + ewTextWidth + "; height:" + totalHeight + "; background-color:#" + layerColor + "; visibility:hidden; z-index:100;\"><p align=\"left\"><A HREF=\"#\" onClick=\"window.open('" + eeLocation + ");di20('ee"+i+"', '" + eeImage + "'); timeout(2,"+i+");return false;\" onMouseOver=\"di20('ee"+i+"', '" + eeImageOn + "'); timeout(0,"+i+")\" onMouseOut=\"di20('ee"+i+"', '" + eeImage + "'); timeout(2,"+i+")\"><img name=\"ee"+i+"\" src=\"" + eeImage + "\" width=\"" + eeTextWidth + "\" height=\"" + layerTextHeight + "\" border=\"0\"></a>"+mpButtonEmail+whatButtonEmail+"</p></SPAN>"
	}

	if (document.layers) {
		buttonLayer[i] += "<A HREF=\"#\" onClick=\"javascript:window.open('"+eeLocation+");return(false);\" onMouseOver=\"if (layerLoaded){ dropit_NS(document.emailLayer"+i+","+shiftLayer+","+textHeight+","+i+",'third'); timeout(0,"+i+"); return(false);}\" onMouseOut=\"timeout(2,"+i+")\"><IMG src=\"" + eIconImage + "\" width=\"" + eIconWidth + "\" height=\"" + iconHeight + "\" align=\"top\" border=\"0\"  NAME=\"third"+i+"\" ID=\"third"+i+"\"><IMG src=\"" + eTextImage + "\" width=\"" + eTextWidth + "\" height=\"" + textHeight + "\" border=\"0\" align=\"top\"></a>&nbsp;&nbsp;";
		dropLayer[i] += "<layer left=\"0\" top=\"0\" width=\""+ewTextWidth+"\" height=\""+totalHeight+"\" id=\"emailLayer"+i+"\" visibility=\"hidden\" bgcolor=\"#"+layerColor+"\"><A HREF=\"#\" onClick=\"window.open('" + eeLocation + ");di20('ee"+i+"', '" + eeImage + "'); timeout(2,"+i+");return false;\" onMouseOver=\"di20('ee"+i+"', '" + eeImageOn + "'); timeout(0,"+i+")\" onMouseOut=\"di20('ee"+i+"', '" + eeImage + "'); timeout(2,"+i+")\"><img name=\"ee"+i+"\" src=\"" + eeImage + "\" width=\"" + eeTextWidth + "\" height=\"" + layerTextHeight + "\" border=\"0\"></a>"+mpButtonEmail+whatButtonEmail+"</layer>";
	}
}

if (PRINTTHIS) {
	/* PT App URL */
	var ppLocation ="" + printThisLocation + "printThis?clickMap=printThis&fb=Y&url='+escape(getClickURL())+'&partnerID="+partnerID+"','click_print','status=0,toolbar=0,width=530,resizable=1,scrollbars=1,height=580'";
	var pmLocation ="" + printThisLocation + "printThis?clickMap=topTen&fb=Y&popularType=2&partnerID="+partnerID+"','click','status=0,toolbar=0,width=510,resizable=1,scrollbars=1,height=450'";
	var pwLocation ="" + printThisLocation + "printThis?clickMap=whatIsThis&fb=Y&partnerID="+partnerID+"','click','status=0,toolbar=0,width=510,resizable=1,scrollbars=1,height=450'";
	
	var ppTextWidth = 59;
	var pmTextWidth = 64;
	var pwTextWidth = 68

	ppImage = IMG + layerTextColor + "/print-article.gif";
	pmImage = IMG + layerTextColor + "/most-popular.gif";
	pwImage = IMG + layerTextColor + "/whats-this.gif";

	ppImageOn = IMG + highlightColor + "/print-article.gif";
	pmImageOn = IMG + highlightColor + "/most-popular.gif";
	pwImageOn = IMG + highlightColor + "/whats-this.gif";
	
	nine_hl[i] = new Image();
	nine_hl[i].src = ppImageOn;
	ten_hl[i] = new Image();
	ten_hl[i].src = pmImageOn;
	eleven_hl[i] = new Image();
	eleven_hl[i].src = pwImageOn;

	totalHeight = layerTextHeight;
	if (mostPopularPrint) {
		totalHeight += layerTextHeight;
		mpButtonPrint = "<br><A HREF=\"#\" onClick=\"window.open('" + pmLocation + ");di20('pm"+i+"', '" + pmImage + "'); timeout(3,"+i+");return false;\" onMouseOver=\"di20('pm"+i+"', '" + pmImageOn + "'); timeout(0,"+i+")\" onMouseOut=\"di20('pm"+i+"', '" + pmImage + "'); timeout(3,"+i+")\"><img name=\"pm"+i+"\" src=\"" + pmImage + "\" width=\"" + pmTextWidth + "\" height=\"" + layerTextHeight + "\" border=\"0\"></a>";
	}
	if (whatPrint) {
		totalHeight += layerTextHeight;
		whatButtonPrint = "<br><A HREF=\"#\" onClick=\"javascript:window.open('" + pwLocation + ");di20('pw"+i+"', '" + pwImage + "'); timeout(3,"+i+");return false;\" onMouseOver=\"di20('pw"+i+"', '" + pwImageOn + "');timeout(0,"+i+")\" onMouseOut=\"di20('pw"+i+"', '" + pwImage + "');timeout(3,"+i+")\"><img name=\"pw"+i+"\" src=\"" + pwImage + "\" width=\"" + pwTextWidth + "\" height=\"" + layerTextHeight + "\" border=\"0\"></a>";
	}
	if (document.all) {
		buttonLayer[i] += "<span onMouseOver=\"if (layerLoaded) dropit_IE(printLayer"+i+","+shiftLayer+","+textHeight+","+i+",'fifth'); event.cancelBubble=true; return false;\"><A HREF=\"#\" onClick=\"window.open('" + ppLocation + ");return(false);\" onMouseOver=\"timeout(0,"+i+"); return(false);\" onMouseOut=\"timeout(3,"+i+")\"><IMG src=\"" + pIconImage + "\" width=\"" + pIconWidth + "\" height=\"" + iconHeight + "\" align=\"top\" border=\"0\" NAME=\"fifth"+i+"\" ID=\"fifth"+i+"\"></a></span><span onMouseOver=\"if (layerLoaded) dropit_IE(printLayer"+i+","+(shiftLayer-pIconWidth)+","+textHeight+","+i+",'sixth'); event.cancelBubble=true; return false;\"><A HREF=\"#\" onClick=\"window.open('" + ppLocation + ");return(false);\" onMouseOver=\"timeout(0,"+i+"); return(false);\" onMouseOut=\"timeout(3,"+i+")\"><IMG src=\"" + pTextImage + "\" width=\"" + pTextWidth + "\" height=\"" + textHeight + "\" border=\"0\" align=\"top\" NAME=\"sixth"+i+"\" ID=\"sixth"+i+"\"></a></span>";
		dropLayer[i] += "<SPAN id=\"printLayer"+i+"\" style=\"position:absolute; left:0; top:0; width:" + pwTextWidth + "; height:" + totalHeight + "; background-color:#" + layerColor + "; visibility:hidden; z-index:100;\"><p align=\"left\"><A HREF=\"#\" onClick=\"window.open('" + ppLocation + ");di20('pp"+i+"', '" + ppImage + "'); timeout(3,"+i+");return false;\" onMouseOver=\"di20('pp"+i+"', '" + ppImageOn + "'); timeout(0,"+i+")\" onMouseOut=\"di20('pp"+i+"', '" + ppImage + "'); timeout(3,"+i+")\"><img name=\"pp"+i+"\" src=\"" + ppImage + "\" width=\"" + ppTextWidth + "\" height=\"" + layerTextHeight + "\" border=\"0\"></a>"+mpButtonPrint+whatButtonPrint+"</p></SPAN>"
	}
	
	if (document.layers) {
		buttonLayer[i] += "<A HREF=\"#\" onClick=\"javascript:window.open('"+ppLocation+");return(false);\" onMouseOver=\"if (layerLoaded){ dropit_NS(document.printLayer"+i+","+shiftLayer+","+textHeight+","+i+",'fifth'); timeout(0,"+i+"); return(false);}\" onMouseOut=\"timeout(3,"+i+")\"><IMG src=\"" + pIconImage + "\" width=\"" + pIconWidth + "\" height=\"" + iconHeight + "\" align=\"top\" border=\"0\"  NAME=\"fifth"+i+"\" ID=\"fifth"+i+"\"><IMG src=\"" + pTextImage + "\" width=\"" + pTextWidth + "\" height=\"" + textHeight + "\" border=\"0\" align=\"top\"></a>";
		dropLayer[i] += "<layer left=\"0\" top=\"0\" width=\""+ppTextWidth+"\" height=\""+totalHeight+"\" id=\"printLayer"+i+"\" visibility=\"hidden\" bgcolor=\"#"+layerColor+"\"><A HREF=\"#\" onClick=\"window.open('" + ppLocation + ");di20('pp"+i+"', '" + ppImage + "'); timeout(3,"+i+");return false;\" onMouseOver=\"di20('pp"+i+"', '" + ppImageOn + "'); timeout(0,"+i+")\" onMouseOut=\"di20('pp"+i+"', '" + ppImage + "'); timeout(3,"+i+")\"><img name=\"pp"+i+"\" src=\"" + ppImage + "\" width=\"" + ppTextWidth + "\" height=\"" + layerTextHeight + "\" border=\"0\"></a>"+mpButtonPrint+whatButtonPrint+"</layer>";
	}
}

if (sponsorship) {
	if (sponsorIntro == "brought-to-you.gif") {
		sponsorWidth = 76;
		sponsorHeight = 16;
	}
	if (sponsorIntro == "sponsored-by.gif") {
		sponsorWidth = 59;
		sponsorHeight = 18;
	}
	sponsorImage = IMG + sponsorColor + "/" + sponsorIntro;
	if (sponsorLoc == "top") {
		buttonLayer[i] += "</td></tr></table>";	
	}
	else {
		buttonLayer[i] += "</td><td valign=\"top\">&nbsp;&nbsp;&nbsp;<img src=\""+sponsorImage+"\" width=\"" + sponsorWidth + "\" height=\"" + sponsorHeight + "\" border=0 align=\"top\"><br>&nbsp;&nbsp;&nbsp;"+sponsorTag+"</td></tr></table>";	
	}
	
}


document.write(buttonLayer[i]);

