/*
#####################################################
# 
# Myla Christmas Girls
# JavaScript setup routines
#
# Hand-crafted by Phenotype (phenotype.net)
#
#####################################################
*/

	////////////////////////////////////////////////////////////////////
	//	Initialise setup routines
	////////////////////////////////////////////////////////////////////
	
	// Called when DOM is ready
	$(document).ready(domSetup);
	
	// Called when entire page is loaded
	window.onload = pageSetup;
	
	////////////////////////////////////////////////////////////////////
	//	Define setup routines
	////////////////////////////////////////////////////////////////////
	
	/* 
	domSetup()
	
	All JavaScripts requiring initialisation on DOM LOAD should be called
	from this routine
	-----------------------------------------------------------------------
	*/
	function domSetup() {
		
		if (swfobject.hasFlashPlayerVersion("9.0.0")) {
			$('body').attr('class','flash-enabled');
		}
		
		// Insert Flash
		// Configure
		var flashvars = {};
		var params = {};
			params.wmode = "transparent";
			params.scale = "showall";
			params.allowScriptAccess = "always";
			params.allowFullScreen = false;
		var attributes = {};
			attributes.id = "flash-content";
			
		// Embed
		swfobject.embedSWF("myla.swf", "content", "980", "650", "9.0.0", false, flashvars, params, attributes);
		
		// Setup tooltips
		$('#girls a, h1 a, h3 a, #delivery a').tooltip({ 
			track: true, 
			delay: 0, 
			showURL: false, 
			showBody: " - ", 
			fade: 250 
		});
		
		// Setup external links
		externalLinks();
		
	} // End domSetup()
	
	/* 
	pageSetup()
	
	All JavaScripts requiring initialisation on PAGE LOAD should be called
	from this routine (all images and elements should be loaded and ready to
	manipulate by this point)
	-----------------------------------------------------------------------
	*/
	function pageSetup() {

	
	} // End pageSetup()