$(document).ready(function(){var tam=$("#conteudo").height();$("#red").css("height",tam+24);$("#revista").css("height",tam+24);$("#fechar a").click(function(){$("#videos").css("display","none");$("#progAnt").removeClass("ativo");});});function verNav(){code=navigator.appName;versao=navigator.appVersion;if(code=="Microsoft Internet Explorer"){if(versao!="4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2)"){document.getElementById("parceiros2").style.display="block";}
else document.getElementById("parceiros").style.display="block";}
else document.getElementById("parceiros").style.display="block";}
$(document).ready(function(){var tam=document.body.offsetWidth;var arred=parseInt(tam/150);var rest=$("#aux li").length-arred;if(rest>0){$("#btEsq").click(function prev(){var left=parseInt(document.getElementById("aux").style.marginLeft);if(left!=0){var left=left+150;$("#listaVideos ul").css("margin-left",left);}});$("#btDir").click(function next(){var left2=parseInt(document.getElementById("aux").style.marginLeft);var tam=document.body.offsetWidth;var arred=parseInt(tam/150);var rest=$("#aux li").length-arred;var v=rest*150;if(left2<=0){var left2=parseInt(document.getElementById("aux").style.marginLeft);if(left2>-v){left2=left2-150;$("#listaVideos ul").css("margin-left",left2);}}
else
$("#listaVideos ul").css("margin-left","-150px");});}});function scroll(){xmlhttp=getXMLHTTP();conteudo=document.getElementById('respostaRevista');url='takvip/funcoes/carregarRevistas.php';xmlhttp.open("GET",url,true);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState<4)
conteudo.innerHTML="Carregando...";else if(xmlhttp.readyState==4)
conteudo.innerHTML=xmlhttp.responseText;carregarScroll();}
xmlhttp.send(null);}
function carregarScroll(){$(document).ready(function(){$('.scroll-pane').jScrollPane();});}
function carregarVideo(id,parte){xmlhttp=getXMLHTTP();conteudo=document.getElementById('videoExibicao');url='takvip/funcoes/carregarVideo.php?idVideo='+id+'&parte='+parte;xmlhttp.open("GET",url,true);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState<4)
conteudo.innerHTML="Carregando...";else if(xmlhttp.readyState==4){conteudo.innerHTML=xmlhttp.responseText;carregarLinksVideos(id,parte);}}
xmlhttp.send(null);}
function carregarLinksVideos(id,parte){xmlhttp=getXMLHTTP();cont=document.getElementById('linksVideos');url='takvip/funcoes/carregarLinksVideos.php?idVideo='+id+'&parte='+parte;xmlhttp.open("GET",url,true);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState<4)
cont.innerHTML="Carregando...";else if(xmlhttp.readyState==4)
cont.innerHTML=xmlhttp.responseText;}
xmlhttp.send(null);}
function carregarListaVideos(id,parte){xmlhttp=getXMLHTTP();cont=document.getElementById('aux');url='takvip/funcoes/carregarListaVideos.php?idVideo='+id;xmlhttp.open("GET",url,true);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState<4)
cont.innerHTML="Carregando...";else if(xmlhttp.readyState==4){cont.innerHTML=xmlhttp.responseText;carregarVideo(id,parte);}}
xmlhttp.send(null);}
