$(function() {
	
	jQuery('#slideshow').cycle({
		fx: 'fade',
		speed: 3000
	});
	
	Cufon.replace('#menu-main-menu a', {
		hover: true
	});
	
	Cufon.replace('#left .name', {
		hover: true
	});
	
	Cufon.replace('.404', {
		hover: true
	});
	
	Cufon.replace('.price-1, .text-1, .price-2, .text-2, .price-3, .text-3, .price-4, .text-4, .price-5, .text-5, .price-6, .text-6, .price-7, .text-7, .price-8, .text-8, .price-9, .text-9, .price-10, .text-10, .price-11, .text-11, .price-12, .text-12, .price-13, .text-13, .price-14, .text-14', {
		hover: true
	});

	$("#ginger").animate({"top": "-=195px"}, 2000, function() { 
		jQuery(".updates-text").show();
	});
	
	function endlessText(){
		jQuery(".updates-text").animate({
			left: '-=693',
			easing: 'linear'
		}, 14000, function() {
			$(".updates-text").css("left", "193px");
			endlessText();
		});	
	};
	
	endlessText();
	
	if(jQuery("#video-1-link").length) {
		jQuery("#video-1").dialog({
			modal: true,
			autoOpen: false,
			position: 'middle',
			width: 'auto',
			height: 'auto',
			closeOnEscape: true,
			closeText: 'Close'
		});
	};
	
	jQuery("#video-1-link").click(function() {
			jQuery("#video-1").dialog('open');
	});
	
	if(jQuery("#video-2-link").length) {
		jQuery("#video-2").dialog({
			modal: true,
			autoOpen: false,
			position: 'middle',
			width: 'auto',
			height: 'auto',
			closeOnEscape: true,
			closeText: 'Close'
		});
	};
	
	jQuery("#video-2-link").click(function() {
			jQuery("#video-2").dialog('open');
	});
	
	if(jQuery("#video-3-link").length) {
		jQuery("#video-3").dialog({
			modal: true,
			autoOpen: false,
			position: 'middle',
			width: 'auto',
			height: 'auto',
			closeOnEscape: true,
			closeText: 'Close'
		});
	};
	
	jQuery("#video-3-link").click(function() {
			jQuery("#video-3").dialog('open');
	});
	
	if(jQuery("#video-3-link").length) {
		jQuery("#video-3").dialog({
			modal: true,
			autoOpen: false,
			position: 'middle',
			width: 'auto',
			height: 'auto',
			closeOnEscape: true,
			closeText: 'Close'
		});
	};	
	
	jQuery("#video-4-link").click(function() {
			jQuery("#video-4").dialog('open');
	});
	
	if(jQuery("#video-4-link").length) {
		jQuery("#video-4").dialog({
			modal: true,
			autoOpen: false,
			position: 'middle',
			width: 'auto',
			height: 'auto',
			closeOnEscape: true,
			closeText: 'Close'
		});
	};
	
	jQuery("#video-5-link").click(function() {
			jQuery("#video-5").dialog('open');
	});
	
	if(jQuery("#video-5-link").length) {
		jQuery("#video-5").dialog({
			modal: true,
			autoOpen: false,
			position: 'middle',
			width: 'auto',
			height: 'auto',
			closeOnEscape: true,
			closeText: 'Close'
		});
	};
	
	jQuery("#video-6-link").click(function() {
			jQuery("#video-3").dialog('open');
	});
	
	if(jQuery("#video-6-link").length) {
		jQuery("#video-6").dialog({
			modal: true,
			autoOpen: false,
			position: 'middle',
			width: 'auto',
			height: 'auto',
			closeOnEscape: true,
			closeText: 'Close'
		});
	};
	
	jQuery("#video-7-link").click(function() {
			jQuery("#video-7").dialog('open');
	});
	
	if(jQuery("#video-7-link").length) {
		jQuery("#video-7").dialog({
			modal: true,
			autoOpen: false,
			position: 'middle',
			width: 'auto',
			height: 'auto',
			closeOnEscape: true,
			closeText: 'Close'
		});
	};
	
	jQuery("#video-8-link").click(function() {
			jQuery("#video-8").dialog('open');
	});
	
	if(jQuery("#video-8-link").length) {
		jQuery("#video-8").dialog({
			modal: true,
			autoOpen: false,
			position: 'middle',
			width: 'auto',
			height: 'auto',
			closeOnEscape: true,
			closeText: 'Close'
		});
	};
	
	jQuery("#video-9-link").click(function() {
			jQuery("#video-9").dialog('open');
	});
	
	if(jQuery("#video-9-link").length) {
		jQuery("#video-9").dialog({
			modal: true,
			autoOpen: false,
			position: 'middle',
			width: 'auto',
			height: 'auto',
			closeOnEscape: true,
			closeText: 'Close'
		});
	};
	
	jQuery("#video-10-link").click(function() {
			jQuery("#video-10").dialog('open');
	});
	
	if(jQuery("#video-10-link").length) {
		jQuery("#video-10").dialog({
			modal: true,
			autoOpen: false,
			position: 'middle',
			width: 'auto',
			height: 'auto',
			closeOnEscape: true,
			closeText: 'Close'
		});
	};
	
	jQuery(".ui-widget-overlay").live("click", function() {  
		jQuery("#video-1,#video-2,#video-3,#video-4,#video-5,#video-6,#video-7,#video-8,#video-9,#video-10").dialog("close"); 
	});
	
	jQuery('#member-1').mouseover(function() {
			jQuery('#team-member-1').show();
		    jQuery('#team-member-2, #team-member-3, #team-member-4, #team-member-5, #team-member-6').hide();
	})
	
	jQuery('#member-2').mouseover(function() {
			jQuery('#team-member-2').show();
		    jQuery('#team-member-1, #team-member-3, #team-member-4, #team-member-5, #team-member-6').hide();
	})
	
	jQuery('#member-3').mouseover(function() {
			jQuery('#team-member-3').show();
		    jQuery('#team-member-2, #team-member-1, #team-member-4, #team-member-5, #team-member-6').hide();
	})
	
	jQuery('#member-4').mouseover(function() {
			jQuery('#team-member-4').show();
		    jQuery('#team-member-2, #team-member-3, #team-member-1, #team-member-5, #team-member-6').hide();
	})
	
	jQuery('#member-5').mouseover(function() {
			jQuery('#team-member-5').show();
		    jQuery('#team-member-2, #team-member-3, #team-member-4, #team-member-1, #team-member-6').hide();
	})
	
	jQuery('#member-6').mouseover(function() {
			jQuery('#team-member-6').show();
		    jQuery('#team-member-2, #team-member-3, #team-member-4, #team-member-1, #team-member-5').hide();
	})
	
	jQuery('.rental-1').mouseover(function() {
			jQuery('#rental-1-picture').show();
		    jQuery('#rental-body-armour-picture, #rental-2-picture, #rental-3-picture, #rental-4-picture, #rental-5-picture, #rental-6-picture, #rental-7-picture, #rental-8-picture, #rental-9-picture, #rental-10-picture, #rental-11-picture, #rental-12-picture').hide();
	})
	
	jQuery('.rental-2').mouseover(function() {
			jQuery('#rental-1-picture').show();
		    jQuery('#rental-body-armour-picture, #rental-2-picture, #rental-3-picture, #rental-4-picture, #rental-5-picture, #rental-6-picture, #rental-7-picture, #rental-8-picture, #rental-9-picture, #rental-10-picture, #rental-11-picture, #rental-12-picture').hide();
	})
	
	jQuery('.rental-5').mouseover(function() {
			jQuery('#rental-5-picture').show();
		    jQuery('#rental-body-armour-picture, #rental-2-picture, #rental-3-picture, #rental-4-picture, #rental-1-picture, #rental-6-picture, #rental-7-picture, #rental-8-picture, #rental-9-picture, #rental-10-picture, #rental-11-picture, #rental-12-picture').hide();
	})
	
	jQuery('.rental-6').mouseover(function() {
			jQuery('#rental-5-picture').show();
		    jQuery('#rental-body-armour-picture, #rental-2-picture, #rental-3-picture, #rental-4-picture, #rental-1-picture, #rental-6-picture, #rental-7-picture, #rental-8-picture, #rental-9-picture, #rental-10-picture, #rental-11-picture, #rental-12-picture').hide();
	})
	
	jQuery('.rental-7').mouseover(function() {
			jQuery('#rental-7-picture').show();
		    jQuery('#rental-body-armour-picture, #rental-2-picture, #rental-3-picture, #rental-4-picture, #rental-5-picture, #rental-6-picture, #rental-1-picture, #rental-8-picture, #rental-9-picture, #rental-10-picture, #rental-11-picture, #rental-12-picture').hide();
	})
	
	jQuery('.rental-8').mouseover(function() {
			jQuery('#rental-8-picture').show();
		    jQuery('#rental-body-armour-picture, #rental-2-picture, #rental-3-picture, #rental-4-picture, #rental-5-picture, #rental-6-picture, #rental-7-picture, #rental-1-picture, #rental-9-picture, #rental-10-picture, #rental-11-picture, #rental-12-picture').hide();
	})
	
	jQuery('.rental-9').mouseover(function() {
			jQuery('#rental-9-picture').show();
		    jQuery('#rental-body-armour-picture, #rental-2-picture, #rental-3-picture, #rental-4-picture, #rental-5-picture, #rental-6-picture, #rental-7-picture, #rental-1-picture, #rental-1-picture, #rental-10-picture, #rental-11-picture, #rental-12-picture').hide();
	})
	
	jQuery('.rental-10').mouseover(function() {
			jQuery('#rental-10-picture').show();
		    jQuery('#rental-body-armour-picture, #rental-2-picture, #rental-3-picture, #rental-4-picture, #rental-5-picture, #rental-6-picture, #rental-7-picture, #rental-8-picture, #rental-1-picture, #rental-9-picture, #rental-11-picture, #rental-12-picture').hide();
	})
	
	jQuery('.rental-11').mouseover(function() {
			jQuery('#rental-11-picture').show();
		    jQuery('#rental-body-armour-picture, #rental-2-picture, #rental-3-picture, #rental-4-picture, #rental-5-picture, #rental-6-picture, #rental-7-picture, #rental-8-picture, #rental-9-picture, #rental-10-picture, #rental-1-picture, #rental-12-picture').hide();
	})
	
	jQuery('.rental-12').mouseover(function() {
			jQuery('#rental-11-picture').show();
		    jQuery('#rental-body-armour-picture, #rental-2-picture, #rental-3-picture, #rental-4-picture, #rental-5-picture, #rental-6-picture, #rental-7-picture, #rental-8-picture, #rental-9-picture, #rental-10-picture, #rental-1-picture, #rental-12-picture').hide();
	})
	
	jQuery('.rental-13').mouseover(function() {
			jQuery('#rental-body-armour-picture').show();
		    jQuery('#rental-2-picture, #rental-3-picture, #rental-4-picture, #rental-5-picture, #rental-6-picture, #rental-7-picture, #rental-8-picture, #rental-9-picture, #rental-10-picture, #rental-1-picture, #rental-11-picture, #rental-12-picture').hide();
	})
	
	jQuery('.rental-14').mouseover(function() {
			jQuery('#rental-body-armour-picture').show();
		    jQuery('#rental-2-picture, #rental-3-picture, #rental-4-picture, #rental-5-picture, #rental-6-picture, #rental-7-picture, #rental-8-picture, #rental-9-picture, #rental-10-picture, #rental-1-picture, #rental-11-picture, #rental-12-picture').hide();
	})
	
	jQuery(window).load(function(){
		jQuery("#left-content").css("height", jQuery("#primary").height()+200);
		jQuery("#right-content").css("height", jQuery("#primary").height()+200);
	});

	
});
