// Sitewide scripts using jquery
//place this at the bottom of other script includes to activate jquery plugins

$(document).ready(function(){ 
//activate png transparency fix
	$(document).pngFix();
	
// initialise Header Rotating Images using InnerFade
	$("#header_photos").innerfade({
		speed: 2000,
		timeout: 5000,
		type: "random",
		containerheight: "225px"
	});

// Add external link icon to text hyperlinks
	$("a:not(:has(img))").filter(function() {
		return this.hostname && this.hostname !== location.hostname;
	}).addClass("external_link").attr("target", "_blank");
	

	
	
	
	
	
//flash videos using SWFObject
/*	$('#trailer').flash({ 
		swf: "http://blip.tv/file/get/HipTonesMusic-GuitarLessonsWithHipTonesMusiccom777.wmv?source=2",
		width: 400,
		height: 301,
		flashvars: { 
			allowscriptaccess: "always", 
			allowfullscreen: "true"
		}
	});
	$('#trailer').flash({ 
		swf: "FLVPlayer_Progressive.swf",
		width: 400,
		height: 301,
		flashvars: { 
			MM_ComponentVersion: 1, 
			skinName: "video/Clear_Skin_2", 
			streamName: "video/intro", 
			autoPlay: "false", 
			autoRewind: "false" 
		}
	});*/
	
//iSelect Popup
	$('#iselect_design').hover(function() {
		$(this).find('#iselect_promo:hidden').fadeIn(500);
	}, function() {
		$(this).find('#iselect_promo:visible').fadeOut(500);
	});
}); 