// JavaScript Document - Standalone Player Display/Close Functions

// function call from Flash to remove Callout
function clearCallout() {
	document.getElementById('magnifiedView').style.display = "none";
};

function writeMagnifiedView(xmlDocValue, eventNameValue, picNumValue) {
	if(screen.width < 1024 || screen.height < 768) {
		//alert("width: " + screen.width + ", height: " + screen.height);
	} else {
		//alert("xmlDocValue=" + xmlDocValue + ", eventNameValue=" + eventNameValue + ", picNumValue=" + picNumValue);
		document.getElementById('magnifiedView').style.display = "block";

		var flashvars = {};
			flashvars.xmlDoc = xmlDocValue;
			flashvars.eventName = eventNameValue;
			flashvars.picNum = picNumValue;
						
		var thisURL = location.href;
			flashvars.thisURL = thisURL;	
			
		var params = {};
			params.menu = "false";
			params.wmode = "transparent";
			
			swfobject.embedSWF("assets/swf/martins_overlay.swf", "magnifiedView", "100%", "100%", "9.0.0","expressInstall.swf", flashvars, params);    
			
	};
};

		/* Apply li:hover State to IE6 for Primary and Utility Nav
		----------------------------------------------------------*/
		sfNavHover = function() {
			var sfEls = document.getElementById("nav").getElementsByTagName("LI");
			for (var i=0; i<sfEls.length; i++) {
				sfEls[i].onmouseover=function() {
					this.className+=" sfhover";
				}
				sfEls[i].onmouseout=function() {
					this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
				}
			}
		}
		if (window.attachEvent) window.attachEvent("onload", sfNavHover);
		
		function MM_openBrWindow(theURL, winName, features) { //v2.0
			window.open(theURL, winName, features);
		};
// functions for Off Premise popups
function marylandWin(){
	window.open("maryland.html","state","toolbars=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizeable=no,width=400,height=450");
};

function virginiaWin1(){
	window.open("virginia.html","state1","toolbars=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizeable=no,width=400,height=450");
};

function washingtonWin2(){
	window.open("washington.html","state2","toolbars=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizeable=no,width=400,height=450");
};

