// JavaScript Document

function smartRollover() {
	if (document.getElementsByTagName) {
		var images = document.getElementsByTagName("img");
		for (var i=0; i < images.length; i++) {
			if (images[i].getAttribute("src").match("out"))
			{
				images[i].onmouseover = function() {
					this.setAttribute("src", this.getAttribute("src").replace("content_out", "content_over"));
					
				};
				images[i].onmouseout = function() {
					this.setAttribute("src", this.getAttribute("src").replace("content_over", "content_out"));
				
				};
			}
		}
	}
	

}

function init_dropdown() {
	if (!$('ul.dropdown').length) {
		return;
	}
	$('ul.dropdown li.dropdown_trigger').hover(function() {
		$(this).find('ul').fadeIn(1);													 
	},
	function() {
		$(this).find('ul').hide();
	});
}

if(window.addEventListener) {
	window.addEventListener("load", smartRollover, false);
}
else if(window.attachEvent) {
	window.attachEvent("onload", smartRollover);
}



