// IE6 bottom navigation a:hover emulation
	
function domLoaded() {
	// unbind the initial listener
	document.stopObserving('dom:loaded');
		
	// Detect browser version
	Prototype.Browser.IE6 =
		Prototype.Browser.IE &&
		parseInt(navigator.userAgent.substring(navigator.userAgent.indexOf("MSIE")+5)) == 6;
		
	if (Prototype.Browser.IE6) {
		$$('.bottom-left-bottom-nav').each(function (element) {
			element.observe(
				'mouseover',
				iHateIEOver.bindAsEventListener(element)
			);
			
			element.observe(
				'mouseout',
				iHateIEOut.bindAsEventListener(element)
			);
		});
	}
}

function iHateIEOver (e) {
	element = Event.element(e);
	
	element.up().style.backgroundColor = '#043f88';
	
	element.up().childElements().each(function (child) {
		if (child.className == 'bottom-left-bottom-nav')
			child.style.backgroundColor = '#043f88';
		else if (child.className == 'bottom-left-bottom-nav-fauxborder')
			child.style.backgroundColor = '#0a2c63';
	});
}

function iHateIEOut (e) {
	element = Event.element(e);
	
	element.up().style.backgroundColor = 'transparent';
	
	element.up().childElements().each(function (child) {
		child.style.backgroundColor = 'transparent';
	});
}

// End IE6 bottom navigation a:hover emulation

function photoPopup(url) {
	window.open(url,'photosPopUp','width=600,height=416,resizable=no,scrollbars=no,status=no');
}
