// ** DOCUMENT READY FUNCTION ** //
$(document).ready(function(){
// ** JQuery ColorBox ** //
	$(".iframe").colorbox({width:"1014", height:"90%", iframe:true});
	$(".uploadmenus").colorbox({width:"600", height:"300", iframe:true});
	$(".ficheclient").colorbox({width:"1014", height:"550", iframe:true, onClosed:function(){window.location = window.location;} });
// ** Viewport ** //
    $('.viewport').mouseenter(function(e) {
		$(this).children('a').children('img').animate({ height: '299', left: '0', top: '0', width: '450'}, 100);
		$(this).children('a').children('span').fadeIn(200);
	}).mouseleave(function(e) {
		$(this).children('a').children('img').animate({ height: '332', left: '-20', top: '-20', width: '500'}, 100);
		$(this).children('a').children('span').fadeOut(200);
	});
// ** Rollover ** //
$("img.a").hover(
function() {
$(this).stop().animate({"opacity": "0"}, "slow");
},
function() {
$(this).stop().animate({"opacity": "1"}, "slow");
});

$("img.a1").hover(
function() {
$(this).stop().animate({"opacity": "0"}, "slow");
},
function() {
$(this).stop().animate({"opacity": "1"}, "slow");
});
// ** Tooltip ** //
			$("#tooltip").simpletooltip({
				customTooltip: function(target){
					return '<div class="tooltip"><b>Votre espace privé vous donne accès à</b> :<br />- L\'annuaire des fournisseurs par département.<br />- L\'accès complet aux menus équilibrés.<br />- Téléchargement de MercuDyn.<br />- Les offres "Qualité" et "Equipements".<br />- Les catalogues complets des fournisseurs disponibles.</div>';
				},
				showEffect: "fadeIn",
				hideEffect: "fadeOut"
			});

// ** fin ** //

});
