/** * JS functions logo panel in the home page. * * @param url */$(function(){	$('.logo-pane').find('div').mouseover(function(){		$(this).css({'background' : 'url("/static/twdc/css/pages/images/bb' + $(this).attr('id') + 'glow.png") no-repeat 0 0 transparent', 'opacity' : '.2'});		$(this).animate({			opacity: 1		}, 750, 'linear');		$("#bb" + $(this).attr('id')).attr('src', "/static/twdc/css/pages/images/bb" + $(this).attr('id') + "glow.png");	});	$('.logo-pane').find('div').mouseout(function(){		$("#bb" + $(this).attr('id')).attr('src', "/static/twdc/css/pages/images/bb" + $(this).attr('id') + ".png");		$(this).css({'background' : 'url("/static/twdc/css/pages/images/bb' + $(this).attr('id') + '.png") no-repeat 0 0 transparent', 'opacity' : '1'});	});	/*	 * For displaying brand sizzle reel in twdc home page	 *  */	if ($('.video-brand-video').length) {		$('.video-brand-video').live('click',function() {			$(".home-video-container").remove();			has_overlay = 0;			video_now = this.id;			var prentId = $(this).parent().attr('id');			var video_play_option = '';			if(videoObject[video_now]['video_object_count'] > 0) {				video_play_option = '<div class="view-video-overlay vjs-big-play-button home-video-play-button '+prentId+'-big-play-button'+'" id="displayVideoOverlay'+ video_now +'" style="display: block;"></div>';			}			var overlay =  jQuery(					'<div class="home-poster-container">' +					'<div class="home-text-over-image '+ prentId +'-text-align">' +					videoObject[video_now]['text_over_image'] +					video_play_option +					'<div class="home-link-over-image '+prentId+'-link-over-image'+'">'+ videoObject[video_now]['link_object_url']+'</div>'+					'</div>' +					videoObject[video_now]['poster_image_url'] +					'</div>' );			if($('.home-poster-container').length) {				$('.home-poster-container').remove();			}			if($('.view-video-overlay').length) {				$('.view-video-overlay').remove();			}			overlay.appendTo(document.body);			$(".home-poster-container").css({				display:'block',				top : 90,				position:'absolute'			});		  $('#sizzleReel').addClass('poster-align');		  $('.banner-reel').css('display','none');		  // Setting video div position from left		  $(".home-poster-container").css("left",($(window).width()/2)-498);		  if($(window).width() < 998){			  $(".home-poster-container").css("left","0px");		  }		  VideoJS.setupAllWhenReady();		  has_overlay = 1;		  return false;		});	}	/*	 * For displaying the video in overlay in twdc home page	 *  */	$(".home-video-play-button").live('click',function() {		video_now = this.id.replace("displayVideoOverlay","");		var overlay =  jQuery(				'<div class="home-video-container">' +				'<div class="overlay-close" >&nbsp;</div>' +				videoObject[video_now]['video_url'] +				'</div>');		if ($(".home-video-container").length) {			$(".home-video-container").remove();		}		if ($('#segmentLogoArea').length) {			overlay.appendTo(document.body);			$(".home-video-container").css({				display:'block',				top : 143,				position:'absolute'			});		}		else{			overlay.appendTo(document.body);			$(".home-video-container").css({				display:'block',				top : 90,				position:'absolute'			});		}	  // Setting video div position from left	  $(".home-video-container").css("left",($(window).width()/2)-498);	  $(".home-video-container").css('background', 'url("/static/css/global/images/video_bg.gif")');	  $(".home-video-container").css("width",998);	  if($(window).width() < 998){		  $(".home-video-container").css("left","0px");	  }	  // Hiding text over image and play button	  $('.home-text-over-image').css('z-index','-1');	  $('.view-video-overlay').css('z-index','-1');	  if($('#sizzleReel .controls').length){		  $('#sizzleReel .controls').css('z-index','-1');	  }	  if($('#sizzleReel .center').length){		  $('#sizzleReel .center').css('z-index','-1');	  }	  VideoJS.setupAllWhenReady();	  has_overlay = 1;	  return false;	});	$(window).resize(function() {		if($(window).width() < 998) {			$(".home-video-container").css("left","0px");			$(".home-poster-container").css("left","0px");		}		else {			$(".home-video-container").css("left",($(window).width()/2)-498);			$(".home-poster-container").css("left",($(window).width()/2)-498);		}	});});// funtion to load text over flash in twdc home pagefunction showLandingHTML(){	$('.home-text-over-image-twdc').css('display','block');}
