$(document).ready(function() { 
	$('.pic_catalog a').lightBox();		
	$("#main img").each(function (i) {        	
			var src = $(this).attr("src");        	
			var ext = "jpg";         
			if  (src.indexOf(ext) == -1) {
				$(this).attr("src",src);}	
			else{
				var src_new = '/watermark.php?src='+src;
				$(this).attr("src",src_new);
			}
		})
	});

jsHover = function() {
	var hEls = document.getElementById("topmenu").getElementsByTagName("li");
	for (var i=0, len=hEls.length; i<len; i++) 
	{
		if(hEls[i].className!="sep"){
			hEls[i].onmouseover=function() { this.className="jshover"; }
			hEls[i].onmouseout=function() { this.className=""; }
		}
	}
}
jsHover2 = function() 
{
	var hEls = document.getElementById("leftmenu").getElementsByTagName("li");
	for (var i=0, len=hEls.length; i<len; i++) 
	{
		if(hEls[i].className!="sep"){
			hEls[i].onmouseover=function() { this.className="jshover"; }
			hEls[i].onmouseout=function() { this.className=""; }
		}
	}
}
