function changeTab(_1,_2,_3,tr){
url="/?a=3&p=2&pid="+_2+"&tab="+_1+"&page="+_3+"&total_results="+tr;
var _5=new StarRequest(false,true);
_5.getURL(url,true,"comments_container");
}
function changeTabOverview(){
document.getElementById("tabs_overview").style.display="";
document.getElementById("tabs_video").style.display="none";
document.getElementById("tabs_blog").style.display="none";
document.getElementById("video_content").style.display="none";
document.getElementById("blog_content").style.display="none";
document.getElementById("description_content").style.display="";
document.getElementById("product_tabs").style.backgroundPosition="0 0";
}
function changeTabVideo(){
document.getElementById("tabs_overview").style.display="none";
document.getElementById("tabs_video").style.display="";
document.getElementById("tabs_blog").style.display="none";
document.getElementById("description_content").style.display="none";
document.getElementById("blog_content").style.display="none";
document.getElementById("video_content").style.display="";
document.getElementById("product_tabs").style.backgroundPosition="0 -38px";
}
function changeTabBlog(){
document.getElementById("tabs_overview").style.display="none";
document.getElementById("tabs_video").style.display="none";
document.getElementById("tabs_blog").style.display="";
document.getElementById("description_content").style.display="none";
document.getElementById("video_content").style.display="none";
document.getElementById("blog_content").style.display="";
document.getElementById("product_tabs").style.backgroundPosition="0 -76px";
}
function onYouTubePlayerReady(){
window.setTimeout(function(){
try{
document.getElementById("pp_ytapiplayer").addEventListener("onStateChange","onStateChange");
onStateChange(1);
}
catch(e){
}
},1000);
}
function onStateChange(_6){
var _7=document.getElementById("pp_ytapiplayer").getVideoUrl();
var id=_7.substring(31,42);
document.getElementById("video_title").innerHTML=document.getElementById("img_"+id).alt;
}
function insertVideo(_9){
document.getElementById("pp_ytPlayerContainer").innerHTML="<div id=\"pp_ytapiplayer\">You need Flash player 8+ and JavaScript enabled to view this video.</div>";
var _a={allowScriptAccess:"always"};
var _b={id:"pp_ytapiplayer"};
swfobject.embedSWF("http://www.youtube.com/v/"+_9+"&enablejsapi=1&playerapiid=ytplayer","pp_ytapiplayer","425","350","8",null,null,_a,_b);
}
function scrollVideosRight(){
var _c=document.getElementById("videosScroll").style.left;
var _d=parseInt(_c.substring(0,_c.indexOf("px")));
var _e=document.getElementById("videosScroll").style.width;
var _f=_d+parseInt(_e.substring(0,_e.indexOf("px")));
if(_f>(462+64)){
_d-=128;
_f-=128;
document.getElementById("videosScroll").style.left=_d+"px";
if(_d<-64){
document.getElementById("video_left_arrow").src=f8_callback_uri+"/a/c/images/video_left_active.gif";
}
if(_f>(462+64)){
document.getElementById("video_right_arrow").src=f8_callback_uri+"/a/c/images/video_right_active.gif";
}else{
document.getElementById("video_right_arrow").src=f8_callback_uri+"/a/c/images/video_right_inactive.gif";
}
}
}
function scrollVideosLeft(){
var _10=document.getElementById("videosScroll").style.left;
var _11=parseInt(_10.substring(0,_10.indexOf("px")));
var _12=document.getElementById("videosScroll").style.width;
var _13=_11+parseInt(_12.substring(0,_12.indexOf("px")));
if(_11<-64){
_11+=128;
_13+=128;
document.getElementById("videosScroll").style.left=_11+"px";
if(_11<-64){
document.getElementById("video_left_arrow").src=f8_callback_uri+"a/c/images/video_left_active.gif";
}else{
document.getElementById("video_left_arrow").src=f8_callback_uri+"a/c/images/video_left_inactive.gif";
}
}
if(_13>(335+64)){
document.getElementById("video_right_arrow").src=f8_callback_uri+"a/c/images/video_right_active.gif";
}
}
function searchBaseBlogs(pid){
document.getElementById("blogsResult").style.display="none";
document.getElementById("blogsResultLoading").style.display="";
var _15=new Object();
_15["pid"]=pid;
var _16=new StarRequest(false,true);
_16.onload=searchBlogsResult;
_16.getURL("/?a=3&p=3&pid="+pid,true,"blogsResult");
}
function searchBlogsResult(){
document.getElementById("blogsResultLoading").style.display="none";
document.getElementById("blogsResult").style.display="";
}

