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.0
  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 && document.getElementById) x=document.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
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}




function MsgHeader(){

	if (tfnpagename.indexOf(tfn_doc_links[7]) != -1){
	document.write('<img src="http://www.stanleyworks.com/images/ir/txt_hd_ealerts.gif" width="272" height="49" alt="" />');
	document.write('<style>.ir_borderedTable{ border:1px solid #FFFFFF; font-family:arial, helvetica, sans-serif; }</style>');
	}
	else if (tfnpagename.indexOf(tfn_doc_links[16]) != -1){
	document.write('<img src="http://www.stanleyworks.com/images/ir/txt_hd_ealerts.gif" width="272" height="49" alt="" />');
	}
	else if (tfnpagename.indexOf(tfn_doc_links[4]) != -1){
	document.write('<img src="http://www.stanleyworks.com/images/ir/txt_earnings.gif" width="272" height="49">');
	}
	else if (tfnpagename.indexOf(tfn_doc_links[6]) != -1){
	document.write('<img src="http://www.stanleyworks.com/images/ir/txt_calendar.gif" width="272" height="49">');
	}
	else if (tfnpagename.indexOf(tfn_doc_links[2]) != -1){
	document.write('<img src="http://www.stanleyworks.com/images/ir/txt_hd_financialnews.gif" width="272" height="49">');	
	}
	else if (tfnpagename.indexOf(tfn_doc_links[15]) != -1){
	document.write('<img src="http://www.stanleyworks.com/images/ir/txt_hd_financialnews.gif" width="272" height="49">');	
	}
	else if (tfnpagename.indexOf(tfn_doc_links[3]) != -1){
	document.write('<img src="http://www.stanleyworks.com/images/ir/txt_hd_full.gif" width="272" height="49">');	
	}
	else if (tfnpagename.indexOf(tfn_doc_links[9]) != -1){
	document.write('<img src="http://www.stanleyworks.com/images/ir/txt_hd_full.gif" width="272" height="49">');	
	}
	else if (tfnpagename.indexOf(tfn_doc_links[10]) != -1){
	document.write('<img src="http://www.stanleyworks.com/images/ir/txt_hd_full.gif" width="272" height="49">');	
	}
	else if (tfnpagename.indexOf(tfn_doc_links[11]) != -1){
	document.write('<img src="http://www.stanleyworks.com/images/ir/txt_hd_full.gif" width="272" height="49">');	
	}
	else if (tfnpagename.indexOf(tfn_doc_links[12]) != -1){
	document.write('<img src="http://www.stanleyworks.com/images/ir/txt_hd_full.gif" width="272" height="49">');	
	}
	else if (tfnpagename.indexOf(tfn_doc_links[13]) != -1){
	document.write('<img src="http://www.stanleyworks.com/images/ir/txt_hd_full.gif" width="272" height="49">');	
	}
	else if (tfnpagename.indexOf(tfn_doc_links[14]) != -1){
	document.write('<img src="http://www.stanleyworks.com/images/ir/txt_hd_full.gif" width="272" height="49">');	
	}
	else if (tfnpagename.indexOf(tfn_doc_links[0]) != -1){
	document.write('<img src="http://www.stanleyworks.com/images/ir/txt_hd_sum.gif" width="272" height="49">');	
	}
	else if (tfnpagename.indexOf(tfn_doc_links[8]) != -1){
	document.write('<img src="http://www.stanleyworks.com/images/ir/txt_gloss.gif" width="272" height="49">');	
	}
	else if (tfnpagename.indexOf(tfn_doc_links[5]) != -1){
	document.write('<img src="http://www.stanleyworks.com/images/ir/txt_sec.gif" width="272" height="49">');	
	}
	else if (tfnpagename.indexOf(tfn_doc_links[1]) != -1) {
	document.write('<img src="http://www.stanleyworks.com/images/ir/txt_hd_quote.gif" width="272" height="49">');	
	}
	
	else {
	document.write('');	
	}
	
}



function StockSubMenu(){
	
		
		document.write('<table width="172" border="0" cellspacing="0" cellpadding="0">');
		document.write('<tr>');
		document.write('<td bgcolor="#FFFFFF"><div align="left"><img src="http://www.stanleyworks.com/images/spacer.gif" width="1" height="1" alt="" /></div></td>');
		document.write('</tr>');
		document.write('<tr>');
		document.write('<td class="subnav" bgcolor="#ffffff"><div align="left"><a href="http://www.stanleyworks.com/ir_stockarchive.asp" onMouseOut="MM_swapImgRestore()" onMouseOver=MM_swapImage("archive","","http://www.stanleyworks.com/images/rollovers/ir_starchive_on.gif",1)><img src="http://www.stanleyworks.com/images/rollovers/ir_starchive_off.gif" id="archive" name="archive" width="194" height="17" alt="" border="0" /></a></div></td>');
		document.write('</tr>');
		document.write('<tr>');
		document.write('<td bgcolor="#FFFFFF"><div align="left"><img src="http://www.stanleyworks.com/images/spacer.gif" width="1" height="1" alt="" /></div></td>');
		document.write('</tr>');
		document.write('<tr>');
		document.write('<td class="subnav" bgcolor="#ffffff"><div align="left"><a href="http://www.stanleyworks.com/ir_divhistory.asp" onMouseOut="MM_swapImgRestore()" onMouseOver=MM_swapImage("dividend","","http://www.stanleyworks.com/images/rollovers/ir_dividend_on.gif",1)><img src="http://www.stanleyworks.com/images/rollovers/ir_dividend_off.gif" id="dividend" name="dividend" width="194" height="17" alt="" border="0" /></a></div></td>');
		document.write('</tr>');
		document.write('<tr>');
		document.write('<td bgcolor="#FFFFFF"><div align="left"><img src="http://www.stanleyworks.com/images/spacer.gif" width="1" height="1" alt="" /></div></td>');
		document.write('</tr>');
		document.write('<tr>');
		document.write('<td class="subnav" bgcolor="#ffffff"><div align="left"><a href="http://www.stanleyworks.com/ir_stock_stocksplits.asp" onMouseOut="MM_swapImgRestore()" onMouseOver=MM_swapImage("split","","http://www.stanleyworks.com/images/rollovers/ir_stocksplit_on.gif",1)><img src="http://www.stanleyworks.com/images/rollovers/ir_stocksplit_off.gif" id="split" name="split" width="194" height="17" alt="" border="0" /></a></div></td>');
		document.write('</tr>');
		document.write('</table>');
}

