//==========================| FIX PNG |==========================//
function fixPNG(element) {
			  
			  if (/MSIE (5\.5|6).+Win/.test(navigator.userAgent))
			  {
				var src;
				
				if (element.tagName=='IMG') 
				{
				  if (/\.png$/.test(element.src)) 
				  {
					src = element.src;
					element.src = "images/blank.gif"; 
				  }
				}
				else 
				{
				 
				  src = element.currentStyle.backgroundImage.match(/url\("(.+\.png)"\)/i);
				  if (src)
				  {
					src = src[1]; 
					element.runtimeStyle.backgroundImage="none"; 
				  }
				}
				if (src) element.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "',sizingMethod='scale')";
			  }
			}
//==========================| END FIX PNG |==========================//

		jsHover = function() {
				var hEls = document.getElementById("cont_menu_all").getElementsByTagName("li");
				for (var i=0, len=hEls.length; i<len; i++) {
					hEls[i].onmouseover=function() { this.className+=" jshover"; }
					hEls[i].onmouseout=function() { this.className=this.className.replace(" jshover", ""); }
				}
			}
			if (window.attachEvent && navigator.userAgent.indexOf("Opera")==-1) window.attachEvent("onload", jsHover);

//==========================| TOP MENU |==========================//

$(function(){
	$('#top_menu ul li')
		.css( {backgroundPosition: "-50px -65px"} )
		.mouseover(function(){
			$(this).stop().animate({backgroundPosition:"(-50px 0px)"}, {duration:600})
		})
		.mouseout(function(){
			$(this).stop().animate({backgroundPosition:"(5px -65px)"}, {duration:500, complete:function(){
				$(this).css({backgroundPosition: "-50px -65px"})
			}})
		})
});

$(function(){
	$('#top_menu ul li a')
		.css( {backgroundPosition: "9px 13px"} )
		.mouseover(function(){
			$(this).stop().animate({backgroundPosition:"(-10px 13px)"}, {duration:300})
			.animate({backgroundPosition:"(9px 13px)"},{duration:600})
		})
		.mouseout(function(){
			$(this).stop().animate({backgroundPosition:"(-10px 13px)"}, {duration:500, complete:function(){
				$(this).css({backgroundPosition: "9px 13px"})
			}})
		})
});
//==========================| END TOP MENU |==========================//	
jsHover = function() {
		var hEls = document.getElementById("content").getElementsByTagName("input");
		for (var i=0, len=hEls.length; i<len; i++) {
			hEls[i].onmouseover=function() { this.className+=" jshover"; }
			hEls[i].onmouseout=function() { this.className=this.className.replace("jshover", ""); }
		}
	}
	if (window.attachEvent && navigator.userAgent.indexOf("Opera")==-1) window.attachEvent("onload", jsHover);
	else {window.addEventListener("load", jsHover, false); }
//==========================| END CONT PHOTOS |==========================//
		$(document).ready(function() {
			$("a.gallery").fancybox();
		});
//==========================| CATALOG CHANGE |==========================//

$(document).ready(function() {
	
});

//==========================| END CATALOG CHANGE |==========================//
