// mm script







jQuery.noConflict();







jQuery(function(){



								



								

	











jQuery("#pageTitle").blur(function () {



      jQuery('#longTitle').attr('value', jQuery(this).attr('value'));



    });







jQuery(".cbox").colorbox({iframe:true, width:990, height:530, overlayClose:false});



jQuery().bind('cbox_complete', function(){

        jQuery.fn.colorbox.resize;

});



jQuery(".cboxprofile").colorbox({transition:"fade"});



jQuery(".cboxLogin").colorbox({iframe:true, width:500, height:430});











jQuery(".cboxMovie").colorbox({inline:true, href:"#homeMovie"});

jQuery(".sc_663").colorbox({inline:true, href:"#scM_663"});

jQuery(".sc_627").colorbox({inline:true, href:"#scM_627"});

jQuery(".sc_681").colorbox({inline:true, href:"#scM_681"});

jQuery(".sc_694").colorbox({inline:true, href:"#scM_694"});


jQuery(".sc_699").colorbox({inline:true, href:"#scM_699"});
jQuery(".sc_711").colorbox({inline:true, href:"#scM_711"});

jQuery(".sc_726").colorbox({inline:true, href:"#scM_726"});





jQuery("body.form a.closeNgo").click(function(){



	self.parent.jQuery.fn.colorbox.close();



	window.location.reload(href);



	return false;



}); 



jQuery("body.form a.closeNgo2").click(function(){



	self.parent.jQuery.fn.colorbox.close();



	window.location.reload(href);



	return false;



}); 





jQuery("body.form a.closeNgoComp").click(function(){



	self.parent.jQuery.fn.colorbox.close();



	window.parent.location.href = "http://moviemogul.co.uk/competition";



return false;

}); 







Cufon.replace('h1,h2,h3,#introText,legend,button.submit, #daysLeft');







jQuery("#bookingForm").validate();







jQuery("#wlpeUserRegisterDob").datepicker({

	dateFormat: 'mm-dd-yy',

	changeMonth: true,

	changeYear: true,

	yearRange: "1910:2010",

	maxDate: "+1d",

	showOn: 'both', 

	buttonImage: 'assets/images/calendar.png', 

	buttonImageOnly: true

});

jQuery("#wlpeUserProfileDob").datepicker({

	dateFormat: 'mm-dd-yy',

	changeMonth: true,

	changeYear: true,

	yearRange: "1910:2010",

	maxDate: "+1d",

	showOn: 'both', 

	buttonImage: 'assets/images/calendar.png', 

	buttonImageOnly: true

});









jQuery('div#compDetails').hide();



jQuery('a#openclose2').click(function() {



    jQuery('#compDetails').slideToggle(400);



	//jQuery(this).text(jQuery(this).text() == 'Click to close' ? 'Click to open' : 'Click to close'); // <- HERE



	jQuery('#cross_efd').toggleClass('tick');



    return false; 



  });







jQuery('a#openclose3').click(function() {



    //jQuery('#compDetails').slideToggle(400);



	//jQuery(this).text(jQuery(this).text() == 'Click to close' ? 'Click to open' : 'Click to close'); // <- HERE



	jQuery('#cross_pfe').toggleClass('tick');



    return false; 



  });







jQuery('a#openclose4').click(function() {



    //jQuery('#compDetails').slideToggle(400);



	//jQuery(this).text(jQuery(this).text() == 'Click to close' ? 'Click to open' : 'Click to close'); // <- HERE



	jQuery('#cross_pf').toggleClass('tick');



    return false; 



  });



	



jQuery("#right h2").wrapInner("<strong></strong>");







jQuery("#panelHolder div:odd").addClass("alt");



jQuery("#prodItemHolder div.prodItem:odd").addClass("altPanel");











jQuery('.rmv-dft-val').click(



	function() {



	if (this.value == this.defaultValue) {



	this.value = '';



	}



});







jQuery('.rmv-dft-val').blur(



	function() {



	if (this.value == '') {



	this.value = this.defaultValue;



	}



});







jQuery('div.miniPanel> div').hide();



jQuery('div.compRS> div').hide();



  



  



	jQuery('div.miniPanel').hoverIntent(function() {



		var jQuerynextDiv = jQuery(this).children('div.rMoreInner');



		jQuerynextDiv.slideDown('fast');          



	}, function() {



		var jQuerynextDiv = jQuery(this).children('div.rMoreInner');



		jQuerynextDiv.slideUp('fast');



});



	



		jQuery('div.prodItem').hoverIntent(function() {



		var jQuerynextSum = jQuery(this).contents().find('div.compSum');



		jQuerynextSum.slideDown('fast');          



	}, function() {



		var jQuerynextSum = jQuery(this).contents().find('div.compSum');



		jQuerynextSum.slideUp('fast');



});



  



 //  jQuery('div.miniPanel> a.rMore').click(function() {



//	var jQuerynextDiv = jQuery(this).next();



//	var jQueryvisibleSiblings = jQuery(this).parent().siblings().children('div');



//	jQueryvisibleSiblings.slideUp('fast');



//	jQuerynextDiv.slideToggle('fast');



//	jQuery(this).text(jQuery(this).text() == 'hide summary' ? 'view summary' : 'hide summary'); // <- HERE



//	jQuery(this).parent().siblings().children('a.rMore').text('view summary'); // <- HERE	



//	return false;



//  });







	jQuery('div.miniPanel').hoverIntent(function() {



		var jQuerynextDiv = jQuery(this).children('div.rMoreInner');



		jQuerynextDiv.slideDown('fast');          



	}, function() {



		var jQuerynextDiv = jQuery(this).children('div.rMoreInner');



		jQuerynextDiv.slideUp('fast');



});



	



jQuery('div#row1InnerInner')



		.css( {backgroundPosition: "0 258px"} )



		.hoverIntent(function(){



			jQuery(this).stop().animate({backgroundPosition:"(0 0)"}, {duration:400})



		}, function(){



			jQuery(this).stop().animate({backgroundPosition:"(0 258px)"}, {duration:400})



		});









function theRotator() {

	//Set the opacity of all images to 0

	jQuery('div#rotator ul li').css({opacity: 0.0});

	

	//Get the first image and display it (gets set to full opacity)

	jQuery('div#rotator ul li:first').css({opacity: 1.0});

		

	//Call the rotator function to run the slideshow, 6000 = change to next image after 6 seconds

	setInterval('rotate()',6000);

	

}



function rotate() {	

	//Get the first image

	var current = (jQuery('div#rotator ul li.show')?  jQuery('div#rotator ul li.show') : jQuery('div#rotator ul li:first'));



	//Get next image, when it reaches the end, rotate it back to the first image

	var next = ((current.next().length) ? ((current.next().hasClass('show')) ? jQuery('div#rotator ul li:first') :current.next()) : jQuery('div#rotator ul li:first'));	

	

	//Set the fade in effect for the next image, the show class has higher z-index

	next.css({opacity: 0.0})

	.addClass('show')

	.animate({opacity: 1.0}, 1000);



	//Hide the current image

	current.animate({opacity: 0.0}, 1000)

	.removeClass('show');

	

};





jQuery('#hidePay').hide();

jQuery('a#ido').click(function() {

    jQuery('#hidePay').fadeIn(400);

    return false; 

  });



	







jQuery("#latHolder div.miniPanel:odd").addClass("alt");



jQuery("ol li:odd").addClass("olAlt");







});