IBSYS.using("media");IBSYS.media.genericFlash2={announceEventProxy:function(eventName,eventData){var e=new IBSYS.event.GlobalEvent(eventName,this);e.eventData=eventData;try{IBSYS.application.Application.announceEvent(e);}catch(err){IBSYS.log(err.message);}},init:function(el,config){var atts={id:el.id,quality:"high",bgcolor:config.background||"#FFFFFF"};if(config.style){atts.style=config.style;}if(config.preserveEl){var innerDiv=document.createElement("div");atts.id=innerDiv.id=el.id+"_swf";el.appendChild(innerDiv);}var width=config.width||400;var height=config.height||300;var params={allowScriptAccess:"always",allowFullScreen:"true",swLiveConnect:"true"};if(config.wmode){params.wmode=config.wmode;}var flashVars=config.flashVars||{};if(config.qsAppProps){this.parseQueryString(config.qsAppProps,function(n,v){v=IBSYS.application.Application.getProperty(v);if(v!=""){flashVars[n]=v;}});}if(config.qsPropPath){this.parseQueryString(config.qsPropPath,function(n,v){v=IBSYS.propPath(v);if(v!=""){flashVars[n]=v;}});}if(config.queryString){this.parseQueryString(config.queryString,function(n,v){flashVars[n]=v;});}flashVars.uniqueId=atts.id;swfobject.embedSWF(config.swfUrl,atts.id,width,height,"6.0.65","/_public/js/lib/swfobject_2.1/expressInstall.swf",flashVars,params,atts);},parseQueryString:function(qs,f){var nvPairs=qs.split("&");if(nvPairs.length>0){for(var i=0;i<nvPairs.length;i++){var nv=nvPairs[i].split("=");if(nv.length==2&&nv[0]!=""&&nv[1]!=""){f(nv[0],nv[1]);}}}}};
