// JavaScript Document

// writes on the fly a document with photo and caption
function showPhoto(whichPhoto){
	myWindow = window.open(whichPhoto,"quote","width=775,height=600,toolbar=no,menubar=no,status=no,scrollbars=no,location=no,resize=0,left=10,top=10");
	myContent="<html><head><title>Direct Mail Center</title></head>"
	myContent += "<body style='margin:0; padding:0; background-color:#234c82'><img style='margin:0; padding; 0;'src=" + whichPhoto + " /></p></body></html>"

	myWindow.document.write(myContent);
	myWindow.focus();
}

/* Function to reveal submenu in IE from http://www.nickrigby.com */
function IEHoverPseudo() {
	var navItems = document.getElementById("DMCmenu").getElementsByTagName("li");
	
	for (var i=0; i<navItems.length; i++) {
		if(navItems[i].className == "dropdown") {
			navItems[i].onmouseover=function() { this.className += " over"; }
			navItems[i].onmouseout=function() { this.className = "dropdown"; }
		}
	}
}
window.onload = IEHoverPseudo;

/* open popup window */
function popTool(whichTool) {
	popWin=window.open(whichTool,"quotes","width=755,height=490,toolbar=no,scrollbars=yes,menubar=no,resize=no,status=no,left=10,top=10");
	popWin.focus();
	}


