// JavaScript Document
$(document).ready(function() {

	// top navigation //
	$("#siteNav #nav-about").hover(function() {
			if ($(this)[0].className != "active") {
				$(this)[0].src="images/nav-about-over.gif";
			}
		}, function() {
			if ($(this)[0].className != "active") {
				$(this)[0].src="images/nav-about.gif";
			}
		});
	
	$("#siteNav #nav-services").hover(function() {
			if ($(this)[0].className != "active") {
				$(this)[0].src="images/nav-services-over.gif";
			}
		}, function() {
			if ($(this)[0].className != "active") {
				$(this)[0].src="images/nav-services.gif";
			}
		});
	
	$("#siteNav #nav-portfolio").hover(function() {
			if ($(this)[0].className != "active") {
				$(this)[0].src="images/nav-portfolio-over.gif";
			}
		}, function() {
			if ($(this)[0].className != "active") {
				$(this)[0].src="images/nav-portfolio.gif";
			}
		});
	
	$("#siteNav #nav-contact").hover(function() {
			if ($(this)[0].className != "active") {
				$(this)[0].src="images/nav-contact-over.gif";
			}
		}, function() {
			if ($(this)[0].className != "active") {
				$(this)[0].src="images/nav-contact.gif";
			}
		});
	//End top navigation //
	
	//Home Navigation//
	$("#nav-home #nav-about").hover(function() {
			if ($(this)[0].className != "active") {
				$(this)[0].src="images/nav-home-serv-over.gif";
			}
		}, function() {
			if ($(this)[0].className != "active") {
				$(this)[0].src="images/nav-home-serv.gif";
			}
		});
	
	$("#nav-home #nav-services").hover(function() {
			if ($(this)[0].className != "active") {
				$(this)[0].src="images/nav-home-serv-over.gif";
			}
		}, function() {
			if ($(this)[0].className != "active") {
				$(this)[0].src="images/nav-home-serv.gif";
			}
		});
	
	$("#nav-home #nav-portfolio").hover(function() {
			if ($(this)[0].className != "active") {
				$(this)[0].src="images/nav-home-serv-over.gif";
			}
		}, function() {
			if ($(this)[0].className != "active") {
				$(this)[0].src="images/nav-home-serv.gif";
			}
		});
	
	$("#nav-home #nav-contact").hover(function() {
			if ($(this)[0].className != "active") {
				$(this)[0].src="images/nav-home-serv-over.gif";
			}
		}, function() {
			if ($(this)[0].className != "active") {
				$(this)[0].src="images/nav-home-serv.gif";
			}
		});
	//End Home Navigation//
	
	var sidebarItems = $("#sidebar li").hover(function() {
			if ($(this)[0].className != "active") {
				$(this).addClass("hover");
			}
		}, function() {
			if ($(this)[0].className != "active") {
				$(this).removeClass("hover");
			}
	});
	
	//png hack for ie6
	 $('img[@src$=.png], #panel').pngfix();

});