// JavaScript Document
function startList(thisDiv) {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById(thisDiv);
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}

///don't forget <body onload="startList('navRowOne'); startList('navRowTwo');">


function copyrightDate(){
	var d = new Date();
	var curr_year = d.getFullYear();
	var dateString = "&copy;" + " " + curr_year + " ";
	//return dateString
	document.write(dateString);
}

//derived from http://newsourcemedia.com/art.117.flash_activex_workaround_.php
function embedFlash(swfName, swfHeight, swfWidth, swfAlign){
	var swfPath;
	swfPath = "https://www.netreturns.biz/client_files/stanlyregional/" + swfName + ".swf";
	
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="' + swfWidth + ' " height="' + swfHeight + '" id="' + swfName + '" align="' + swfAlign + '">');
	document.write('<param name="allowScriptAccess" value="sameDomain" /><param name="wmode" value="window" />');
	document.write('<param name="movie" value="' + swfPath + '" /><param name="quality" value="high" />');
	document.write('<embed src="' + swfPath + '" allowScriptAccess="sameDomain" wmode="window" quality="high" align="' + swfAlign + '" width="' + swfWidth + '" height="' + swfHeight + '" wmode="window" name="' + swfName + '" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}
