$(document).ready(function() {
		var backgroundImage = $("#imagestrip").attr("style");
        $("#headerPanel #strip").attr("style", backgroundImage);
		var headerImage = $("#headlinestrip").attr("style");
        $("#headerPanel #headline").attr("style", headerImage);

        var selectedElement = $("#headerPanel #navigationLinks li a.selectedTab");
	    $(selectedElement).parent().next().find("a").addClass("selectedTabNext");

		$("#headerPanel #navigationLinks li:first").attr("id", "home");
		
	  
		$("#headerPanel #navigationLinks li").mouseover(
			function() {
			  if($(this).next().find("a").hasClass("selectedTab")) {
				   $(this).next().find("a").addClass("selectedOne");
			  }else if( !$(this).find("a").hasClass("selectedTab")) {
				   $(this).next().find("a").addClass("selectedTabNext");
					    
			  }
			}
		);
		$("#headerPanel #navigationLinks li").mouseout(
			function() {
			  if($(this).next().find("a").hasClass("selectedOne")) {
			   $(this).next().find("a").removeClass("selectedOne");
			  }else if( !$(this).find("a").hasClass("selectedTab")) {
			   $(this).next().find("a").removeClass("selectedTabNext");
			  }
			}
		);
    });
