$(document).ready(function() {
var image = $(".BigProductImage img").attr('src');
image = image.replace('large','original');

$(".BigProductImage img").wrap('<a id="slidet" href=' + image + ' class="highslide" onclick="return hs.expand(this)"></a>');

$(".ProductThumbnailsBody img").bind("click", function(e){
var image2 = $(this).attr('src');
image2 = image2.replace('thumbs','original');
$("#slidet").attr("href",image2);
});

});
function openYouTube(opener) {
    var returnValue;

    if (/(iPhone|iPod|iPad)/.test(navigator.userAgent)) {
        opener.href = opener.href.replace('/v/', '/watch?v=');
        returnValue = true;
    }

    else returnValue = hs.htmlExpand(opener, {
        objectType: 'swf',
        objectWidth: 872,
        objectHeight: 514,
        width: 872,
        swfOptions: {
            params: {
                allowfullscreen: 'true'
            }
        },
        maincontentText: 'You need to upgrade your Flash player'
    });

    return returnValue;
}  
