function main(section){
  var location_str = window.location.href;
  var pathname = window.location.pathname;
  if(document.getElementById('flashcontent'))document.getElementById('flashcontent').style.display = '';
  if((pathname.indexOf('/#')) < 0 && pathname != '/' && pathname != '/frontend_dev.php/')window.location = location_str.replace(/(http:\/\/[^\/]+\/(frontend_dev\.php\/)?)(.*)/, "$1#\/$3" )
  else{
    var so = new SWFObject('/activegroup.swf', 'flash_object', '100%', '100%', '9', '#000000', 'high', location.href);
    so.useExpressInstall('/expressinstall.swf');
    so.addParam('menu', 'false');
    so.addParam('AllowScriptAccess', 'always');
    so.addParam('allowFullScreen', 'true');
    so.addVariable("section", section);
    so.addVariable('os', navigator.appVersion.indexOf("Mac")!=-1 ? "Mac" : 'Win')
  
    
    if(so.write('flashcontent')){
    	var macmousewheel = new SWFMacMouseWheel( so );
    }  
    document.getElementById('flashcontent').style.display = '';
  }
}
