$(document).ready(function(){

	
	/* FORM */
	$('input[title],textarea[title]').each(function() {
			if($(this).val() === '') {
				$(this).val($(this).attr('title'));	
			}
			
			$(this).focus(function() {
				if($(this).val() == $(this).attr('title')) {
					$(this).val('').addClass('focused');	
				}
			});
			$(this).blur(function() {
				if($(this).val() === '') {
					$(this).val($(this).attr('title')).removeClass('focused');	
				}
			});
		});
	  $('a.tip_artistes').cluetip({activation: 'click', closePosition: 'title',local:true, hideLocal: true, sticky: true, arrows: false, cursor: 'pointer',tracking: true,cluetipClass: 'jtip'});
	  $("a.jTip").live("load", function(event){
        $('a.today').cluetip({
            activation: 'load'
        })
        event.preventDefault();
    });
	
	
		$.fn.supersized.options = {  
			startwidth: 1024,  
			startheight: 768,
			minsize: .90,
			slideshow: 0 
		};
        $('#supersize').supersized(); 
   

	
	/* LINKS OUTLINE NONE IE */
	$("a").focus(function() {
		$(this).blur();
	});
	
	$('a[rel=external]').click(function(){
		window.open(this.href); 
		return false;
	});
	//$("a[@href^='http']").attr('target','_blank');
	
	$("a[href=#]").attr("href", "javascript:void(0);");
	

	
	$("a.fancy").fancybox({type:'iframe'});
	
	/* NEWS */
		var options = {
  		newsList: "ul.news",
 		startDelay: 0,
 		tickerRate: 100,
		loopDelay: 5000,
 		controls: true,
 		ownControls: true,
 		stopOnHover: true,
 		resumeOffHover: true
	}
	$().newsTicker(options);

	
	
	
	/* CAL TD A HEIGHT WIDTH */
	var htd = ($("#header #cal table td").height())+10;
	var wtd = $("#header #cal table td").width();
	var pagehtd = ($("#page #cal table td").height())+15;
	var pagewtd = $("#page #cal table td").width();
	$("#header #cal table td a,#header #cal table td span").css({width:+wtd+"px",height:+htd+"px"});
	$("#page #cal table td a,#page #cal table td span").css({width:+pagewtd+"px",height:+pagehtd+"px"});
	
	

	
	

});// The end of our jQuery function
