hs.graphicsDir = 'highslide/graphics/';
hs.outlineType = 'rounded-white';
hs.outlineWhileAnimating = true;
hs.allowSizeReduction = false;
// always use this with flash, else the movie will be stopped on close:
hs.preserveContent = false;
hs.wrapperClassName = 'draggable-header no-footer';

function openYouTube(opener) {
        var returnValue;

        // Safari Mobile doesn't have Flash, so we just let the device use the built-in
        // YouTube viewer.
        if (/(iPhone|iPod|iPad)/.test(navigator.userAgent)) returnValue = true;

        else returnValue = hs.htmlExpand(opener, {
                objectType: 'swf',
                objectWidth: 480,
                objectHeight: 385,
                transitions: ['fade'],
                width: 480,
                outlineType: 'rounded-white',
                outlineWhileAnimating: true,
                allowSizeReduction: false,
                // always use this with flash, else the movie will be stopped on close:
                preserveContent: false,
                wrapperClassName: 'draggable-header no-footer',
                swfOptions: {
                        params: {
                                allowfullscreen: 'true'
                        }
                },
                maincontentText: 'You need to upgrade your Flash player'
        });

        return returnValue;
}


