function loadPlayer(f,e,c,b,a,d){if(!d){d=false}jwplayer(f).setup({autoplay:d,"controlbar.position":getcontrolbar(a),backcolor:"003366",frontcolor:"ffffff",height:b,width:c,modes:[{type:"flash",src:"http://aws-cdn.hottopicmedia.com/global/static/media/jwplayer-"+getplayerversion()+".swf"},{type:"html5"},{type:"download"}]}).load(e)}function playVideo(d,b){var a=jwplayer(d),c;if(!b){b=0}if(a){if(a.getPlaylistItem().index==b){a.play(true)}else{a.playlistItem(b).play(true)}}}function playVideoStill(d,b){var a=jwplayer(d),c;if(!a||!a.getState()){$("#img-video-still-"+d).click()}else{playVideo(d,b)}}function writeVideo(f,e,c,b,a,d){document.write("<div class='videoPlayer' style='width:"+c+"px; height:"+b+"px;'><div id='"+f+"'><a href='http://get.adobe.com/flashplayer/' target='_blank'>Get the Flash Player</a> to watch this video.</div></div>");$(document).ready(function(){loadPlayer(f,e,c,b,a,d)})}function writeVideoStill(f,e,d,b,a){var c;if(e){if(!e.length){c=e.image}else{c=e[0].image}}if(!c){c=""}else{c="src='"+c+"' "}document.write("<div class='videoPlayer' style='width:"+d+"px; height:"+b+"px;'><div id='"+f+"'><img id='img-video-still-"+f+"' style='cursor:pointer;width:"+d+"px;height:"+b+"px;' "+c+"/></div></div>");$("#img-video-still-"+f).click(function(){loadPlayer(f,e,d,b,a,true)})}function getcontrolbar(b){var a;if(b===false){a="none"}else{if(b=="none"||b=="bottom"||b=="top"||b=="over"){a=b}else{a="over"}}return a}function getplayerversion(){var a="5.9";if(!a){a="5.7"}return a};
