/*!
#######################################################################
# 
# HelpHound
# JavaScript setup routines
#
# Hand-crafted by Phenotype (phenotype.net)
#
#######################################################################
*/

	////////////////////////////////////////////////////////////////////
	//	Initialise setup routines
	////////////////////////////////////////////////////////////////////
	
		// Called when DOM is ready
		jQuery(document).ready( domSetup );
		
		// Called when entire page is loaded
		jQuery(window).load( pageSetup );
		
		// Called when DOM is unloaded
		jQuery(window).unload( domUnload );
	
	////////////////////////////////////////////////////////////////////
	//	Global variables
	////////////////////////////////////////////////////////////////////

	
	////////////////////////////////////////////////////////////////////
	//	Define setup routines
	////////////////////////////////////////////////////////////////////
	
	/* 
	domSetup()
	
	All JavaScript requiring initialisation on DOM LOAD should be called
	from this routine.
	-----------------------------------------------------------------------
	*/
	
	function domSetup() {
		
		////////////////////////////////////////////////////////////////////
		//	IE6 PNG fix
		////////////////////////////////////////////////////////////////////

			/* if( jQuery.browser.msie && jQuery.browser.version == '6.0' ) {
				DD_belatedPNG.fix('#header h1, #content h3 a');
			} */
		
		////////////////////////////////////////////////////////////////////
		//	IE6 PNG fix
		////////////////////////////////////////////////////////////////////
		
		////////////////////////////////////////////////////////////////////
		//	Navigation
		////////////////////////////////////////////////////////////////////

			/*
			Setup external links (target attribute not allowed by XHTML 1.1)
			(see http://www.sitepoint.com/article/standards-compliant-world/)
			*/
			jQuery('a[rel="external"]').attr('target','blank');
		
		////////////////////////////////////////////////////////////////////
		//	/Navigation
		////////////////////////////////////////////////////////////////////
		
		////////////////////////////////////////////////////////////////////
		//	Enhancements
		////////////////////////////////////////////////////////////////////
                
                // tell the browser that js has loaded
                jQuery('html').addClass('loaded');
                
                // add some spans for the rounded corners in elements
                jQuery('#vslider_container').append('<span class="tl" /><span class="tr" /><span class="bl" /><span class="br" />');
								
		////////////////////////////////////////////////////////////////////
		//	/Enhancements
		////////////////////////////////////////////////////////////////////

	} // End domSetup()
	
	/* 
	pageSetup()
	
	All JavaScript 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()
	
	/* 
	domUnload()
	
	Called when page/DOM is unloaded
	-----------------------------------------------------------------------
	*/
	
	function domUnload() {

	} // End domUnload()
