jQuery(function($) {
    var lang = base_url.substr( base_url.length-4, 3 );
    $("#muse_news").load( makeURL(lang, "app/ajax/news_one_article/"+lang));
    


    
	$("#museum_archive").parent("a").hover(
        function(e){
            // console.log(  $(this).children("img") ) ;
            $(this).children("img").attr("src", base_url + $(this).children("img").attr("id")+"_1.png");
        },
        function(e){
            $(this).children("img").attr("src", base_url + $(this).children("img").attr("id")+"_0.png");
        }
    ).mousedown(
        function(e){
        // $(this).attr("src", base_url + $(this).attr("id")+"_2.png");
        }
    ).click(
        function(e){
            return false;
        }
    );
    
    $("#museum_more").parent("a").hover(
        function(e){
            $(this).children("img").attr("src", $(this).children("img").attr("src").replace("_0.png", "_1.png") );
        },
        function(e){
            $(this).children("img").attr("src", $(this).children("img").attr("src").replace("_1.png", "_0.png") );
        }
    ).mousedown(
        function(e){
            $(this).children("img").attr("src", $(this).children("img").attr("src").replace("_1.png", "_2.png") );
            //$(this).children("img").attr("src", base_url + $(this).children("img").attr("id")+"_2.png");
        }
   
    );
        
    $(window).load(function (){
            
        preload_menu();
        preload_contact();
        
        jQuery.preLoadImages(
            base_url+"museum_archive_1.png"
            //base_url+"museum_archive_2.png"
        );
        
    });
    
    
	
});

