/*	SWF OBJECT QUEUE
	to control when objects are written in the document
*/

registerSWFObject = (function() {
	if(window.ActiveXObject) {
		var fobjs = {},
			called = false;
		
		function writeFObjects() {
			for(var id in fobjs) {
				 _proxy_jslib_handle( _proxy_jslib_handle(fobjs, (id), 0, 0), 'write', '', 1, 0)( id );
				 _proxy_jslib_handle(document, 'getElementById', '', 1, 0)( id ).style.visibility="visible";
			}
			fobjs = {};
			return true;
		}
				
		return function ( fobj, domID ) { // IE Active X
			
			if(!called) { //lazy init
				Event.observe(window, "load", writeFObjects);
				called = true;
			}
			
			 _proxy_jslib_handle(document, 'getElementById', '', 1, 0)(domID).style.visibility="hidden";
			
			 _proxy_jslib_assign('', fobjs, (domID), '=', ( fobj));
		};
	}
	return function( fobj, domtarg ) { // not IE Active X
		 _proxy_jslib_handle(fobj, 'write', '', 1, 0)( domtarg );
	};
})();

 _proxy_jslib_assign('', deconcept.SWFObject.prototype, 'write', '=', (  _proxy_jslib_handle(deconcept.SWFObject.prototype, 'write', '', 0, 0).wrap(function(proceed, elementId) {
	var render = proceed(elementId);
	
	if(render) {
		var elem = $(elementId);
		$(elem.ownerDocument||elem.document).fire("swfobject:rendered", {id: elementId});
	}							    
}))); ;
_proxy_jslib_flush_write_buffers() ;