var General = {};

/*FLASHOBJECT INTERFACE*/	
General.flash = {	
	embedFlash: function( filename, container, width, height, transparent, vars, version ){
		if( typeof( swfobject ) !== 'undefined' ){
			return swfobject.embedSWF( filename, container, width, height, ( version||'9.0.0' ), 'flash/expressinstall.swf', ( vars||{} ) , {wmode:( transparent ? 'transparent': 'opaque' ), menu:false, allowFullScreen:true} );			
		}
		alert( 'swfobject is not included' );
		return false;
	},	
	hasFlashVersion: function( version ){
		if( typeof( swfobject ) !== 'undefined' ){
			return swfobject.hasFlashPlayerVersion( version||'9.0.0' );	
		}
		alert( 'swfobject is not included' );
		return false;	
	},
	useFlash: function( version ){
		if( General.flash.hasFlashVersion( version ) ){
			return document.getElementsByTagName( 'html' )[0].className.indexOf( 'noflash' ) < 0;
		}
		return false;
	}
}

/*SCRIPT TO RUN BEFORE DOM AND JQUERY IS LOADED*/
General.prescript = {
	init: function(){
	
	}
}
General.prescript.init();