var ie/*@cc_on=1@*/;

jshover = function(who) {
	var arr = document.getElementById(who).getElementsByTagName("a");
	for (var i=0, len=arr.length; i<len; i++) {
		arr[i].onmouseover=function() {
			if (this.parentNode.className!="active") {
				var txt=this.getElementsByTagName('IMG')[0].src;
				this.getElementsByTagName('img')[0].src=txt.replace(".gif", "-active.gif");
			}
		}
		arr[i].onmouseout=function() {
			if (this.parentNode.className!="active") {
				var txt=this.getElementsByTagName('IMG')[0].src;
				this.getElementsByTagName('img')[0].src=txt.replace("-active.gif", ".gif");
			}
		}
	}
}

function getFirst(who) {
	var arr = document.getElementById("counter").getElementsByTagName("li");
	arr[0].className = "first-child";

	var table = document.getElementById(who).getElementsByTagName("th");
	table[0].className = "first-child";
}

init = function() {
jshover("ico");
jshover("menu");
jshover("list");
if(ie) getFirst("price");
}
