navHover = function() {
	
	var lis = document.getElementById("globalNav").getElementsByTagName("LI");
	
	for (var i=0; i<lis.length; i++) {
		lis[i].onmouseover=function() {
			this.className+=" iehover";
		}
		lis[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" iehover\\b"), "");
		}
	}
}

function makeFlashObj(sID, sPath, sWidth, sHeight, sBG, sParam)
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="' + sID + '" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + sWidth + '" height="' + sHeight + '">');
	document.write('<param name="movie" value="' + sPath + sParam + '">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="bgcolor" value="' + sBG + '">');
	document.write('<embed bgcolor="' + sBG + '" src="' + sPath + sParam + '" quality="high" id="' + sID + '" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + sWidth + '" height="' + sHeight + '"></embed>');
	document.write('</object>');
}

function doUrl(sUrl)
{
	document.location = sUrl;	
}

if (window.attachEvent) window.attachEvent("onload", navHover);

$(document).ready(function() 
{

	if ($(".innercontent a.galleryPhoto").size() > 0)
	{
		$(".innercontent a.galleryPhoto").each(function()
		{
			setAjaxRequest($(this),800,550);				
		});
	}
});

function setAjaxRequest(id,width,height)
{
	$(id).each(function()
	{
		$(this).attr('href',$(this).attr('href'));

		$(this).fancybox({
			'width': width,
			'height': height,
			'autoScale': false,
			'transitionIn': 'none',
			'transitionOut': 'none',
			'zoomSpeedIn': 0, 
			'zoomSpeedOut':	0,
			'zoomOpacity': true,
			'overlayShow': true,
			'hideOnContentClick': false,
			'type': 'iframe',
			'showCloseButton': true
		});

	});
	
}
