var last_info = "none"; isNetscape=navigator.appName.indexOf("Netscape")!=-1; isExplorer=navigator.appName.indexOf("Explorer")!=-1; isOpera=navigator.appName.indexOf("Opera")!=-1; function switch_info(info) { document.getElementById(last_info).style.display = 'none'; document.getElementById(info).style.display = 'inline'; last_info = info; } function add_favorites(){ if(isNetscape){ window.sidebar.addPanel('Viloader.NET - Youtube, Google Video, Pornotube, Putfile, Dailymotion, Metacafe, Youporn, Ifilm-ko bideoak deskargatu, bilatu eta eraldatu...','http://www.viloader.net',''); } if(isExplorer){ window.external.AddFavorite('http://www.viloader.net','Viloader.NET - Youtube, Google Video, Pornotube, Putfile, Dailymotion, Metacafe, Youporn, Ifilm-ko bideoak deskargatu, bilatu eta eraldatu...'); } if(isOpera){ var mbm = document.createElement('a'); mbm.setAttribute('rel','sidebar'); mbm.setAttribute('href','http://www.viloader.net'); mbm.setAttribute('title','Viloader.NET - Youtube, Google Video, Pornotube, Putfile, Dailymotion, Metacafe, Youporn, Ifilm-ko bideoak deskargatu, bilatu eta eraldatu...'); mbm.click(); } } function search_index() { if(document.postSearch.tag.value!=""){ document.getElementById("indicator2").style.display="inline"; setTimeout('window.location = "http://search.viloader.net/?tag='+document.postSearch.tag.value+'&engine='+document.postSearch.site_search.value+'";', 3000); //window.location = "http://search.viloader.net/?tag="+document.postSearch.tag.value+"&engine="+document.postSearch.site_search.value; } if(document.postSearch.tag.value==""){ document.getElementById("tag").style.background = "#FCB1BD"; } } function search() { document.getElementById("results").innerHTML = ""; document.getElementById("indicator2").style.display="inline"; ajaxObj.abort_timeout = 30000; ajaxObj.format = "TEXT"; var form_vars = ajaxObj.getForm('postSearch'); ajaxObj.call('action=formSearch'+form_vars, showResults); } function view_download() { ajaxObj.abort_timeout = 30000; ajaxObj.format = "TEXT"; var form_vars = ajaxObj.getForm('postDownload'); ajaxObj.call('action=formDownload'+form_vars, showDownloadResults); } function showResults(resp) { if(!isExplorer && !isNetscape && !isOpera){ document.getElementById('indicator2').style.display="none"; document.getElementById('results').innerHTML = resp; }else{ opac = 0; document.getElementById('indicator2').style.display="none"; document.getElementById('results').innerHTML = resp; fadeIn('results'); hideLightbox(); } } function showDownloadResults(resp) { document.getElementById('indicator').style.display = "none"; document.getElementById('bannerAFF').style.display = "inline"; document.getElementById('results').style.display = "inline"; document.getElementById('results').innerHTML = unescape(resp); } function next(){ if(!isExplorer && !isNetscape && !isOpera){ document.getElementById("results").innerHTML = ""; document.getElementById("indicator2").style.display="inline"; }else{ showLightbox("results"); fadeOut('results'); } ajaxObj.abort_timeout = 30000; ajaxObj.format = "TEXT"; var form_vars = ajaxObj.getForm('postSearch'); ajaxObj.call('action=formSearch'+form_vars, showResults); } function fadeIn(obj) { if(opac < 100){ opac+=25; if(isExplorer) document.getElementById(obj).filters.alpha.opacity = opac; if(isNetscape) document.getElementById(obj).style.MozOpacity = opac/100; if(isOpera) document.getElementById(obj).style.MozOpacity = opac/100; setTimeout('fadeIn("'+obj+'")', 30); } } function fadeOut(obj) { if(opac > 0){ opac-=50; if(isExplorer) document.getElementById(obj).filters.alpha.opacity = opac; if(isNetscape) document.getElementById(obj).style.MozOpacity = opac/100; if(isOpera) document.getElementById(obj).style.MozOpacity = opac/100; setTimeout('fadeOut("'+obj+'")', 30); } } var mostrando=0; function shows(i,evt){ if(mostrando==0){ if(isExplorer){ document.getElementById("more"+i).style.left=document.body.scrollLeft+event.clientX-event.offsetX-205; document.getElementById("more"+i).style.top=document.body.scrollTop+event.clientY-event.offsetY+20; } if(isNetscape){ //document.getElementById("more"+i).style.left=document.body.scrollLeft+evt.clientX-227; document.getElementById("more"+i).style.right=187; //document.getElementById("more"+i).style.top=document.body.scrollTop+evt.clientY+15; document.getElementById("more"+i).style.bottom=-180; } if(isOpera){ document.getElementById("more"+i).style.left=document.body.scrollLeft+event.clientX-event.offsetX-221; document.getElementById("more"+i).style.top=document.body.scrollTop+event.clientY-event.offsetY+22; } opac = 0; fadeIn("more"+i); document.getElementById("more"+i).style.display='inline'; if(document.postSearch.site_search.value=="youtube"){ document.getElementById("youtube").style.display='inline'; } if(document.postSearch.site_search.value=="dalealplay"){ document.getElementById("dalealplay").style.display='inline'; } if(document.postSearch.site_search.value=="dailymotion"){ document.getElementById("dailymotion").style.display='inline'; } if(document.postSearch.site_search.value=="grinvi"){ document.getElementById("grinvi").style.display='inline'; } if(document.postSearch.site_search.value=="ifilm"){ document.getElementById("ifilm").style.display='inline'; } if(document.postSearch.site_search.value=="metacafe"){ document.getElementById("metacafe").style.display='inline'; } if(document.postSearch.site_search.value=="myspace"){ document.getElementById("myspace").style.display='inline'; } if(document.postSearch.site_search.value=="tutv"){ document.getElementById("tutv").style.display='inline'; } if(document.postSearch.site_search.value=="pornotube"){ document.getElementById("pornotube").style.display='inline'; } if(document.postSearch.site_search.value=="youporn"){ document.getElementById("youporn").style.display='inline'; } if(document.postSearch.site_search.value=="yuvutu"){ document.getElementById("yuvutu").style.display='inline'; } if(document.postSearch.site_search.value=="xtube"){ document.getElementById("xtube").style.display='inline'; } if(document.postSearch.site_search.value=="music"){ document.getElementById("music").style.display='inline'; } mostrando=1; } else{ hides(i); } } function hides(i){ document.getElementById(document.postSearch.site_search.value).style.display='none'; document.getElementById("more"+i).style.display='none'; mostrando=0; }