$(function(){
	$("img.over_img").each(function(){
		$("<img>").attr("src",$(this).attr("src").replace(/^(.+)(\.[a-z]+)$/, "$1_o$2"));
	})

	if($.browser.msie && $.browser.version<7){
		$("img.over_img").each(function(){
			$(this)
			.data("src",$(this).attr("src"))
			.attr("src","images/transparent.gif")
			.css("filter","progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+$(this).data("src")+"',sizingMethod='scale')")
		}).mouseover(function(){
			$(this).css("filter","progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+$(this).data("src").replace(/^(.+)(\.[a-z]+)$/, "$1_o$2")+"',sizingMethod='scale')");
		}).mouseout(function(){
			$(this).css("filter","progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+$(this).data("src")+"',sizingMethod='scale')");
		})
	}else{
		$("img.over_img").mouseover(function(){
			if(!$.browser.msie){
				$(this).stop(true , true).animate({opacity:'0.4'}, 500 );
			}
		$(this).attr("src",$(this).attr("src").replace(/^(.+)(\.[a-z]+)$/, "$1_o$2"));
			
			if(!$.browser.msie){
				$(this).stop(true , true).animate({opacity:'1'}, 400 );
			}
		}).mouseout(function(){
			$(this).attr("src",$(this).attr("src").replace(/^(.+)_o(\.[a-z]+)$/, "$1$2"));
		})
	}
});

$(function(){ 
	$('a').click(function () {
		try{
			$(this).find('img.over_img').attr("src",$(this).find('img.over_img').attr("src").replace(/^(.+)_o(\.[a-z]+)$/, "$1$2"));
		}catch( e ){
			return true;
		}
	});
});


$(document).ready(function() {
		$('body').css("overflow","hidden");
		var mDuration = 1500;
		$('body').css('margin-left',1000).animate({ "margin-left": 0 },{duration:1000,complete: function(){$('body').css("overflow","visible");}});
});

