
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
var pageTracker = _gat._getTracker("UA-3643990-1");
pageTracker._trackPageview();

	
	$(document).ready(function() {
				
		var lastArr = new Array();
		var loc = window.location.toString();
		lastArr = loc.split('/');
		var len = lastArr.length;
		var last = lastArr[len-1];
		var classMap = {
			"index.php" : "images/header/menu_home_hover.gif",
			"hww.php" : "images/header/menu_hww_hover.gif",
			"wwd.php" : "images/header/menu_wwd_hover.gif",
			"wwa.php" : "images/header/menu_waw_hover.gif",
			"clients.php" : "images/header/menu_clients_hover.gif",
			"news.php" : "images/header/menu_news_hover.gif",
			"article.php" : "images/header/menu_news_hover.gif",
			"contact.php" : "images/header/menu_contactus_hover.gif"
		};
		var highlightImg = "";
		for (here in classMap) {
		 	if (last == here) {
		 		highlightImg = classMap[here];
				$("div[@id^='rollover_'] img").each(function() {
					var imgsrc = $(this).attr("src");
					var isHere = imgsrc.replace(/inactive/i,"hover");
					if (isHere != highlightImg) {
						$(this).mouseover(function() {
							var imgsrc = $(this).attr("src");
							var matches = imgsrc.match(/hover/);
							if (!matches) {
								var imgsrcON = imgsrc.replace(/inactive/i,"hover");
								$(this).attr("src",imgsrcON);
							}
						});
					
						$(this).mouseout(function() {
							var rolloutsrc = $(this).attr("src");
							var matches = rolloutsrc.match(/active/);
							if (!matches) {
								var imgsrcOFF = rolloutsrc.replace(/hover/i,"inactive");
								$(this).attr("src",imgsrcOFF);
							}
						});		
					} else {
						$(this).attr("src",highlightImg);
						$(this).mouseover(function(){});
						$(this).mouseout(function(){});
					}
				});
			}
		}
	});
