	jQuery(document).ready(function(){	
		//Afficher Nos Collection dans le Sous Menu
		jQuery('#show1').click(function() {
			
			var scrollTop = 0;
			//Tweek pour Firefox/Chrome/Safari
			var brw = navigator.userAgent;
			if((brw.indexOf("Firefox") != -1) || (brw.indexOf("Safari") != -1) || (brw.indexOf("Chrome") != -1)){
				//scrollTop = jQuery(window).scrollTop();
			}
			
			if(jQuery('#smenu').is(':visible') ) {
				//Masquer si visible
				jQuery('#smenu').hide();
			}else{
				//Afficher si masqué
				position = jQuery("#menu").offset();
				jQuery('#smenu').css({top: (position.top + 30 + scrollTop)})
				jQuery('#scontent').load("CollectionSeries.aspx?ColId=4");
				jQuery('#smenu').show();
			}
			//Fermeture en mouse out
			jQuery('#smenu').mouseleave(function() {
				jQuery('#smenu').hide();
			});
			
		});

    });

function hide_menu(){
	alert('out');
}

function smenu_change(colid){
	//chargement des couleurs
    //    var color = '#00334d';

//	if(colid == 2){color = '#569199';}
//	if(colid == 3){color = '#888d4a';}
    //	if(colid == 4){color = '#b37015';}

        var color;
        if (colid == 4) { color = '#00334d'; }
    	if(colid == 3){color = '#569199';}
    	if(colid == 2){color = '#888d4a';}
    	if(colid == 1){color = '#b37015';}
	
	//Positionne toutes les largeur à auto
	jQuery("#collection1").css({width: "auto", "border-bottom-color": "#fff"});
	jQuery("#collection2").css({width: "auto", "border-bottom-color": "#fff"});
	jQuery("#collection3").css({width: "auto", "border-bottom-color": "#fff"});
	jQuery("#collection4").css({width: "auto", "border-bottom-color": "#fff"});

//	jQuery("#collection" + colid).css({ width: "50%", "border-bottom-color": color });

	if (colid == 4) { jQuery("#collection1").css({ width: "50%", "border-bottom-color": color }); }
	if (colid == 3) { jQuery("#collection2").css({ width: "50%", "border-bottom-color": color }); }
	if (colid == 2) { jQuery("#collection3").css({ width: "50%", "border-bottom-color": color }); }
	if (colid == 1) { jQuery("#collection4").css({ width: "50%", "border-bottom-color": color }); }



	jQuery("#scontent").html("");
	jQuery("#scontent").load("CollectionSeries.aspx?ColId=" + colid);
	jQuery("#smenu").css({background: color});
	//jQuery("#scontent").load("collection"+colid+".html");
	//jQuery("#smenu").css({background: color});
}

function init_function(){
	var hf = jQuery('#footer').offset();
	jQuery("#bande_gauche2").css({height : (hf.top - 480)});
}

