/*

#####################################################

# 

# Friels Cider

# 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() {

		

		// Insert Flash

		// Configure

		var flashvars = {};
			
			flashvars.referer = referer;

		var params = {};

			params.wmode = "transparent";

			params.scale = "showall";

			params.allowScriptAccess = "sameDomain";

			params.allowFullScreen = false;

		var attributes = {};

			attributes.id = "content";

			

		// Embed

		swfobject.embedSWF("flash/friels1.swf", "flash-message", "980", "680", "9.0.0", false, flashvars, params, attributes);

		

		// 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()