if(mydays.moduleLoader.isRequired("flash")){$.fn.embedSWF=function(a){this.each(function(){mydays.flash.register(jQuery(this),a)});return this};mydays.flash={_oFlashVars:{},setFlashVars:function(c,b){var d="{";if(typeof b=="object"){var a=jQuery.extend(jQuery("#"+c).metadata(),b);jQuery.each(a,function(e,f){d+=e+": '"+f+"',"})}d=d.substring(0,d.lastIndexOf(","));d+="}";b=d;jQuery("#"+c).attr("class",b)},register:function(c,b){var a={};a.wmode="opaque";a.allowScriptAccess="sameDomain";if(c.metadata()&&c.metadata().basePath){a.base=c.metadata().basePath}if(c.metadata()&&c.metadata().bgcolor){a.bgcolor=c.metadata().bgcolor}c.each(function(){var d=c.uniqueID().attr("id");jQuery(this).metadata().color=mydays.colors.getColors();swfobject.embedSWF(b.sSwfPath,d,b.iWidth,b.iHeight,b.sRequiredFlashVersion,b.sExpressInstallPath,jQuery(this).metadata(),a);if(b.registerNavigationFade!==false){mydays.navigation.flash.registerFlashStage(d)}})}};jQuery(document).bind("colorsReady",function(){mydays.setup({__className:"flash"},function(){jQuery("#head:not(.no_flash)").embedSWF({sSwfPath:"/flash/header/header.swf",iWidth:969,iHeight:90,sRequiredFlashVersion:"9",sExpressInstallPath:""});jQuery("#splashstage:not(.no_flash)").embedSWF({sSwfPath:"/flash/home/home.swf",iWidth:773,iHeight:293,sRequiredFlashVersion:"9",sExpressInstallPath:"",registerNavigationFade:true});jQuery("#splashstage_small:not(.no_flash)").embedSWF({sSwfPath:"/flash/splashstage/category.swf",iWidth:773,iHeight:201,sRequiredFlashVersion:"9",sExpressInstallPath:"",registerNavigationFade:true});jQuery("#mediaplayer:not(.no_flash)").embedSWF({sSwfPath:"/flash/mediaplayer/main.swf",iWidth:773,iHeight:268,sRequiredFlashVersion:"9",sExpressInstallPath:"",registerNavigationFade:true});jQuery("#select_box_flash:not(.no_flash)").embedSWF({sSwfPath:"/flash/selectbox/box.swf",iWidth:773,iHeight:201,sRequiredFlashVersion:"9",sExpressInstallPath:"",registerNavigationFade:true})})})};
