/** * Fallback if console.log() does not exist - http://ajax-prototype.blogspot.com/2006/12/workaround-to-make-firebug-consolelog.html * */try { console.log('init console... done'); } catch(e) { console = { log: function(str) {	$('#debug').append(str+'<br/>');} } }$(document).ready( function(){	//Testimonial hovers		$('.testimonialBlock').hover( function () {	    $('.testimonial' ,$(this)).show();	  }, 	  function () {	    $('.testimonial' ,$(this)).hide();	  }	);	//Login	$('a.clublogin').mouseover( function(){		$('#login').css('width', '410px');		$('#login').css('height', '100px');	});		$('#login').mouseleave( function() {		$('#login').css('width', '0px');		$('#login').css('height', '0px');	});		//Game formats - click	$('#gameFormatsNav a').click( function() {		var clickedId = $(this).attr('id').split('-');		clickedId = clickedId[1];				//Show correct game format		$('.gameFormatInner').hide();		$('#gfi-'+clickedId).show();				//Highligh correct link		$('#gameFormatsNav a').removeClass('current');		$(this).addClass('current');				return false;	});		//Show first game format and set nav	$('.gameFormatInner:first').show();	$('#gameFormatsNav a:first').addClass('current');		//Game formats - hover	$("#gameFormatsNav a").hover(      function () {      	var hoverId = $(this).attr('id').split('-');      	hoverId = hoverId[1];              //Show hovered format		$('.gameFormatInner').hide();		$('#gfi-'+hoverId).show();				//Highligh correct link		$('#gameFormatsNav a').removeClass('current');		$(this).addClass('current');      },       function () {        //Do nothing      }    );        		//Expanded text section for game formats	$('#moreGames').click( function(){		if( $(this).hasClass('closed') ){			$('#extendedGames').show(500);			$(this).removeClass('closed');		}		else{			$('#extendedGames').hide(500);			$(this).addClass('closed');		}				return false;	});		//Device tabs	$('.tab:first', $('#deviceTabsContainer')).show();		//Click on primary tab	$('.primaryTabNav a').click( function(){		$('#'+$(this).parent().parent().parent().attr('id')).hide();		$('#'+$(this).attr('class')+'1').show();				return false;	});		//Click on secondary tab	$('.secondaryTabNav a').click( function(){		var stab = $(this).attr('class').split('-')[1];		$('#'+$(this).parent().parent().parent().attr('id')).hide();		$('#tab-'+$(this).parent().parent().parent().attr('id').split('-')[1].substr(0,1)+''+stab).show();		return false;	});			//first last (alpha/omega) classes to testimonials	$('.col-style-2:last', $('#testimonials')).addClass('omega');		//Fancybox	$('a#corporateBlockLink').fancybox({	 	'hideOnContentClick': false,	 	//'centerOnScroll': false,	 	'frameWidth': 500,	 	'frameHeight': 500	});		$("a#videoplay").fancybox({	 	'hideOnContentClick': false,	 	'frameWidth': 1063,	 	'frameHeight': 505	});		$("a#subVideoPlayLink1").click( function() {		$('a#videoplay').trigger('click');		$('#videoNavigator a#vpk-0').trigger('click');				return false;	});		$("a#subVideoPlayLink2").click( function() {		$('a#videoplay').trigger('click');		$('#videoNavigator a#vpk-1').trigger('click');				return false;	});		//Video nav	$('#videoNavigator a').live('click', function() {		//hide all video players		$('.videoPlayer').hide();				//Remove and add current class		$('#videoNavigator a').removeClass('current');		$(this).addClass('current');		//Show correct video player		$('#fancy_div #vp-'+$(this).attr('id').split('-')[1]).show();				return false;	});		//Page load first video	$('#videoNavigator a:first').addClass('current');	$('.videoPlayer:first').show();		//If SIFR fails set text color	setTimeout( function(){		$('h1').css('color', '#9ad227');		$('.clickToTry').css('color', '#9ad227');		$('h3').css('color', '#000000');		$('.tagline').css('color', '#9ad227');		$('.testimonialPerson').css('color', '#9ad227');	}, 4000);});