
var domain = "http://www.e-masculin.com/common/css/";

$(document).ready(function(){
	document.getElementById("colorChange").href = domain + $.cookie('styleColor');
});

function setCss(cssurl){
	document.getElementById("colorChange").href = domain + cssurl;
	$.cookie('styleColor',cssurl,{expires:60,path:'/'});
}

///////////////////////////////////////////////////////////////////////////

$(function(){
	$('footer').exFixed(); // for IE6
});

///////////////////////////////////////////////////////////////////////////

$(document).ready(function(){
	$("footer a").css("opacity",0);
	$("footer .on").css("opacity",1);
	$("footer a").mouseover(function(){
		$(this).stop().fadeTo("slow",1);
	});
	$("footer a:not(.on)").mouseout(function(){
		$(this).stop().fadeTo("slow",0);
	});
});

///////////////////////////////////////////////////////////////////////////

$(document).ready(function(){
	$("#artistsPic .thumbnail li:nth-child(1) a").addClass("on");
	$("#artistsPic .thumbnail li a").focus(function(){
		this.blur();
	});
	$("#artistsPic .thumbnail li a").click(function(){
		$("#artistsPic .thumbnail li a").removeClass("on");
		$(this).addClass("on");
		$("#artistsPic p img").css("opacity",0);
		$("#artistsPic p img").attr("src",$(this).attr("href"));
		$("#artistsPic p img").fadeTo("normal",1);
		return false;
	});
	$("#artistsPic .thumbnail li a img").each(function(){
		$("<img>").attr("src",$(this).attr("src").replace(/^(.+)(\.[a-z]+)$/,"$1_l$2"));
	});
});

///////////////////////////////////////////////////////////////////////////


