var $r = jQuery.noConflict();

function callback () {
	// null;
}

function initPage(){
	// $r('.film-box').fadeTo(1200, 1, callback());
	// $r('.entry-title').css('display', 'none'));
	 };

$r(document).ready(function(){


    $r('.dropdown-menu').hover(
      function () {
        $r('.menu-first', this).addClass('slide-down'); 
        $r('.down-list', this).slideDown(100);
      }, 
      function () {
        obj = this;
        $r('.down-list', this).slideUp(100, function(){ $r('.menu-first', obj).removeClass('slide-down'); });
      }
    );
  
    //Select all menu anchor tags with rel set to tooltip  
    //$('a,img').mouseover(function(e) { 
    //$('.menu-first').mouseover(function(e) { 
    
     $r(".entry > a,.ctc-tag a,.post-title a, .thumblink, img, .post-footer a,.imagelink, a img").mouseover(function(e) {
          
        //Grab the title attribute's value and assign it to a variable  
        var menutip = $r(this).attr('title');      
          
        //Remove the title attribute's to avoid the native tooltip from the browser  
        $r(this).attr('title','');          
          
   		 }).mouseout(function() {  
      
        //Put back the title attribute's value  
        $r(this).attr('title', 'menutip');

	});
	
	// add no-hover class to images in posts
	$r(".entry a img").parent().addClass("no-hover");
	
	
	$r('#available').delay(1000).fadeIn(4000);
	
	$r('.film-box,').hover(
		function() {
			// $r(this).find('h2').fadeIn();
    	},
    	function() {
			// $r(this).find('h2').fadeOut();
		}
	);

	$r(".film-box").hover(function() {
		$r(this).css({'z-index' : '10'}); /*Add a higher z-index value so this image stays on top*/ 
		$r(this).find('img').addClass("hover").stop() /* Add class of "hover", then stop animation queue buildup*/
			.animate({
				left: '-=348px'
			}, 400); /* this value of "200" is the speed of how fast/slow this hover animates */
	
		} , function() {
		$r(this).css({'z-index' : '0'}); /* Set z-index back to 0 */
		$r(this).find('img').removeClass("hover").stop()  /* Remove the "hover" class , then stop animation queue buildup*/
			.animate({
				left: '0px'
			}, 400);
	});


	$r.preloadCssImages();
	
	initPage();

 });
   


