// JavaScript Document

function startList(obj){
	if (document.all&&document.getElementById) {
		for (this.x=0; this.x<obj.childNodes.length; this.x++) {
			node = obj.childNodes[this.x];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
				
				for (this.y=0; this.y<node.childNodes.length; this.y++){
					if (node.childNodes[this.y].nodeName=="UL") {
						new startList(node.childNodes[this.y]);
					}
				}
			}
		}
	}
}


function copyrightDate(){
	var d = new Date();
	var curr_year = d.getFullYear();
	var dateString = "&copy;" + " " + curr_year + " ";
	//return dateString
	document.write(dateString);
}



NumberOfImagesToRotate = 14;

FirstPart = '<img src="images/content_photo';
LastPart = '.jpg" class="imgAlignRight">';

function printImage() {
var r = Math.ceil(Math.random() * NumberOfImagesToRotate);
document.write(FirstPart + r + LastPart);
}


//derived from http://newsourcemedia.com/art.117.flash_activex_workaround_.php
function embedFlash(swfName, swfHeight, swfWidth, swfAlign){
	var swfPath;
	swfPath = "swf/" + 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>');
}