function setThumbImages(strImageMedium,strImageZoom)
{$('#product_img embed').remove();
if($('#product_img'))
{$('#img_border').show();$('#product_medium_image').show();$('.product_zoom_message').show();$('.gallery_img_options').show();$('#product_video_object').remove();}
if($('#product_gallery_img'))
{$('#product_gallery_img #product_medium_image').show();$('#product_gallery_img .product_zoom_message').show();$('#product_gallery_img .gallery_img_options').show();$('#product_gallery_img #product_video_object').remove();}
if($('#download_hires_link').length>0)
{$('#download_hires_link').attr('href',(strImageZoom!=""?strImageZoom:strImageMedium));}
if($('#product_medium_image')&&strImageMedium!="")
{$('#product_medium_image').attr("src",strImageMedium);$('.product_medium_image').attr("src",strImageMedium);}
if($('#product_zoom_image').hasClass('thickbox'))
{$('#product_zoom_image').attr("rel",strImageZoom);$('.product_zoom_image').attr("rel",strImageZoom);}
else
{if($('#product_zoom_image')&&strImageZoom!=""&&strImageZoom!="null")
{$('#product_zoom_image').attr("href",strImageZoom);$('.product_zoom_image').attr("href",strImageZoom);}
else
{$('#product_zoom_image').attr("href","#");$('.product_zoom_image').attr("href","#");}}}
function setVideoImage(strVideoLink)
{if(strVideoLink!="")
{if($('#product_img'))
{$('#img_border').hide();$('#product_video_object').remove();$('#product_img embed').remove();$('#product_medium_image').hide();$('.product_zoom_message').hide();$('.gallery_img_options').hide();$('#product_img').append('<object id="product_video_object" width="'+($('#product_medium_image').attr("width"))+'" height="'+($('#product_medium_image').attr("height"))+'"><param name="movie" value="http://www.youtube.com/v/'+strVideoLink+'&hl=en&fs=1&rel=0&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/'+strVideoLink+'&hl=en&fs=1&rel=0&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="'+($('#product_medium_image').attr("width"))+'" height="'+($('#product_medium_image').attr("height"))+'" wmode="transparent"></embed></object>');}
if($('#product_gallery_img'))
{$('#img_border').hide();$('#product_gallery_img #product_video_object').remove();$('#product_gallery_img #product_medium_image').hide();$('#product_gallery_img .product_zoom_message').hide();$('#product_gallery_img .gallery_img_options').hide();$('#product_gallery_img').append('<object id="product_video_object" width="'+($('#product_medium_image').attr("width"))+'" height="'+($('#product_medium_image').attr("height"))+'"><param name="movie" value="http://www.youtube.com/v/'+strVideoLink+'&hl=en&fs=1&rel=0&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/'+strVideoLink+'&hl=en&fs=1&rel=0&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="'+($('#product_medium_image').attr("width"))+'" height="'+($('#product_medium_image').attr("height"))+'" wmode="transparent"></embed></object>');}}
return false;}
function setVideoPlaylist(strVideoPlaylistLink)
{if(strVideoPlaylistLink!="")
{if($('#product_img'))
{$('#product_video_object').remove();$('#product_img embed').remove();$('#product_medium_image').hide();$('.product_zoom_message').hide();$('.gallery_img_options').hide();$('#product_img').append('<object id="product_video_object" width="'+($('#product_medium_image').attr("width"))+'" height="'+($('#product_medium_image').attr("height"))+'"><param name="movie" value="http://www.youtube.com/p/'+strVideoPlaylistLink+'&hl=en&fs=1&rel=0&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/p/'+strVideoPlaylistLink+'&hl=en&fs=1&rel=0&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="'+($('#product_medium_image').attr("width"))+'" height="'+($('#product_medium_image').attr("height"))+'" wmode="transparent"></embed></object>');}
if($('#product_gallery_img'))
{$('#product_gallery_img #product_video_object').remove();$('#product_gallery_img #product_medium_image').hide();$('#product_gallery_img .product_zoom_message').hide();$('#product_gallery_img .gallery_img_options').hide();$('#product_gallery_img').append('<object id="product_video_object" width="'+($('#product_medium_image').attr("width"))+'" height="'+($('#product_medium_image').attr("height"))+'"><param name="movie" value="http://www.youtube.com/p/'+strVideoPlaylistLink+'&hl=en&fs=1&rel=0&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/p/'+strVideoPlaylistLink+'&hl=en&fs=1&rel=0&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="'+($('#product_medium_image').attr("width"))+'" height="'+($('#product_medium_image').attr("height"))+'" wmode="transparent"></embed></object>');}}
return false;};
