// JQUERY
$(document).ready(function() {
		
	// DROP DOWN MENU SETTINGS
	function addMega(){
		$(this).addClass("hovering");
	}
				
	function removeMega(){
		$(this).removeClass("hovering");
	}
				
	var megaConfig = {
		interval: 100,
		sensitivity: 4,
		over: addMega,
		timeout: 100,
		out: removeMega
	};
				
	$("li.mega").hoverIntent(megaConfig)
    //This will hide the "h1 tag this model is wearing" when the id on the template is not rendered
    if ( $('#ProductTemplateTable').size() == 0 )
	{
		$('#ModelWearingText').hide();
	}
	
	//Fancybox
	$("a.popup").fancybox(); 
	//Added by steve at Kurts request...
	$('#ccMonth1 option').each(function (index) { 
   if (index ==0) { this.text='01-Jan';} 
    if (index ==1) { this.text='02-Feb';}
	 if (index ==2) { this.text='03-Mar';} 
	  if (index ==3) { this.text='04-Apr';} 
	   if (index ==4) { this.text='05-May';} 
	    if (index ==5) { this.text='06-Jun';} 
		 if (index ==6) { this.text='07-Jul';} 
		  if (index ==7) { this.text='08-Aug';} 
		   if (index ==8) { this.text='09-Sep';} 
		    if (index ==9) { this.text='10-Oct';} 
			 if (index ==10) { this.text='11-Nov';} 
			 if (index ==11) { this.text='12-Dec';} 
  } );
	
});