jQuery.fn.exists=function(){return jQuery(this).length>0};$(document).ready(function(){$("#tabs").tabs();if(jQuery.url.segment(0)=="knowledge"){if(jQuery.url.segment(1).length>0){var c=" &raquo; <a class='caps' href='../'>"+jQuery.url.segment(1).replace(/_/g," ")+"</a> ";$("a.pkc-breadcrumb").after(c)}}var b=$("#ProductIndex");var a=$("div[id*=ContentMain_divPanelBar]");if((b.exists())&&(a.exists())){b.replaceWith(a.html());a.hide()}});function SelectTab(b){var a=$("#tabs").tabs();a.tabs("select",b);return false
}function updateHTML(a,b){document.getElementById(a).innerHTML=b}function setytplayerState(a){updateHTML("playerstate",a)}function onYouTubePlayerReady(a){ytplayer=document.getElementById("myytplayer");setInterval(updateytplayerInfo,250);updateytplayerInfo();ytplayer.addEventListener("onStateChange","onytplayerStateChange");ytplayer.addEventListener("onError","onPlayerError")}function onytplayerStateChange(a){setytplayerState(a)}function onPlayerError(a){alert("An error occured: "+a)}function updateytplayerInfo(){updateHTML("bytesloaded",getBytesLoaded());
updateHTML("bytestotal",getBytesTotal());updateHTML("videoduration",getDuration());updateHTML("videotime",getCurrentTime());updateHTML("startbytes",getStartBytes());updateHTML("volume",getVolume())}function loadNewVideo(b,a){if(ytplayer){ytplayer.loadVideoById(b,parseInt(a))}}function cueNewVideo(b,a){if(ytplayer){ytplayer.cueVideoById(b,a)}}function play(){if(ytplayer){ytplayer.playVideo()}}function pause(){if(ytplayer){ytplayer.pauseVideo()}}function stop(){if(ytplayer){ytplayer.stopVideo()}}function getPlayerState(){if(ytplayer){return ytplayer.getPlayerState()
}}function seekTo(a){if(ytplayer){ytplayer.seekTo(a,true)}}function getBytesLoaded(){if(ytplayer){return ytplayer.getVideoBytesLoaded()}}function getBytesTotal(){if(ytplayer){return ytplayer.getVideoBytesTotal()}}function getCurrentTime(){if(ytplayer){return ytplayer.getCurrentTime()}}function getDuration(){if(ytplayer){return ytplayer.getDuration()}}function getStartBytes(){if(ytplayer){return ytplayer.getVideoStartBytes()}}function mute(){if(ytplayer){ytplayer.mute()}}function unMute(){if(ytplayer){ytplayer.unMute()
}}function getEmbedCode(){alert(ytplayer.getVideoEmbedCode())}function getVideoUrl(){alert(ytplayer.getVideoUrl())}function setVolume(a){if(ytplayer){ytplayer.setVolume(a)}}function getVolume(){if(ytplayer){return ytplayer.getVolume()}}function clearVideo(){if(ytplayer){ytplayer.clearVideo()}};
