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||'9.0.0' ) ){
			return document.getElementsByTagName( 'html' )[0].className.indexOf( 'noflash' ) < 0;
		}
		return false;
	},
	baziffer: function( id, headline, content, height, width ){
		General.flash.embedFlash( headline ? 'flash/baziffer.swf': 'flash/baziffer_small.swf', id, width||745, height||155, true, {text:content} );	
	}
}

/*SCRIPT TO RUN BEFORE DOM AND JQUERY IS LOADED*/
General.prescript = {
	init: function(){
		document.write( '<style>.submit-input{display:none;}</style>' );
		document.write( '<style>.checkbox-input{position:absolute;top:-99999px;}</style>' );
		document.write( '<style>.next-button{display:block;}</style>' );
	}
}
General.prescript.init();


	
					
			