/**
 * @author Jeremy Manoto (jeremy@manoto.com.au)
 */


	$(document).ready(function() {
		
		/* Add nav images to top sections 
		$("#mainnav li").each(function() {
			var imgName = $(this).attr("id");
			$(this).css("background", "transparent url('/images/nav/" + imgName + ".jpg') no-repeat top left");
		});*/
		
		
		
		/* Specify SIFR Text */
		$(".title, .info-box h2, .info-box h3, #content h2, h2, .copy h3, .main h3").sifr({
			path: '/fonts/',
			font: 'AvantGarde Bk BT'
		});
		
		/* Link back to Home */
		$("h1#title").css({cursor: "pointer"}).click(function() {
			window.location = "http://www.shirelive.com";
		});
		
		//load video

		Profiles_Init();
		
		
		
		/** Header Cycle **/
		$('#scrollcontroller').hover(
			function() { $('#scrollcontrols').fadeIn(); },
			function() { $('#scrollcontrols').fadeOut(); }
		);
		 
		$('.scroller .items').cycle({
			fx: 'scrollHorz',
			timeout: 10000, // Wait Interval in ms
			pause: 0, //Pause the cycle on mouse over. 1=enable, 0=disable.
			next:   '#scrollnext',
			prev:   '#scrollprev'
		}).show();
		
		
	});
	
	/**
	 * Initialize the Profiles page functionality
	 */
	function Profiles_Init() {
		
		$(".profile")
			.hover(function() {
				$(this).addClass("hover");
			}, function() {
				$(this).removeClass("hover");
			});/*
			.click(function() {
				var name = $(this).attr("id");
				name = name.replace("profile_", "");

				//name = name.toLowerCase();
				
				$(".info-box.active").fadeOut(500, function() {
					$(this).removeClass("active");
					$("#info_" + name).fadeIn(500, function() {
						$(this).addClass("active");
					});
				});
				

			});*/
		$(".info-box").hide();
		$(".info-box:first").show();
		
	}
