/**
 * @author lyykfi
**/
 
var IE6 = false /*@cc_on || @_jscript_version < 5.7 @*/;
var IE7 = false /*@cc_on || @_jscript_version == 5.7 @*/;
var gteIE7 = false /*@cc_on || @_jscript_version >= 5.7 @*/;
var isMSIE = /*@cc_on!@*/false;

//Cufon.replace('#topnav table td a', { fontFamily: 'PopularScript',hover: true });

jQuery.preloadImages = function() {
  for(var i = 0; i<arguments.length; i++) {
    jQuery("<img>").attr("src", arguments[i]);
  }
}

if(IE6) {
	 DD_belatedPNG.fix('.png');
}


$(function (){  
    $("#gallery2 td").hover(
    	function() {
    		$(this).find("img").css("z-index","99");
    		$(this).find("img").animate({ 
				width: "219px", height: "173px", marginTop: "-50px", marginLeft: "-50px" }, 600 );

    		/*
			$(".big_item").stop(true, true);
    		$(".big_item").css("display","none");
    		
    		$(this).css("visibility","hidden");
    		$(this).parent().find(".big_item").show("scale",{ queue: true, easing: "linear" },600,
    			function() {
    				//$(this).find("img").attr("style","");
    				//alert($(this).find("img").attr("style"));
    			}
    		);
    		
			$(this).parent().find(".big_item img").attr("style","");
    		//$(this).parent().find(".big_item").show("scale","slow");
    		*/

    	}, function() {
    		$(this).find("img").css("z-index","1");
    		$(this).find("img").animate({ width: "111px", height: "88px", marginTop: "0px", marginLeft: "0px" }, 600 );
    	}
    );
    
    $("#gallery2").hover(
    	function() {

    	}, function() {
    		$(".big_item").css("display","none");
    	}
    );
});

