// Created by Oscar (oscar@gluteus.se) 2009-06-17 at 14:36:17
// Last modified: 2010-06-17 at 21:05 - All of a sudden it is not possible to have a variable called "name" i Chrome. Changed "var name" to "var flashNames"

// randomize the start flash 
var flashNames = new Array('intro_kortlimo', 'intro_longlimo', 'intro_begbil', 'intro_ambulans');
var movie = new Array('fileadmin/flash/intro_kortlimo', 'fileadmin/flash/intro_longlimo', 'fileadmin/flash/intro_begbil', 'fileadmin/flash/intro_ambulans');
var rand=Math.floor(Math.random()*flashNames.length); // get a random number between 0 and size of array - 1
var code = "if (AC_FL_RunContent == 0) {alert('This page requires AC_RunActiveContent.js.');}else{AC_FL_RunContent('codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0','width', '1000','height', '386','src', '"+flashNames[rand]+"','quality', 'high','pluginspage', 'http://www.macromedia.com/go/getflashplayer','align', 'middle','play', 'true','loop', 'true','scale', 'showall','wmode', 'opaque','devicefont', 'false','id', 'scrolling_banner','bgcolor', '','name', '"+flashNames[rand]+"','menu', 'true','allowFullScreen', 'false','allowScriptAccess','sameDomain','movie', '"+movie[rand]+"','salign', '');}";
eval(code);