﻿//function for writing dynamically Flash Items in order to avoid activating them first in IE via click
function ActivateFlashIE(width, height, bgcolor, wmode, movie, xml) {
    document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,79,0' width='" + width + "' height='" + height + "'>");
    document.write("<param name='width' value='" + width + "'>");
    document.write("<param name='height' value='" + height + "'>");
    document.write("<param name='movie' value=" + movie + ">");
    document.write("<param name='type' value='application/x-shockwave-flash'>");
    document.write("<param name='flashvars' value='" + xml + "'>");
    document.write("<param name='allowScriptAccess' value='sameDomain'>");
    document.write("<param name='bgcolor' value='" + bgcolor + "'>");
    document.write("<param name='pluginspage' value='http://www.macromedia.com/go/getflashplayer'>");
    document.write("<param name='quality' value='high'>");
    document.write("<param name='wmode' value='" + wmode + "'>");
    document.write("<embed src='" + movie + "' flashvars='" + xml + "' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer'  type='application/x-shockwave-flash' width='" + width + "' height='" + height + "'  wmode='" + wmode + "'></embed></object>");
}

hs.registerOverlay(
{
    thumbnailId: null,
    overlayId: 'controlbar',
    position: 'top right',
    hideOnMouseOut: true
}
        );

hs.graphicsDir = 'assets/js/highslide/graphics/';
hs.outlineType = 'rounded-white';
window.onload = function() {
    hs.preloadImages(5);
};
