// JavaScript Document

// cufon font replacement class/id
Cufon.replace('h1,h2,h3,h4,h5,#header_top p,.button_1 a,.sub_header a,form.contact_form label,form#loginform label, .fil_ariane',{textShadow: '0px 1px 0px #ffffff'});   
Cufon.replace('#footer h4');    
  
$(document).ready(function(){

	$('.nivoslider').nivoSlider({
		effect:'fade',
		animSpeed:400,
		pauseTime:4000,
		pauseOnHover:false,
		controlNav:false
	});
	reziseTheWindows();
}); // close document.ready

$(window).resize(function() {
	reziseTheWindows();
});

function reziseTheWindows()
{
	if ($(window).width() < 1311 )
	{
		$('.logo').hide();
		$('.logo_alter').show();
		$('#header_top').css('width','810');
		$('.sub_header').css('margin-top','-16px');

		$('.theHeader > .divider:first').css('margin-top','-18px');
	}
	else{
		$('.logo').show();
		$('.logo_alter').hide();
		$('#header_top').css('width','940');
	}
}
