//Note: this script uses jQuery, make sure the jQuery library is loaded before this script! ~/_scripts/jQuery.js
$(document).ready(function() {
    //var so = new SWFObject("/_flash/header_random.swf?Folder=../_images/HeaderSlideShow/" + GetCookie("Destination", "london") + "&Dest=" + GetCookie("Destination", "london"), "headerSWF", "645", "175", "7" );
    //    var so = new SWFObject("/_flash/header_random.swf?Folder=/_webdata/header-images-final/" + GetCookie("Destination", "london") + "&Dest=" + GetCookie("Destination", "london"), "headerSWF", "645", "175", "7");
    //    
    //    
    //    so.addParam("menu", "true");
    //    so.addParam("wmode", "transparent");
    //    so.addParam("scale", "noscale");
    //    so.write("FlashHeader");
    //});
});

function loadFlashHeader(destination) {
    var so = new SWFObject("/_flash/header_random.swf?Folder=/_webdata/header-images-final/" + destination + "&Dest=" + destination, "headerSWF", "645", "175", "7");
    
    so.addParam("menu", "true");
    so.addParam("wmode", "transparent");
    so.addParam("scale", "noscale");
    so.write("FlashHeader");
}