

//$("#body").attr("onload","loadSplash()");
 
function returnDocument() {
	var file_name = document.location.href;
	var end = (file_name.indexOf("?") == -1) ? file_name.length : file_name.indexOf("?");
	return file_name.substring(file_name.lastIndexOf("/")+1, end);
}

function loadSplash()
{
    if(returnDocument() == 'index.htm')
    {
        $("#body").append("<div id='splashWrapper'><div id='splash'></div></div>");
        var splash = new SWFObject('/splash6.swf', 'splash', '1024', '768', '9');
        splash.addParam('quality', 'best');
        splash.addParam('wmode', 'transparent');
        splash.write('splash');
       
    } // end if document == testing.htm
} // end loadSplash()


		
function hideSplash(){
		$('#splashWrapper').css('display','none');
}
		
  $(document).ready(function(){
    $(".flyout").flyout({loadingSrc:'gfx/loading.gif',
				outEase:'easeOutQuad',
				inEase:'easeInBack',
				loader:'loader2',
				widthMargin:300,
				heightMargin:300});
  });
