$().ready(function(){	

	var host = document.location.protocol + "//" + document.location.hostname;

	$("#ok").children("tbody").children("tr").hover(function () {
	$(this).addClass("ruled");
	}, function () {
	$(this).removeClass("ruled");
	});
	
	//$("a:not([@href*=" + document.location.hostname + "])").filter("[@class=txt]")//.not("[href^=#]")
	//.append("<img src=" + host + "/img/design/external_links.gif class=external>");

	$("a:not([href*=" + document.location.hostname + "])").not("[href^=/]").not("[href^=mailto]").filter("[class=txt]")
	.append("<img src=" + host + "/img/design/external_links.gif width=8 height=8 class=external>")
	.hover(function () {
	$(this).children("img").attr("src", host + "/img/design/external_links_grey.gif");
	}, function () {
	$(this).children("img").attr("src", host + "/img/design/external_links.gif");
	});
	
	$("#letter,#sitemap,#favorite,#home,#print,#photo").hover(function () {
	$(this).children("img").attr("src", host + "/img/design/" + $(this).attr("id") + "_grey.gif");
	}, function () {
	$(this).children("img").attr("src", host + "/img/design/" + $(this).attr("id") + ".gif");
	});

	$("a.small").filter("#zoom").hover(function () {
	$(this).children("img").attr("src", host + "/img/design/" + $(this).attr("id") + "_grey.gif");
	}, function () {
	$(this).children("img").attr("src", host + "/img/design/" + $(this).attr("id") + ".gif");
	});

	$("#links").hover(function () {
	$(this).prev("img").attr("src", host + "/img/design/links_grey.gif");
	}, function () {
	$(this).prev("img").attr("src", host + "/img/design/links.gif");
	});

	$("#print-left").hover(function () {
	$(this).children("img").attr("src", host + "/img/design/arrow_back_grey.gif");
	}, function () {
	$(this).children("img").attr("src", host + "/img/design/arrow_back.gif");
	});

	$("#vacancies,#news").hover(function () {
	$(this).prev("img").attr("src", host + "/img/design/arrow_menu_active.gif");
	}, function () {
	$(this).prev("img").attr("src", host + "/img/design/arrow_menu_current.gif");
	});
	
	$("#print-right").hover(function () {
	$(this).children("img").attr("src", host + "/img/design/arrow_menu_active.gif");
	}, function () {
	$(this).children("img").attr("src", host + "/img/design/arrow_menu_current.gif");
	});
	
	$("#back,#up").hover(function () {
	$(this).children("img").attr("src", host + "/img/design/arrow_" + $(this).attr("id") + "_grey.gif");
	}, function () {
	$(this).children("img").attr("src", host + "/img/design/arrow_" + $(this).attr("id") + ".gif");
	});

	$("td.menu-border").children("a").hover(function () {
	var foo = $(this).attr("id");
	$("img." + foo).attr("src", host + "/img/design/arrow_menu_active.gif");
	}, function () {
	var foo = $(this).attr("id");
	$("img." + foo).attr("src", host + "/img/design/arrow_menu_current.gif");
	});

	$("#site-search").focus(function () {
	$(this).css("borderColor","#2c4b91"), $("button.search-button").css("borderColor","#2c4b91");}).blur(function () {
	$(this).css("borderColor",""), $("button.search-button").css("borderColor","");});

	$("#site-search2").focus(function () {
	$(this).css("borderColor","#2c4b91"), $("button.search-button2").css("borderColor","#2c4b91");}).blur(function () {
	$(this).css("borderColor",""), $("button.search-button2").css("borderColor","");});
});