window.onload = function(foo) {

	/*-----------------------
	 |
	 | JQuery to ensure everything cross-browser has loaded
	 |
	 |------------------------------------*/
	$('document').ready(function(){
	
		// let the class know we've loaded the document and load additional document extensions
		jib.loaded	=	true;
		
		// post-load options are added here
		for(var i=0;i<postload.length;i++) {if(postload[i] != null) jib.writeJavaScript(postload[i]); }
							 		
		// individualized extension instantiations
		if( jib.ext['console'] )			jib.console.build();
		if( jib.ext['popupdetect'] ) 		jib.popup_detection.init();
		if( jib.ext['query_string'] ) 		jib.query_string.init();
			            
		// check if we're launching a flash site or an HTML site
		if( jib.settings.flash_site && $('#'+jib.settings.swf_div).length > 0 ){
		
			if(!swfobject.hasFlashPlayerVersion( jib.settings.swf_redirect_ver ))
				document.location = jib.settings.swf_redirect;
			else
				swfobject.embedSWF( jib.settings.swf_file, 
									jib.settings.swf_div, 
									jib.settings.swf_div_width,
									jib.settings.swf_div_height,
							 		jib.settings.swf_redirect_ver,
									jib.settings.swf_install,
									jib.flashvars,
									jib.params,
									jib.attributes
								);
		}
	});
};