$(document).ready(function(){var a=swfobject.getFlashPlayerVersion();
if((a.major==0)||(a.major<8)){$(".video-alerts").html('To view the video version of this content you will need to  <a href="http://get.adobe.com/flashplayer/">install Adobe Flash Player</a>.')
}else{$(".video-alerts").hide();
$(".video-player span").each(function(d){var c=unescape($(this).attr("id").replace(/:/g,"%")).split(" ");
var b=$("#video-fields-"+c[3]);
$(b).hide();
$("#video-url-"+c[3]).val(c[0]);
$("#video-html-"+c[3]).val('<object width="'+c[1]+'" height="'+c[2]+'"><param name="movie" value="'+c[0]+'"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param>'+((c.length>=6)?'<param name="flashvars" value="'+c[5]+'">':"")+'<embed src="'+c[0]+'" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="'+c[1]+'" height="'+c[2]+((c.length>=6)?'" flashvars="'+c[5]+'">':"")+"</embed></object>");
if(c[4]=="1"){$("#video-caption-"+c[3]).after($('<p class="video-link"></p>').append($("<a>Embed this video</a>").click(function(){shareVideo(b)
})));
$(".video-fields fieldset").after($("<a><img src='/assets/images/buttons/btn-close-video.gif' alt='Close' /></a>").click(function(){$(b).slideUp()
}))
}var e={allowFullScreen:"true",allowScriptAccess:"always"};
if(c.length>=6){e.flashvars=c[5]
}swfobject.embedSWF(c[0],"video-"+c[3],c[1],c[2],"9.0.0","/assets/flash/expressInstall.swf",false,e,false)
})
}});
$(document).ready(function(){$("#video-content.lightbox #video-lightbox h2").prepend("<span id='help-close'><a href='#' class='close-player'>X</a></span>");
$("#video-content.lightbox, #video-content .video-container").hide();
$("#product-gallery a.thickbox").each(function(){var a=this.href;
var b=$(this).attr("id").replace(/video-link[-a-z]+/g,"");
a="#TB_inline?inlineId=video-content&amp;modal=true";
$(this).attr("href",a).click(function(){$("#video-content.lightbox").show();
$("#video-container-"+b).show()
})
});
$("#video-content.lightbox a.close-player").click(function(){$("#video-content.lightbox").hide();
$(".video-container").hide();
tb_remove();
return false
})
});
function shareVideo(a){if($(a).is(":hidden")){$(a).slideDown()
}else{$(a).slideUp()
}};
