// JavaScript Document
var HOTKEY_OPENADMIN="Ctrl+a";
var HOTKEY_CLOSEADMIN="Ctrl+q";
var SITE_URL="/dev/";

$(document).ready(function(){

	$(".recupboutique").click(function(){
		var Boutique=$(this).attr("name");
		$("#overlay").css("display","block");
		$("#boutique-frame").fadeIn("slow");
		$("#boutique-frame").html("<iframe src='index.php/detail/index/"+Boutique+"' width='800px' height='500px'></iframe>");
	});
	
	$('a.flash_intro').media({
		width:610,
		height:347,
		bgColor: 'transparent',
		autoplay: true, 
		attrs: {id: 'right', wmode: 'transparent'},
		params: { wmode: 'transparent', allowScriptAccess: 'always', quality: 'high' },
		caption: false 
	});
	
		$('a.flash_right').media({
		width:178,
		height:400,
		bgColor: '#E5E5E5',
		autoplay: true, 
		attrs: {id: 'right'},
		params: { allowScriptAccess: 'always', quality: 'high' },
		caption: false 
	});
	
		$('a.flash_banniere').media({
		width:847,
		height:155,
		bgColor: 'transparent',
		autoplay: true, 
		attrs: {id: 'right', wmode: 'transparent'},
		params: { allowScriptAccess: 'always', quality: 'high' },
		caption: false 
	});
		
	var options = {};
	
	$("#overlay").click(function(){
		$("#boutique-frame").effect("clip",options,600,function(){
			$("#overlay").css("display","none");
		});
	});
	$("#boutique-frame").click(function(){
		$("#boutique-frame").effect("clip",options,600,function(){
			$("#overlay").css("display","none");
		});
	});
	
	
	$("#pushbyalpha").click(function(){
		$("#ByTheme").css("display","none");
		$("#ByAlpha").fadeIn("slow");
	});
	$("#pushbytheme").click(function(){
		$("#ByAlpha").css("display","none");
		$("#ByTheme").fadeIn("slow");
	});
	
	
	
});

function OuvreTarget(e){
		window.open(e.href);
	}

