var ytvbp={};ytvbp.MAX_RESULTS_LIST=5;ytvbp.PREVIOUS_PAGE_BUTTON="previousPageButton";ytvbp.NEXT_PAGE_BUTTON="nextPageButton";ytvbp.VIDEO_LIST_CONTAINER_DIV="searchResultsVideoList";ytvbp.VIDEO_PLAYER_DIV="videoPlayer";ytvbp.MAIN_SEARCH_CONTAINER_DIV="mainSearchBox";ytvbp.TOP_SEARCH_CONTAINER_DIV="searchBox";ytvbp.nextPage=2;ytvbp.previousPage=0;ytvbp.previousSearchTerm="";ytvbp.previousQueryType="all";ytvbp.listVideos=function(a,c,d){ytvbp.previousSearchTerm=c;ytvbp.previousQueryType=a;var b=ytvbp.MAX_RESULTS_LIST;var e=(((d-1)*ytvbp.MAX_RESULTS_LIST)+1);ytvbp.presentFeed(a,b,e,c);ytvbp.updateNavigation(d)};ytvbp.sendRequest=function(a,c,b){if(window.XMLHttpRequest){var d=new XMLHttpRequest()}else{var d=new ActiveXObject("MSXML2.XMLHTTP.3.0")}d.open("POST",a,true);d.setRequestHeader("Content-Type","application/x-www-form-urlencoded");d.onreadystatechange=function(){var e=document.getElementById(b);if(d.readyState==1){e.innerHTML="<b>Loading...</b>"}else{if(d.readyState==4&&d.status==200){if(d.responseText){e.innerHTML=d.responseText}}else{if(d.readyState==4){alert("Invalid response received - Status: "+d.status)}}}};d.send(c)};ytvbp.presentVideo=function(b,d){var c="queryType=show_video&videoId="+b;if(d==1){c+="&auto="+d}var a="ajax/aj_show_video.php";ytvbp.sendRequest(a,c,ytvbp.VIDEO_PLAYER_DIV)};
