var location_str = window.location.href
var pathname = window.location.pathname
if(document.getElementById('flashcontent')){  
  if(!Array.indexOf){
    Array.prototype.indexOf = function(obj){
     for(var i=0; i<this.length; i++){ if(this[i]==obj){ return i; } }
     return -1;
    }
  }
  if(pathname.indexOf('/frontend_dev.php') < 0){
    var exceptions = [
      '/'
    ]
    if((pathname.indexOf('/#')) < 0  && exceptions.indexOf(pathname) < 0)window.location = location_str.replace(/^(http:\/\/[^\/]+\/)(.*)$/, "$1#\/$2" )
    else{
      var so = new SWFObject('/miroslav.swf?'+ContentVersion.last_modified, 'flash_object', '100%', '100%', '9', '#ffffff', 'high', location.href);
      so.useExpressInstall('/expressinstall.swf');
      so.addParam('menu', 'false');
      so.addVariable('content_version', ContentVersion.version)
      so.addParam('AllowScriptAccess', 'always');
      so.addParam('allowFullScreen', 'true');
      
      if( so.write('flashcontent') )
      {
      	var macmousewheel = new SWFMacMouseWheel( so );
      }  
      document.getElementById('flashcontent').style.display = '';
    }
  }else{
    document.getElementById('flashcontent').style.display = '';
  }
}