
if (top.location != self.location) { top.location = self.location.href; }
function videohirdeto() {}
var SLsystem={

isdefined:function(variable) {
return (typeof(window[variable]) == "undefined")?  false: true;
},

setsessioncookie:function(cookieName, cookieValue) {
document.cookie = escape(cookieName) + "=" + escape(cookieValue) + "; path=/" + "; domain=.videohirdeto.info";
return true;
},

setsavedcookie:function (CookieName, CookieValue, periodType, offset) {

var expireDate = new Date ();
offset = offset / 1;
  
var myPeriodType = periodType;
switch (myPeriodType.toLowerCase()) {
case "years":
expireDate.setYear(expireDate.getFullYear()+offset);
break;
case "months":
expireDate.setMonth(expireDate.getMonth()+offset);
break;
case "days":
expireDate.setDate(expireDate.getDate()+offset);
break;
case "hours":
expireDate.setHours(expireDate.getHours()+offset);
break;
default:
expireDate.setMinutes(expireDate.getMinutes()+offset);
break;
} 
  
document.cookie = escape(CookieName ) + "=" + escape(CookieValue) + "; expires=" + expireDate.toGMTString() + "; path=/" + "; domain=.videohirdeto.info";
},

getcookievalue:function (cookieName) {
var exp = new RegExp (escape(cookieName) + "=([^;]+)");
if (exp.test (document.cookie + ";")) {
exp.exec (document.cookie + ";");
return unescape(RegExp.$1);
}
else return false;
},

deletecookie:function (cookieName) {
if (SLgetcookievalue (cookieName)) SLsetsavedcookie (cookieName,"0","years", -1);  
return true;     
},

loadedobjects:"-",
loadnext:"0",

extloadfile:function(fileType,fileName,requestType,loadAfter) {
if (!document.getElementById)
return
var fileref=""
if (this.loadedobjects.indexOf(fileName)==-1){
if (fileType=="js") {
fileref=document.createElement('script')
fileref.setAttribute("type","text/javascript");
fileref.setAttribute("src", fileName);
} else if (fileType=="css") {
fileref=document.createElement("link")
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", fileName);
} else if (fileType=="html" && requestType=="GET") {
//+ajax load get
} else if (fileType=="html" && requestType=="POST") {
//+ajax load post
} else if (fileType=="html" && requestType=="FILE") {
//+iframe load file
}
}
if (fileref!=""){
this.loadnext=loadAfter;
document.getElementsByTagName("head").item(0).appendChild(fileref)
this.loadedobjects+=fileName+" "
}

}


}

var SLmks={
megkereso:function() {
if (document.getElementById("VadSitesearchbox1").value.length>3) {
var word=this.makewords(document.getElementById("VadSitesearchbox1").value);
window.location="http://www.videohirdeto.hu/megkereso/--/0-0-"+word+"/";
}
},

keycheck:function(ev) {
var keyCode = ev.keyCode ? ev.keyCode : ev.which ? ev.which : ev.charCode;
if(keyCode==13){
MEGKERESO.start();
return false;
} else {
return true;
}
},

makewords:function(inp) {
var a=new Array(" ","-","/","_",":",".","&","\"","'","+","!","%","=","(",")","{","[","]","}","@","#","<",">","?",";","*","\\");
var result=inp;
var c="";
for (var b=0;b<a.length;b++) {
if (result.indexOf(a[b])!=-1) {
c=eval("/"+a[b]+"/g");
result=result.replace(c, ",");
}
}
var i=eval("/"+decodeURI("%C5%90")+"/g");
result=result.replace(i, "&&336;");
i=eval("/"+decodeURI("%C5%91")+"/g");
result=result.replace(i, "&&337;");
i=eval("/"+decodeURI("%C5%B0")+"/g");
result=result.replace(i, "&&368;");
i=eval("/"+decodeURI("%C5%B1")+"/g");
result=result.replace(i, "&&369;");
result=encodeURIComponent(result);
return result;
}

}

var Vsystem={
"limits":{
"listmax":{"0":"20","1":"30","2":"40"}
},
"defaults":{
"listlength":{"0":"10","1":"30","2":"30"}
},
"values":{
"type":0,"cat":0,"sub":0,"title":document.title
},

updatedeafults:function() {

}

}

var Vsite={
sitevars:{"veiltimera":0,"veiltimerb":0,"curscrollx":0,"curscrolly":0,"all":"VadCatAdsbody","tipcnt":1},

initialize:function(div, url, widths, heights, scrollings, vspaces, hspaces) {  
if (document.getElementById("IF_"+div)) {
dropid("IF_"+div);
}
var JSiframe=document.createElement("IFRAME");  
JSiframe.id="IF_"+div;  
JSiframe.name="IF_"+div;
JSiframe.src=url;
JSiframe.width=widths;
JSiframe.height=heights;
JSiframe.frameBorder="0"
JSiframe.border="0"
JSiframe.scrolling=scrollings
JSiframe.marginWidth="0"
JSiframe.marginHeight="0"
JSiframe.vspace=vspaces;
JSiframe.hspace=hspaces;
document.getElementById(div).appendChild(JSiframe);
},

dropid:function(div) {
var Node = document.getElementById(div);
Node.parentNode.removeChild(Node);
},

nexttipp:function(div) {
this.dropid("IF_"+div);
this.sitevars.tipcnt++;
this.initialize(div,"http://q--sla.videohirdeto.hu/engines/showtipp/cat/"+this.sitevars.tipcnt+"/0/","750", "60","no", 1, 1);
},

VheadstatusBG:{"1":0,"2":0,"3":0},

headbuttonanimate:function(button) {
var b=0;
var c=50;
document.getElementById("Vheadbutton"+button+"a").style.filter="wave(add=false, freq=1, light=5, phase=1, strength=3)";
for (var a=1;a<10;a++) {
setTimeout("if(Vsite.VheadstatusBG["+button+"]==1) {document.getElementById('Vheadbutton"+button+"a').style.filter='wave(add=false, freq="+a+", light=5, phase=5, strength=3)'}",b);
setTimeout("if(Vsite.VheadstatusBG["+button+"]==1) {document.getElementById('Vheadbutton"+button+"').style.filter='progid:DXImageTransform.Microsoft.alpha(opacity="+c+");opacity:"+c/100+"';}",b);
b=b+100;
c=c+(50/10);
}
for (a;a>=0;a--) {
setTimeout("if(Vsite.VheadstatusBG["+button+"]==1) {document.getElementById('Vheadbutton"+button+"a').style.filter='wave(add=false, freq="+a+", light=5, phase=5, strength=3)'}",b);
b=b+100;
}
//setTimeout("if(Vsite.VheadstatusBG["+button+"]==1) {document.getElementById('Vheadbutton"+button+"a').style.filter=''}",b);
},

headbutton:function(button,type,dir) {
switch (type) {
case 0:
document.getElementById("Vheadbutton"+button).className="Vheadbutton"+dir+button;
if (dir==1) {
document.getElementById("soundeffect").src="";
document.getElementById("soundeffect").src="http://www.videohirdeto.hu/solutionlive/imglib/button1.wav";
this.VheadstatusBG[button]=1;
this.headbuttonanimate(button);
} else {
this.VheadstatusBG[button]=0;
document.getElementById("Vheadbutton"+button+"a").style.filter="";
document.getElementById("Vheadbutton"+button).style.filter="";
}
break;
case 2:
this.headbutton(button,0,0);
window.location=document.getElementById("Vheadbutton"+button+"a").href;
break;
}
},

loadpin:function(type) {
if (SLsystem.isdefined("SLVADPIN")) {
var a="";
for (var b in SLVADPIN.cat) {
a=a+"<a href=\"/"+b+"/\">"+SLVADPIN.cat[b]+"</a>";
}
if (a.length>1) {
a="<div class=\"Vpincat\">Info témák:"+a+"</div>";
}
var c="";
for (var d in SLVADPIN.cnt) {
c=c+"<a href=\""+SLVADPIN.cnt[d]+"\">"+d+"</a>";
}
if (c.length>1) {
c="<div class=\"Vpincnt\">Fontos információk:"+c+"</div>";
}
a=a+"<br>"+c;
if (a.length>1) {
document.getElementById("VCatAdslist2").innerHTML=a;
} else {
document.getElementById("VCatAdslist2").style.display="none";
}
} else if (type==0) {
setTimeout("Vsite.loadpin(1)",5000);
}
},

loadcat:function(type) {
if (SLsystem.isdefined("SLVADL0")) {
var b="";
var video="";
for (var a=1;a<101;a++) {
video="";
if (SLVADL0[a]) {
if (SLVADL0[a]["video"]==1) {
video="&#160;<img src=\"http://q--sli0.videohirdeto.hu/videoblog.gif\" width=\"25px\" height=\"25px\" border=\"0\">&#160;";
}
if (!SLVADL0[a]["INFOcat"]) {
SLVADL0[a]["INFOcat"]="altalanos";
}
if ("cnt"=="start") {
var intro=SLVADL0[a]["intro"].substring(0,59);
b=b+"<br><div class=\"Vcatitm\"><a href=\"/"+SLVADL0[a]["INFOcat"]+"/"+SLVADL0[a]["id"]+".blog\"><img src=\"http://q--sli0.videohirdeto.hu/readblog.png\" width=\"25px\" height=\"25px\" border=\"0\"></a>"+video+"&#160;<span>"+SLVADL0[a]["title"]+"</span><br>"+intro+"&#160;<span><a href=\"/"+SLVADL0[a]["INFOcat"]+"/"+SLVADL0[a]["id"]+".blog\">tovább...</a></span></div>";
} else {

var href="/"+SLVADL0[a]["INFOcat"]+"/"+SLVADL0[a]["id"]+".blog";
if ("hatekonysag"=="hirdessvideon") {
href="http://www.hirdessvideon.hu/"+SLVADL0[a]["id"]+".cikk";
}
b=b+"<br><div class=\"Vcatitm\"><a href=\"/"+SLVADL0[a]["INFOcat"]+"/"+SLVADL0[a]["id"]+".blog\"><img src=\"http://q--sli0.videohirdeto.hu/readblog.png\" width=\"25px\" height=\"25px\" border=\"0\"></a>"+video+"&#160;<span>"+SLVADL0[a]["title"]+"</span><br>"+SLVADL0[a]["intro"]+"&#160;<span><a href=\""+href+"\">tovább...</a></span></div>";
}
}
}
if (b.length>0) {
document.getElementById("VCatAdslist1").innerHTML=b;
} else {
document.getElementById("VCatAdslist1").innerHTML="Ebben a kategóriában nincs bejegyzés!";
}
} else if (type==0) {
setTimeout("Vsite.loadcat(1)",5000);
}
},

search:{

doonenter:function(ev, funct) {
var keyCode = ev.keyCode ? ev.keyCode : ev.which ? ev.which : ev.charCode;
if(keyCode==13){
eval(funct);
return false;
} else {
return true;
}
}

}

};

var Vsitestart={

}

var Vsiteload= {

}

function loading() {

}

function reloading() {
if ("cnt"=="start" || "cnt"=="cnt"|| "cnt"=="right" || "cnt"=="art") {
VADp.startadplay();
}
if ("cnt"!="right" && "cnt"!="art") {
Vsite.loadpin(0);
} else {

}
if ("cnt"=="cat" || "cnt"=="start") {
Vsite.loadcat(0);
}
}


var Vstart=0;

var VADp={
finishadload:function(adid) {
Vadlist.SLPdata.listcount++;
Vadlist.SLPBox=2;
Vadlist.SLPlist['hatekonysag']=9;
VSLPs.aditem[adid]=eval("SLVADV"+adid);
Vadlist.SLPlist[adid]=1;
Vadlist.SLPlisting[adid]=Vadlist.SLPdata.listcount;
//check cat+sub
Vstart=adid;
Doaftershow="VadPupListclose();videohirdeto()";
},
startadplay:function() {
if (Vstart>1) {
document.getElementById("VadTopContainercnt").innerHTML=VSLPs.container.viewer;
VSLPs.insertplayer(Vstart);
VSLPs.setnextprev(Vstart);
VSLPs.loadadtoviewer(Vstart);
//Vhideveil();
//VshowTopbox("a",1,0,0,1,1);
//document.getElementById("VadTopContainernav").style.display="none";
//document.getElementById("VadTopContainervadc").style.display="block";
//document.getElementById("VadTopContainervadp").style.display="block";
//document.getElementById("VadPupList").style.zIndex=96;
//document.getElementById("VadPupListcnt").style.zIndex=97;
//Doaftercats="VADp.openvideo()";
Vadlist.SLPBox=1;
}
},
closevideo:function() {
if (VSLPs.controlcheck("Pause") && this.playstatus!=2) {
document.getElementById("SLMediaPlayer").controls.pause();
document.getElementById("SLPPvcPlaybtn").src="http://q--sli0.videohirdeto.hu/VP/playnow.gif";
this.playstatus=4;
}
document.getElementById("SLMediaPlayer").uiMode="invisible"
},
openvideo:function() {
if (VSLPs.controlcheck("Play") && this.playstatus==4) {
document.getElementById("SLMediaPlayer").controls.play();
document.getElementById("SLPPvcPlaybtn").src="http://q--sli0.videohirdeto.hu/VP/pausenow.gif";
this.playstatus=1;
}
document.getElementById("SLMediaPlayer").uiMode="none"
},
noadshow:function() {
alert('A keresett hirdetés nem található, vagy lejárt');
}
}

var Vpage={

sendmessage:function() {
var err="";
var ecnt=0;
if (document.getElementById("CNTorder").checked || document.getElementById("CNTinterest").checked) {
if (document.getElementById("CNTemail").value.length>5 || document.getElementById("CNTphone").value.length>6) {
if (!document.getElementById("CNTcallback").checked || (document.getElementById("CNTcallback").checked && document.getElementById("CNTphone").value.length>6)) {

} else {
err=", Visszahíváshoz a telefonszámot meg kell adni"+err;
ecnt++;
}
if (document.getElementById("CNTemail").value.length>5) {
if (document.getElementById("CNTemail").value.indexOf("@")!=-1 && document.getElementById("CNTemail").value.indexOf("@")<document.getElementById("CNTemail").value.lastIndexOf(".")) {

} else {
err=", Az emailcím hibás"+err;
ecnt++;
}
}
if (!document.getElementById("CNTcallback").checked && document.getElementById("CNTtext").value.length>1) {

} else {
err=", Kérjük írjon üzenetet (megrendelés / kérdés)"+err;
ecnt++;
}
} else {
err=", Elérhetöséget meg kell adni"+err;
ecnt++;
}
} else {
err="megkeresés típusa (megrendelés / érdeklödés)"+err;
ecnt++;
}
if (ecnt==0) {
var ready=false;
var o="";
if (document.getElementById("CNTorder").checked) {
document.getElementById("CNTsubject").value=document.getElementById("CNTcontacting").title;
ready=confirm("Ön most megrendeli az alabbi szolgáltatást\n\n"+document.getElementById("CNTcontacting").title);
o="MEGRENDELÉS: "+document.getElementById("CNTcontacting").title+"\n\n";
} else {
ready=true;
}
if (ready) {
document.getElementById("CNTtext").value=o+document.getElementById("CNTtext").value;
document.getElementById("CNTpage").value=document.location.href;
document.getElementById("CNTcontacting").submit();
}
} else {
alert("Kitöltési híbák, kérjük javítsa!\n\n("+err+")");
}
},

download:function(nums) {
if (nums) {
window.location.href="http://www.videohirdeto.hu/solutionlive/dnldlib/"+document.getElementById("CNTdnld"+nums).value+".pdf";
}
}

}

var Vadlist={

"SLP":0,
"SLPAdbox":0,
"SLPBox":0,
"SLPdata":{"listcount":0,"savedcount":0},
"SLPlist":{},
"SLPlisting":{},
"listcur":{},
"listnext":{},
"listprev":{},
"now":{"next":0,"prev":0,"vadid":0,"islast":0},
"Adlist":{},
"checks":{},
"returnUrl":"0",
"pagelength":10,

//-----------------------------

getlists:function(type,from,to) {
var call=Vsite.sitevars.cat+"-"+Vsite.sitevars.sub+"-"+Vsite.sitevars.cal;
var cache=Math.random()*10000;
cache=Math.round(cache);
if ("cnt"=="cat") {
var listfile="http://q--ld0.videohirdeto.info/loadlist/"+call+"/"+type+","+from+","+to+"/filmhirado.sljx?"+cache;
} else {
call="hatekonysag";
var types="cnt";
var listfile="http://q--ld0.videohirdeto.info/loadlist/"+call+"/"+types+","+from+","+to+"/filmhirado.sljx?"+cache;
}
SLsystem.extloadfile("js",listfile,"GET","0");
document.getElementById(Vsite.sitevars[type]+"cntload").style.display="block";
this.checks[type+"-"+from+"_"+to]=setTimeout("Vadlist.checkloadlist('"+type+"',"+from+","+to+")",30000);
},

checkloadlist:function(type,from,to) {
document.getElementById(Vsite.sitevars[type]+"cntload").style.display="none";
document.getElementById(Vsite.sitevars[type]+"cntno").style.display="none";
document.getElementById(Vsite.sitevars[type]+"cnterr").style.display="block";
},

loadlist:function(type,from,to) {
clearTimeout(this.checks[type+"-"+from+"_"+to]);
if (!this.Adlist["A"+type]) {
this.Adlist["A"+type]={};
}
var topage=to/Vadlist.pagelength;
topage=Math.round(topage);
document.getElementById(Vsite.sitevars[type]+"cntload").style.display="none";
document.getElementById(Vsite.sitevars[type]+"cntno").style.display="none";
document.getElementById(Vsite.sitevars[type]+"cnterr").style.display="none";
//this.listcur["A"+type]["ads"][topage]={};
for (var c=from;c<=to;c++) {
if (eval("SLVADL"+type+"_"+from+"_"+to+"["+c+"]")) {
eval("Vadlist.Adlist.A"+type+"["+c+"]=SLVADL"+type+"_"+from+"_"+to+"["+c+"];");
}
}
//create div
if (!document.getElementById(Vsite.sitevars[type]+"cnt"+topage)) {
document.getElementById(Vsite.sitevars[type]+"cnt").innerHTML=document.getElementById(Vsite.sitevars[type]+"cnt").innerHTML+"<div id=\""+Vsite.sitevars[type]+"cnt"+topage+"\" style=\"display:none\"></div>";
}
//get cnt 2 div
var content="";
var count=0
for (var d=from;d<=to;d++) {
//if (!this.Adlist["A"+type][d]["status"]) {
//this.Adlist["A"+type][d]["status"]=1;
//}
//["id"]
if (this.Adlist["A"+type][d]) {
content=content+this.makeadbox(type, d,topage);
}
}
if (content.length>0) {
document.getElementById(Vsite.sitevars[type]+"cnt"+topage).innerHTML=content;
//hide msg
document.getElementById(Vsite.sitevars[type]+"cnt"+topage).style.display="block";
document.getElementById(Vsite.sitevars[type]+"cntload").style.display="none";
document.getElementById(Vsite.sitevars[type]+"cntno").style.display="none";
document.getElementById(Vsite.sitevars[type]+"cnterr").style.display="none";
} else {
document.getElementById(Vsite.sitevars[type]+"cnt"+topage).style.display="none";
document.getElementById(Vsite.sitevars[type]+"cntload").style.display="none";
document.getElementById(Vsite.sitevars[type]+"cntno").style.display="none";
document.getElementById(Vsite.sitevars[type]+"cnterr").style.display="block";
}
},

loadnolist:function(type,from,to) {
//0-0: not loaded
//alert('Server Installáció Folyamatban! (0/'+Vstatus.list["all"]+')');
//var topage=to/Vadlist.pagelength;
//topage=Math.round(topage);
//if (document.getElementById(Vsite.sitevars[type]+"cnt"+topage)) {
//document.getElementById(Vsite.sitevars[type]+"cnt"+topage).style.display="none";
//}
//document.getElementById(Vsite.sitevars[type]+"cntload").style.display="none";
//document.getElementById(Vsite.sitevars[type]+"cntno").style.display="block";
//document.getElementById(Vsite.sitevars[type]+"cnterr").style.display="none";
},

showpagination:function(type,amount) {

var pagenum=Math.ceil(amount/this.pagelength);
var divname=type;
if (pagenum>1) {
var paginatet="<ul><li class=\"VadPagenavNxt\" onclick=\"Vadlist.switchpagination('"+type+"', Vadlist.listprev['A"+type+"']['page'])\" id=\"paginatet_"+divname+"_S\" title=\"elöző oldal\"> < </li> Oldalak: <li class=\"VadPagenavCur\" onclick=\"Vadlist.switchpagination('"+type+"', '1')\"  id=\"paginatet_"+divname+"_1\">1</li>";
var paginateb="<ul><li class=\"VadPagenavNxt\" onclick=\"Vadlist.switchpagination('"+type+"', Vadlist.listprev['A"+type+"']['page'])\" id=\"paginateb_"+divname+"_S\" title=\"elöző oldal\"> < </li> Oldalak: <li class=\"VadPagenavCur\" onclick=\"Vadlist.switchpagination('"+type+"', '1')\" id=\"paginateb_"+divname+"_1\">1</li>";
for (var i=2;i<=pagenum;i++) {
paginatet=paginatet+"<li class=\"VadPagenavAll\" onclick=\"Vadlist.switchpagination('"+type+"', '"+i+"')\" id=\"paginatet_"+divname+"_"+i+"\">"+i+"</li>";
paginateb=paginateb+"<li class=\"VadPagenavAll\" onclick=\"Vadlist.switchpagination('"+type+"', '"+i+"')\" id=\"paginateb_"+divname+"_"+i+"\">"+i+"</li>";
}
paginatet=paginatet+"<li class=\"VadPagenavNxt\" onclick=\"Vadlist.switchpagination('"+type+"', Vadlist.listnext['A"+type+"']['page'])\" id=\"paginatet_"+divname+"_E\" title=\"következő oldal\"> > </li></ul>";
paginateb=paginateb+"<li class=\"VadPagenavNxt\" onclick=\"Vadlist.switchpagination('"+type+"', Vadlist.listnext['A"+type+"']['page'])\" id=\"paginateb_"+divname+"_E\" title=\"következő oldal\"> > </li></ul>";
document.getElementById(Vsite.sitevars[type]+'top').innerHTML=paginatet;
document.getElementById(Vsite.sitevars[type]+'btm').innerHTML=paginateb;
document.getElementById('paginatet_'+divname+'_S').style.display="none";
document.getElementById('paginateb_'+divname+'_S').style.display="none";
document.getElementById(Vsite.sitevars[type]+'top').style.display="inline";
document.getElementById(Vsite.sitevars[type]+'btm').style.display="inline";
this.listcur["A"+type]["page"]=1;
this.listcur["A"+type]["all"]=pagenum;
this.listnext["A"+type]["page"]=1;
this.listprev["A"+type]["page"]=pagenum;
if (pagenum>1) {
this.listnext["A"+type]["page"]++;
if (this.listnext["A"+type]["page"]>pagenum) {
this.listnext["A"+type]["page"]=1;
}
}
//this.switchpagination(type, this.listcur["A"+type]["page"]);
}


},

switchpagination:function(type, topage) {
if (topage<=this.listcur["A"+type]["all"]) {
var to=this.pagelength*topage;
var from=to-this.pagelength+1;
document.getElementById(Vsite.sitevars[type]+"cnt"+this.listcur["A"+type]["page"]).style.display="none";
if (this.Adlist["A"+type][from]) {
document.getElementById(Vsite.sitevars[type]+"cnt"+topage).style.display="block";
} else {
this.listcur["A"+type]["ads"][topage]={};
this.getlists(type,from,to);
document.getElementById(Vsite.sitevars[type]+"cntload").style.display="block";
}
this.listcur["A"+type]["page"]=topage;
this.listnext["A"+type]["page"]++;
this.listprev["A"+type]["page"]--;
if (this.listnext["A"+type]["page"]>this.listcur["A"+type]["all"]) {
this.listnext["A"+type]["page"]=1;
}
if (this.listprev["A"+type]["page"]<1) {
this.listnext["A"+type]["page"]=this.listcur["A"+type]["all"];
}
}
var divname=type;
if (this.listcur["A"+type]["all"]>1) {
if (topage==1) {
document.getElementById('paginatet_'+divname+'_S').style.display="none";
document.getElementById('paginateb_'+divname+'_S').style.display="none";
} else {
document.getElementById('paginatet_'+divname+'_S').style.display="inline";
document.getElementById('paginateb_'+divname+'_S').style.display="inline";
}
if (topage==this.listcur["A"+type]["all"]) {
document.getElementById('paginatet_'+divname+'_E').style.display="none";
document.getElementById('paginateb_'+divname+'_E').style.display="none";
} else {
document.getElementById('paginatet_'+divname+'_E').style.display="inline";
document.getElementById('paginateb_'+divname+'_E').style.display="inline";
}
for (var i=1;i<=this.listcur["A"+type]["all"];i++) {
if (document.getElementById('paginatet_'+divname+'_'+i)) {
document.getElementById('paginatet_'+divname+'_'+i).className="VadPagenavAll";
}
if (document.getElementById('paginateb_'+divname+'_'+i)) {
document.getElementById('paginateb_'+divname+'_'+i).className="VadPagenavAll";
}
}
if (document.getElementById('paginatet_'+divname+'_'+this.listcur["A"+type]["page"])) {
document.getElementById('paginatet_'+divname+'_'+topage).className="VadPagenavCur";
document.getElementById('paginateb_'+divname+'_'+topage).className="VadPagenavCur";
}
}

},

makedate:function(str) {
var newdate="";
var adate=new Array();
adate[""]='Ma';
adate[""]='Holnap';
adate[""]='Tegnap';
if (adate[str]) {
newdate=adate[str];
} else {
var year=str.substring(0, 4);
var month=str.substring(4, 6);
var day=str.substring(6, 8);
newdate=year+"."+month+"."+day+".";
return newdate;
}
},

makeadbox:function(type, count, page) {
var result="";
if (this.Adlist["A"+type][count]) {
if (this.Adlist["A"+type][count]["id"]) {
if (!Vadlist.listcur["del"][this.Adlist["A"+type][count]["id"]] || Vadlist.listcur["del"][this.Adlist["A"+type][count]["id"]]!=this.Adlist["A"+type][count]["id"]) {
//Vadlist.listcur["A"+type]["ads"][page][this.Adlist["A"+type][count]["id"]]=1;
var adimg="http://q--med.videohirdeto.hu/img/"+this.Adlist["A"+type][count].videoimg;
var height=130;
var corpmore="";
if (this.Adlist["A"+type][count].usertype!=10) {
corpmore="<tr><td align=\"right\" valign=\"top\" class=\"\">&#160;</td><td align=\"left\" valign=\"top\" class=\"\" colspan=\"3\">--mr--</td></tr>";
height=180;
adimg="http://q--med.videohirdeto.hu/img/"+this.Adlist["A"+type][count].videoimg;
}
if ("cnt"=="xadv") {
height=180;
}
var totop="<a href=\"javascript:videohirdeto()\" onclick=\"Vadlist.adboxaction.totop("+this.Adlist["A"+type][count]["id"]+")\" title=\"Előrehelyezés\"><img src=\"http://q--sli0.videohirdeto.hu/cat/adlistbox/totop.png\" border=\"0\" width=\"30\" height=\"30\"></a>";
var toextra="<a href=\"javascript:videohirdeto()\" onclick=\"Vadlist.adboxaction.toextra("+this.Adlist["A"+type][count]["id"]+")\" title=\"Kiemelés\"><img src=\"http://q--sli0.videohirdeto.hu/cat/adlistbox/toextra.png\" border=\"0\" width=\"30\" height=\"30\"></a>";
var toid=this.Adlist["A"+type][count]["id"].substring(5,10);
if (this.Adlist["A"+type][count].top!=0 || toid>86400) {
totop="<img src=\"http://q--sli0.videohirdeto.hu/cat/adlistbox/istop.png\" border=\"0\" width=\"30\" height=\"30\">";
}
if (this.Adlist["A"+type][count].extra!=0 || toid>86400) {
toextra="<img src=\"http://q--sli0.videohirdeto.hu/cat/adlistbox/isextra.png\" border=\"0\" width=\"30\" height=\"30\">";
}
var showad="VIDEÓ > >";
var showadtitle="Videó";
var showadclass="VAdboxshow";
if (this.Adlist["A"+type][count].video==0) {
showad="KÉP > > ";
showadtitle="Kép";
showadclass=showadclass+"a";
if (this.Adlist["A"+type][count].image>1) {
showad="KÉPEK > > ";
showadtitle="Képek";
}
} else if(this.Adlist["A"+type][count].image>0) {
showadtitle="Videó és Kép";
}
adimg="<img src=\""+adimg+"\" border=\"0\" width=\"120px\" height=\"90px\"><div class=\""+showadclass+"\" title=\""+showadtitle+"\">"+showad+"</div>";
if (this.Adlist["A"+type][count].video==0 && this.Adlist["A"+type][count].image==0) {
adimg="&#160;";
}
var sum="";
if (this.Adlist["A"+type][count].attr){
var attr=this.Adlist["A"+type][count].attr.split(",");
for (var a=0;a<attr.length;a++) {
sum=sum+"&#160;<a href=\"javascript:videohirdeto()\" onclick=\"Vadlist.adboxaction.showattr("+this.Adlist["A"+type][count].attr[a]+")\">"+this.Adlist["A"+type][count].attr[a]+"</a>";
}
sum="<div class=\"VAdboxattr\">"+sum+"</div>";
}
//"+this.Adlist["A"+type][count].price+"

//sum="<div class=\"VAdboxdata\"><span>Hirdető:&#160;<a href=\"javascript:videohirdeto()\" onclick=\"Vadlist.adboxaction.userpage("+this.Adlist["A"+type][count].usertype+","+this.Adlist["A"+type][count]["id"]+")\">"+this.Adlist["A"+type][count].user+"</a></span>&#160;::&#160;Feladva:&#160;"+this.makedate(this.Adlist["A"+type][count].start)+"&#160;::&#160;Lejár:&#160;"+this.makedate(this.Adlist["A"+type][count].start)+"&#160;::&#160;Ár:&#160;hamarosan</div>"+sum;

var specclass=(this.Adlist["A"+type][count].usertype/1)+(this.Adlist["A"+type][count].extra/1);

var addbtn="&#160;";
var viewbtn="<a href=\"javascript:videohirdeto()\" onclick=\"Vadlist.adboxaction.view("+this.Adlist["A"+type][count]["id"]+", this)\" class=\"Vadboxtopbtn\" title=\"lejátszás és saját listába gyüjtés\"><img src=\"http://q--sli0.videohirdeto.hu/cat/adlistbox/playnow.png\" border=\"0\" width=\"30\" height=\"25\" id=\"Adview"+type+this.Adlist["A"+type][count]["id"]+"\"><span>MEGTEKINTÉS</span></a>";
var aid=this.Adlist["A"+type][count]["id"];
aid=aid.substring(5,10);
if (aid>86400) {
var viewbtn="<a href=\"javascript:videohirdeto()\" onclick=\"Vadlist.adboxaction.view("+this.Adlist["A"+type][count]["id"]+", this)\" class=\"Vadboxtopbtn\" title=\"lejátszás és saját listába gyüjtés\"><img src=\"http://q--sli0.videohirdeto.hu/cat/adlistbox/playnow.png\" border=\"0\" width=\"30\" height=\"25\" id=\"Adview"+type+this.Adlist["A"+type][count]["id"]+"\"><span>A VIDEÓ RIPORT MEGTEKINTÉSE</span></a>";
}

if (Vadlist.SLPlist[this.Adlist["A"+type][count]["id"]]==1) {
//addbtn="<a href=\"javascript:videohirdeto()\" onclick=\"Vadlist.adboxaction.add("+this.Adlist["A"+type][count]["id"]+", this)\" class=\"Vadboxtopbtn\" title=\"ez a hirdetés már szerepel a kiválasztott hirdetések között\"><img src=\"http://q--sli0.videohirdeto.hu/cat/adlistbox/addtolistno.png\" border=\"0\" width=\"30\" height=\"25\" id=\"Adadd"+type+this.Adlist["A"+type][count]["id"]+"\"><span>MÁR KIVÁLASZTOTTA A HIRDETÉST </span></a>";
viewbtn="<a href=\"javascript:videohirdeto()\" onclick=\"Vadlist.adboxaction.view("+this.Adlist["A"+type][count]["id"]+", this)\" class=\"Vadboxtopbtn\" title=\"ez a hirdetés már szerepel a kiválasztott hirdetések között\"><img src=\"http://q--sli0.videohirdeto.hu/cat/adlistbox/playnowon.png\" border=\"0\" width=\"30\" height=\"25\" id=\"Adview"+type+this.Adlist["A"+type][count]["id"]+"\"><span>A HIRDETÉS MEGTEKINTÉSE</span></a>";
}

if ("cnt"=="cat") {
result="<div id=\"Ad"+type+this.Adlist["A"+type][count]["id"]+"\"><table width=\"800px\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td align=\"right\" valign=\"bottom\" class=\"VAdboxlistnav\">"+viewbtn+"&#160;"+addbtn+"&#160;&#160;<a href=\"javascript:videohirdeto()\" onclick=\"Vadlist.adboxaction.hide('"+type+"',"+this.Adlist["A"+type][count]["id"]+",'"+page+"')\"  class=\"Vadboxtopbtn\" title=\"visszaállítás csak regisztrált felhasználóknak\"><img src=\"http://q--sli0.videohirdeto.hu/cat/adlistbox/hide.png\" border=\"0\" width=\"30\" height=\"25\"><span>TÖRLÉS - NEM JELENIK MEG TÖBBÉ!</span></a></td></tr><tr><td align=\"center\" valign=\"top\"><table width=\"798px\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td align=\"center\" height=\""+height+"px\" valign=\"middle\" class=\"\"><div id=\"Adbox"+type+this.Adlist["A"+type][count]["id"]+"\"><table width=\"790px\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td align=\"right\" valign=\"top\" width=\"33px\" class=\"VAdboxleftbtn\">"+totop+"<br>"+toextra+"</td><td align=\"center\" valign=\"middle\" width=\"130px\" class=\"VAdboxIbox"+this.Adlist["A"+type][count].style+"\" onclick=\"Vadlist.adboxaction.view("+this.Adlist["A"+type][count]["id"]+")\">"+adimg+"</td><td align=\"left\" valign=\"top\" width=\"585px\" class=\"VAdboxbody"+this.Adlist["A"+type][count].style+"\"><div class=\"VAdboxtitle"+specclass+"\" onclick=\"Vadlist.adboxaction.view("+this.Adlist["A"+type][count]["id"]+", this)\">"+this.Adlist["A"+type][count].title+"</div><div class=\"VAdboxintro"+specclass+"\">"+this.Adlist["A"+type][count].intro+"</div><div class=\"\">"+sum+"</div></td><td align=\"center\" valign=\"middle\" class=\"VAdboxright"+this.Adlist["A"+type][count].style+"\"><a href=\"javascript:videohirdeto()\" onclick=\"Vadlist.adboxaction.help()\" title=\"Segítség, GYIK\"></a><br><a href=\"javascript:videohirdeto()\" onclick=\"Vadlist.adboxaction.opt("+this.Adlist["A"+type][count].usertype+")\" title=\"Hirdetői opciók\"></a><br><!--<a href=\"javascript:videohirdeto()\" onclick=\"Vadlist.adboxaction.contact("+this.Adlist["A"+type][count]["id"]+")\" title=\"Kapcsolatfelvétel\"></a>--></td></tr>"+corpmore+"</tbody></table></div></td></tr></tbody></table></td></tr></tbody></table></div>";
} else {
result="<div id=\"Ad"+type+this.Adlist["A"+type][count]["id"]+"\"><table width=\"800px\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td align=\"right\" valign=\"bottom\" class=\"VAdboxlistnav\">"+viewbtn+"&#160;"+addbtn+"&#160;&#160;&#160;&#160;</td></tr><tr><td align=\"center\" valign=\"top\"><table width=\"798px\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td align=\"center\" height=\""+height+"px\" valign=\"middle\" class=\"\"><div id=\"Adbox"+type+this.Adlist["A"+type][count]["id"]+"\"><table width=\"790px\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td align=\"center\" valign=\"top\" width=\"130px\" height=\""+height+"px\"  class=\"VAdboxIbox"+this.Adlist["A"+type][count].style+"\" onclick=\"Vadlist.adboxaction.view("+this.Adlist["A"+type][count]["id"]+")\">"+adimg+"</td><td align=\"left\" valign=\"top\" width=\"618px\" class=\"VAdboxbody"+this.Adlist["A"+type][count].style+"\"><div class=\"VAdboxtitle"+specclass+"\" onclick=\"Vadlist.adboxaction.view("+this.Adlist["A"+type][count]["id"]+", this)\">"+this.Adlist["A"+type][count].title+"</div><br><div class=\"VAdboxintro"+specclass+"\">"+this.Adlist["A"+type][count].intro+"</div><div class=\"\">"+sum+"</div></td><td align=\"center\" valign=\"middle\" class=\"VAdboxright"+this.Adlist["A"+type][count].style+"\"><a href=\"javascript:videohirdeto()\" onclick=\"Vadlist.adboxaction.help()\" title=\"Segítség, GYIK\"></a><br><a href=\"javascript:videohirdeto()\" onclick=\"Vadlist.adboxaction.opt("+this.Adlist["A"+type][count].usertype+")\" title=\"Hirdetői opciók\"></a><br><!--<a href=\"javascript:videohirdeto()\" onclick=\"Vadlist.adboxaction.contact("+this.Adlist["A"+type][count]["id"]+")\" title=\"Kapcsolatfelvétel\"></a>--></td></tr>"+corpmore+"</tbody></table></div></td></tr></tbody></table></td></tr></tbody></table></div>";

}

}
}
}
return result;
},

preload:function(adid) {
this.adboxaction.toselect(adid);
Vadlist.addtolist(0,adid,'',1,0);
},

checkpreload:function() {
if (document.getElementById("VadAdsellist").innerHTML.length<5) {
document.getElementById("VadAdseltab").className="VadAdseltaboff";
document.getElementById("Vadselboxstart").style.display="none";
document.getElementById("VadAdseltabtext").style.display="none";
Vsite.tabflip('list-search',0);
}
},

adboxaction:{

add:function(adid, here){
this.tosave(adid);
this.toselect(adid);
Vadlist.addtolist(0,adid,here,0,1);
},

view:function(adid, here){
//this.tosave(adid);
//this.toselect(adid);
//Vadlist.addtolist(1,adid,'',0,1);
var loc=top.location.hostname;
if ("cnt"!="cat") {
//loc="www.filmhirado.hu";
}
top.location=top.location.protocol+"//"+loc+""+top.location.pathname+""+adid+".blog";
},

delad:function(adid, type) {
Vadlist.listcur["del"][adid]=adid;
if (SLsystem.isdefined("VSLPs")) {
VSLPs.deleteanad(adid);
}
//del from prelist, other tabs!!!
if (type!="all" && document.getElementById("Adall"+adid)) {
document.getElementById("Adall"+adid).style.display="none";
}
if (type!="new" && document.getElementById("Adnew"+adid)) {
document.getElementById("Adnew"+adid).style.display="none";
}
if (type!="extra" && document.getElementById("Adextra"+adid)) {
document.getElementById("Adextra"+adid).style.display="none";
}
if (type!="save" && document.getElementById("Adsave"+adid)) {
document.getElementById("Adsave"+adid).style.display="none";
}
var saved=SLsystem.getcookievalue("Vadlistcurr");
if (saved && saved.indexOf("/"+adid)!=-1) {
saved=saved.replace("/"+adid, "");
SLsystem.setsavedcookie("Vadlistcurr", saved, "days", 7);
}
var deld=SLsystem.getcookievalue("Vaddelcurr");
var list="";
if (deld) {
list=deld;
}
if (list.indexOf("/"+adid)==-1) {
list=list+"/"+adid;
SLsystem.setsavedcookie("Vaddelcurr", list, "days", 7);
}
},

hide:function(type, adid, page){
this.delad(adid, type);
document.getElementById("Ad"+type+adid).style.display="none";
this.listcur["A"+type]["ads"][page][adid]=0;
var cnt=0;
for (var a in this.listcur["A"+type]["ads"][page]) {
if (this.listcur["A"+type]["ads"][page][a]==1) {
cnt++;
}
}
if (cnt==0) {
document.getElementById(Vsite.sitevars[type]+"cnt"+page).innerHTML+="AZ OLDALON LEVŐ HIRDETÉSEKET ÖN TÖRÖLTE.";
}
},

start:function() {
if (Vadlist.SLPlist) {
var ad=0;
for (var a in Vadlist.SLPlist) {
if (a!=0 && Vadlist.SLPlist[a]==1) {
ad=a;
}
}
if (ad!=0) {
this.view(ad,0);
}
}
},

totop:function(adid){
alert('Előrehelyezés a hatékonyságot növeli! Hamarosan elérhető...');
},

toextra:function(adid){
alert('Kiemelés a hatékonyságot növeli! Hamarosan elérhető...');
},

help:function(){
//...
},

opt:function(type){},

contact:function(adid){},

userpage:function(adid,type){},

showattr:function(name){},

tosave:function(adid){
if (adid>8000100000) {
var saved=SLsystem.getcookievalue("Vadlistcurr");
var list="";
if (saved) {
list=saved;
}
if (list.indexOf("/"+adid)==-1) {
list=list+"/"+adid;
SLsystem.setsavedcookie("Vadlistcurr", list, "days", 7);
}
}
},

toselect:function(adid){
document.getElementById("VadAdseltabtext").style.display="block";
document.getElementById("Vadselboxstart").style.display="block";
document.getElementById("VadAdseltab").className="VadAdseltabon";

if (document.getElementById("Adaddall"+adid)) {
document.getElementById("Adaddall"+adid).src="http://q--sli0.videohirdeto.hu/cat/adlistbox/addtolistno.png";
}
if (document.getElementById("Adaddnew"+adid)) {
document.getElementById("Adaddnew"+adid).src="http://q--sli0.videohirdeto.hu/cat/adlistbox/addtolistno.png";
}
if (document.getElementById("Adaddextra"+adid)) {
document.getElementById("Adaddwxtra"+adid).src="http://q--sli0.videohirdeto.hu/cat/adlistbox/addtolistno.png";
}
if (document.getElementById("Adaddsave"+adid)) {
document.getElementById("Adaddsave"+adid).src="http://q--sli0.videohirdeto.hu/cat/adlistbox/addtolistno.png";
}
if (document.getElementById("Adviewall"+adid)) {
document.getElementById("Adviewall"+adid).src="http://q--sli0.videohirdeto.hu/cat/adlistbox/playnowon.png";
}
if (document.getElementById("Adviewnew"+adid)) {
document.getElementById("Adviewnew"+adid).src="http://q--sli0.videohirdeto.hu/cat/adlistbox/playnowon.png";
}
if (document.getElementById("Adviewextra"+adid)) {
document.getElementById("Adviewwxtra"+adid).src="http://q--sli0.videohirdeto.hu/cat/adlistbox/playnowon.png";
}
if (document.getElementById("Adviewsave"+adid)) {
document.getElementById("Adviewsave"+adid).src="http://q--sli0.videohirdeto.hu/cat/adlistbox/playnowon.png";
}
}

},

//-----------------------------

textconvert:function(inp) {
if (inp.length>0) {
var out=inp;
out=unescape(out);
//out=decodeURIComponent(out);
return out;
}
},

addtolist:function(type,adid,place,silent,manual) {

if (document.getElementById("IF_SLPPvideo")) {
dropid("IF_SLPPvideo");
}
document.title="::: oldal betöltés folyamatban - videohirdeto.info :::";
var found=0;
if (this.SLPdata.listcount>0) {
if (this.SLPlisting[adid]) {
if (this.SLPlisting[adid]!=0) {
found=adid;
}
}
}
if (found==adid) {
if (type==1 && this.SLPlist[adid]==1) {
this.SLPBox=2;
this.openadviewer(adid);
}
} else if (this.SLP==0 && this.SLPBox==0) {
var cache=Math.random()*10000;
//1000
cache=Math.round(cache);
var startfile="http://q--sls0.videohirdeto.info/slp/0/videohirdeto.js?"+cache;
SLsystem.extloadfile("js",startfile,"GET","Vadlist.addtolist('"+type+"','"+adid+"','','1','"+manual+"')");
this.SLPBox=2;
if (silent==1 && manual==0) {
// && 0==10
setTimeout("Vadlist.addtolist('"+type+"','"+adid+"','0','1','"+manual+"')",500);
}
} else if (this.SLPdata.listcount<=Vsystem.limits.listmax[0]) {
var adfile="http://q--ld0.videohirdeto.info/loadad/"+adid+"/1"+manual+"/videohirdeto.sljx";
this.SLPBox=2;
if (silent==1 && manual==0 && this.SLP==0) {
setTimeout("SLsystem.extloadfile('js','"+adfile+"','GET','0');",700);
} else {
SLsystem.extloadfile("js",adfile,"GET","0");
}

if (window.XMLHttpRequest) {
} else {
//Vshowveil('s');
alert("A hirdetés betöltése folyamatban van, kis türelmet kérünk!\nTovábblépéshez nyomja meg az 'OK' gombot!")
}
//+voting
//var votefile="http://q--???.videohirdeto.info/getvote/"+adid+"/0/videohirdeto.sljx";
//SLsystem.extloadfile("js",votefile,"GET","0");
if (this.SLPdata.listcount==0) {
var intfile="http://q--ld0.videohirdeto.info/interstitial/hatekonysag/0/videohirdeto.sljx";
}
this.SLPdata.listcount++;
this.SLPlist[adid]=9;
if (type==1){
this.SLPlist[adid]=8;
}
}
if (found==adid && type==0) {
document.title=Vsystem.values.title;
//+notify
} else if (this.SLPdata.listcount<=Vsystem.limits.listmax[0] || found==adid) {
//+update playlist
if (type==0) {
document.title=Vsystem.values.title;
if (window.XMLHttpRequest && silent!=1) {
VadPupBoxopen(place, '120', '200', 'info', '<span style="color:#FF0000;font-size:20px;font-weight:bold;">[i]</span>   A videóhirdetést sikeresen hozzáadtuk a hirdetéslistához. Megtekintéshez nyomja meg a \"Kiválasztott videóirdetések\" gombot középen felül!', '3500');
}
} else {
if (this.SLP==1 && this.SLPlist[adid]==1) {
this.openadviewer(adid);
} else {
//+show wait
}
}
} else {
document.title=Vsystem.values.title;
}

},

openadviewer:function(startad) {
if (startid>0) {
this.returnUrl=GotoUrl;
}
//close wait
if (this.SLPAdbox==0) {
document.getElementById("VadTopContainercnt").innerHTML=VSLPs.container.viewer;
this.SLPAdbox=1;
}
if (startad>0) {
//VSLPs.insertplayer(startad);
VSLPs.viewer.playerinsert=1;
VSLPs.setnextprev(startad);
VSLPs.loadadtoviewer(startad);
}
if (Vadlist.SLPBox==0 || Vadlist.SLPBox==2) {
//VshowTopbox("0",1,0,0,1,0);
Vadlist.SLPBox=1;
}
SLsystem.setsessioncookie("tmpSLPmedia", 1);
SLsystem.setsessioncookie("tmpSLPview", 1);
if (window.XMLHttpRequest) {
Showaftershow="Vadlist.closeadviewer();";
} else {
Showaftershow="window.location.reload();";
}
},

closeadviewer:function() {
if (this.returnUrl!="0") {
window.location=this.returnUrl;
} else {
//Vshowveil('s');
VSLPs.switchtab('SLPboxMC2', 'SLPboxMC1');
if (document.getElementById("IF_SLPPvideo")) {
document.getElementById("SLPPvideo").style.visibility='hidden';
document.getElementById("IF_SLPPvideo").style.visibility='hidden';
dropid("IF_SLPPvideo");
}
SLsystem.setsessioncookie("tmpSLPmedia", 0);
SLsystem.deletecookie("tmpSLPmedia");
SLsystem.setsessioncookie("tmpSLPview", 0);
SLsystem.deletecookie("tmpSLPview");
//VSLPs.dropplayer();
//VSLPs.stopnow();
document.title=Vsystem.values.title;
Vadlist.SLPBox=0;
//Vhideveil();
}
},

deletead:function(startad) {
this.SLPlist[startad]=0;
this.SLPlisting[startad]=0;
this.SLPdata.listcount--;
}

}


var VSLPs={

viewer:{"OS":"0","BR":"0", "playerinsert":"0", "durationbar":"0", "counter":"0"},

container:{"viewer":"<div class=\"VPBoxdiv\"></div><div class=\"VPBoxcontent\"><div id=\"SLPboxMC1\" style=\"display:none\"></div><div id=\"SLPboxMC2\" style=\"display:none\"><table width=\"960px\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td align=\"left\" valign=\"top\" width=\"960px\"><div id=\"SLPPtitle\" class=\"VPPtitle\"></div></td></tr><tr><td align=\"center\" valign=\"right\" height=\"27px\" width=\"960px\"><!-- FUNCTION BUTTONS--></td></tr><tr ><td align=\"center\" valign=\"top\" width=\"960px\"><table width=\"960px\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td align=\"center\" valign=\"top\" width=\"520px\" style=\"\"><div id=\"SLPPright\"><div id=\"SLPPdetails\" style=\"display:none;\" oncontextmenu=\"return false\"><div id=\"SLPPdetailbox\" class=\"VPintabdetails\"></div></div></div></td><td width=\"10px\">&#160;</td><td align=\"center\" valign=\"top\" width=\"440px\"><div id=\"SLPPleft\"><div class=\"SLPPvid\"><div id=\"SLPPvideo\" oncontextmenu=\"return false\"><div id=\"SLPPvideono\" style=\"\">A videolejátszás az Ön gépén nem lehetséges</div></div><div id=\"SLPPsound\" oncontextmenu=\"return false\"></div></div><br><div id=\"SLPPimage\" style=\"display:none;\" oncontextmenu=\"return false\"></div></div><div id=\"VCatAdslist2\" class=\"VCatPinlist\"></div></td></tr></tbody></table></td></tr></tbody></table></div></div>"},

uitext:{"advertisement":"Blog","SLPPvideo":"videó","SLPPimage":"képek","SLPPsite":"lap","SLPPdetails":"részletek","SLPPuser":"hirdet%C5%91","SLPPoptions":"opciók","DtlTabSum":"Összefoglaló:","DtlTabDtl":"Részletek:","Ownerinfolink":"A hirdet%C5%91 elérhet%C5%91ségei, kapcsolatfelvétel","Viewcountbefore":"A hirdetést eddig","Viewcountafter":"látogató látta","Advertizeralladslink":"A hirdet%C5%91 összes hirdetése","Userid":"Azonosító","Catlinklabel":"Rovat","Regionlabel":"Régió","Userlabel":"Hirdet%C5%91","Startdatelabel":"Frissítve","Enddatelabel":"Lejár","Pricelabel":"Ár","Contactuser":"Kapcsolatfelvétel","Usermail":"Cím","Userphone":"Telefon","Userhomephone":"Mobil és otthoni telefon","Userworkphone":"Munkahelyi telefon","Userguestname":"Vendég","todayname":"MA","tomorrowname":"HOLNAP","yesterdayname":"TEGNAP","selectedadsname":"Az Ön által kiválasztott hirdetések listája","viewanimage":"Nagyításhoz kattintson a kiválasztott képre","defaultimgtitle":"hirdetéséhez kapcsolódó kép"},

SLPbase:{"lefttabs":{"SLPPvideo":0, "SLPPimage":0, "SLPPsite":0},"righttabs":{"SLPPdetails":1, "SLPPuser":1, "SLPPoptions":1,"SLPPmoreads":0}},

SLPvars:{"dragposition":0},

insertplayer:function(adid) {
if (this.viewer.playerinsert==0) {
if (document.getElementById("SLPPvideo") && document.getElementById("SLPPsound")) {
if (document.getElementById("SLPPvideop") && document.getElementById("SLPPvideoc")) {
var adurl=this.aditem[adid].header.url_video+this.aditem[adid].body.videoid+this.aditem[adid].header.video_format;
var vplayer="";
document.getElementById("SLPPvideop").innerHTML=vplayer;
var playerc="";
document.getElementById("SLPPvideoc").innerHTML=playerc;
this.viewer.player=0;
}
if (document.getElementById("SLPPvideop") && document.getElementById("SLPPvideoc")) {
this.viewer.playerinsert=1;
}
//var splayer="";
//document.getElementById("SLPPsound").innerHTML=splayer;
return true;
}
if(document.getElementById("SLMediaPlayer")) {
//document.getElementById("SLMediaPlayer").versionInfo;
}
}
},

dropplayer:function() {
this.stopnow();
this.viewer.playerinsert=0;
dropid("SLMediaPlayer");
document.getElementById("SLPPvideop").innerHTML="";
document.getElementById("SLPPsound").innerHTML="";
},

converttext:function(input) {
var output=decodeURIComponent(input);
return output;
},

hoverclass:function (elid,from,to) {
if (document.getElementById(elid)) {
if (document.getElementById(elid).className==from || from==0) {
document.getElementById(elid).className=to;
}
}
},

switchtab:function (from,to) {
if (document.getElementById(from) && document.getElementById(to)) {
document.getElementById("SLPboxMC1").style.display="none";
document.getElementById("SLPboxMC2").style.display="none";
document.getElementById(to).style.display="block";
if (from!=to) {
if (from=="SLPboxMC1") {
if(Vadlist.SLPdata.listcount>0) {
//this.loadadtoviewer(Vadlist.now.vadid);
SLsystem.setsessioncookie("tmpSLPview", 1);
document.title="::: "+this.converttext(this.uitext.advertisement)+": "+this.aditem[Vadlist.now.vadid].body.title+" - videohirdeto.info :::";
} else {
VcloseTopbox();
}
} else if(from=="SLPboxMC2") {
//this.stopnow();
SLsystem.setsessioncookie("tmpSLPview", 0);
SLsystem.deletecookie("tmpSLPview");
//if (this.viewer.BR==10) {
//this.dropplayer();
//}
this.buildadslist();
document.title="::: "+this.converttext(this.uitext.selectedadsname)+" - videohirdeto.info :::";
}
}
}
},

showplayertab:function(elid, side) {
if ("cnt"!="cnt" && "cnt"!="start" && "cnt"!="right" && "cnt"!="art") {
if (side=="left" || side=="right") {
var links=new Array();
for (var a in eval("this.SLPbase."+side+"tabs")) {
document.getElementById(a).style.display="none";
if (eval("this.SLPbase."+side+"tabs."+a)==1 || eval("this.SLPbase."+side+"tabs."+a)==2) {
var b=this.uitext[a];
links[a]="<a href=\"javascript:videohirdeto()\" title=\"\" class=\"VPintab\" onclick=\"VSLPs.showplayertab('"+a+"', '"+side+"')\" oncontextmenu=\"VSLPs.showplayertab('"+a+"', '"+side+"');return false\">&#160;&#160;"+this.converttext(b)+"&#160;&#160;</a>";
}
}
links[elid]="<span class=\"VPintabs\" oncontextmenu=\"return false\">&#160;&#160;"+this.converttext(this.uitext[elid])+"&#160;&#160;</span>";
var linkss="";
for (var b in links) {
linkss=linkss+links[b];
}
document.getElementById("SLPP"+side+"menu").innerHTML=linkss;
if (elid!=0 && document.getElementById(elid)) {
document.getElementById(elid).style.display="block";
}
}
} else {
document.getElementById(elid).style.display="block";
}
},

userlink:function(ulink,uid) {
if (uid==0 && ulink.length>0) {
top.location="http://www."+ulink;
}
},

"aditem":{},

makedate:function(str) {
var newdate="";
var adate=new Array();
adate[""]=this.uitext.todayname;
adate[""]=this.uitext.tomorrowname;
adate[""]=this.uitext.yesterdayname;
if (adate[str]) {
newdate=adate[str];
} else {
var year=str.substring(0, 4);
var month=str.substring(4, 6);
var day=str.substring(6, 8);
newdate=year+"."+month+"."+day+".";
return newdate;
}
},

TMPcountviewer:function(adid,post) {
var view=1;
if (this.aditem[adid].header.viewcount) {
view=3*this.aditem[adid].header.viewcount;
} else {
var today="20100731";
var diff=post*1;
diff=today-diff;
diff=diff/(1000/365);
if (diff>300) {
view=(diff-300)/2+480;
} else if (diff>210) {
view=(diff-210)*(2/3)+420;
} else if (diff>150) {
view=(diff-150)*1+360;
} else if (diff>60) {
view=(diff-60)*2+180;
} else {
view=diff*3;
}
view=Math.round(view);
}
return view;
},

makedetail:function(adid) {
var catlink="";
catlink="<a href=\"http://www.filmhirado.hu/"+this.aditem[adid].body.FHcat+"/\">"+this.aditem[adid].header.cat+"</a>";
var postdate=this.makedate(this.aditem[adid].body.start);
var expdate=this.makedate(this.aditem[adid].body.end);
var price="";
if (this.aditem[adid].body.price) {
if (this.aditem[adid].body.price.length>0) {
price="<tr><td align=\"left\" valign=\"top\" colspan=\"3\" class=\"AdDtlTopD\">"+this.converttext(this.uitext.Pricelabel)+": <span>"+this.aditem[adid].body.price+" "+this.aditem[adid].body.pricecur+"</span></td></tr>";
}
}
var vcount=this.aditem[adid].header.viewercount;
if (vcount==undefined || vcount<1) {
vcount=this.TMPcountviewer(adid,this.aditem[adid].body.start);
}
//*****************************
var reg="hamarosan";
var user="<a href=\"javascript:videohirdeto()\" onclick=\"VSLPs.showplayertab('SLPPuser','right')\" oncontextmenu=\"VSLPs.showplayertab('SLPPuser','right');return false\">"+this.aditem[adid].body.username+"</a>";
//*****************************
var sumdivs="";
if (this.aditem[adid].body.intro) {
if (this.aditem[adid].body.intro.length>3) {
sumdivs="<div id=\"VadPDtlSum\" class=\"AdDtlTitle\" onClick=\"VSLPs.detailopen('VadPDtlSum','Sum')\" oncontextmenu=\"VSLPs.detailopen('VadPDtlSum','Sum');return false\"><span>- </span>"+this.converttext(this.uitext.DtlTabSum)+"</div><div id=\"VadPDtlSumcnt\" class=\"AdDtlText\">"+this.aditem[adid].body.intro+"</div>";
}
}
var dtldivs="";
if (this.aditem[adid].body.detail) {
if (this.aditem[adid].body.detail.length>3) {
dtldivs="<div id=\"VadPDtlDtl\" class=\"AdDtlTitle\" onClick=\"VSLPs.detailopen('VadPDtlDtl','Dtl')\" oncontextmenu=\"VSLPs.detailopen('VadPDtlDtl','Dtl');return false\"><span>- </span>"+this.converttext(this.uitext.DtlTabDtl)+"</div><div id=\"VadPDtlDtlcnt\" class=\"AdDtlText\">"+this.aditem[adid].body.detail+"</div>";
}
}
var adsurl="videohirdeto.info/blog";
var userlink="";

var result="<table id=\"VadPDtld"+adid+"\" width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"CntDtl\"><tbody><tr><td width=\"94px\" align=\"right\" valign=\"top\" rowspan=\"7\"><img src=\"\" border=\"0\" width=\"90px\" height=\"90px\"></td><td width=\"130px\" align=\"right\" valign=\"top\" class=\"AdDtlTopL\">"+this.converttext(this.uitext.Userid)+":</td><td align=\"left\" valign=\"top\" class=\"AdDtlTopR\">"+adid+"</td></tr><tr><td width=\"130px\" align=\"right\" valign=\"top\" class=\"AdDtlTopL\">URL:</td><td align=\"left\" valign=\"top\" class=\"AdDtlTopR\"><span>www."+adsurl+"/"+adid+"</span></td></tr><tr><td width=\"130px\" align=\"right\" valign=\"top\" class=\"AdDtlTopL\">"+this.converttext(this.uitext.Catlinklabel)+":</td><td align=\"left\" valign=\"top\" class=\"AdDtlTopR\">"+catlink+"</td></tr><tr><td width=\"130px\" align=\"right\" valign=\"top\" class=\"AdDtlTopL\">"+this.converttext(this.uitext.Userlabel)+":</td><td align=\"left\" valign=\"top\" class=\"AdDtlTopR\">"+user+"</td></tr><tr><td width=\"130px\" align=\"right\" valign=\"top\" class=\"AdDtlTopL\">"+this.converttext(this.uitext.Startdatelabel)+":</td><td align=\"left\" valign=\"top\" class=\"AdDtlTopR\">"+postdate+"</td></tr><tr><td width=\"130px\" align=\"right\" valign=\"top\" class=\"AdDtlTopL\">"+this.converttext(this.uitext.Enddatelabel)+":</td><td align=\"left\" valign=\"top\" class=\"AdDtlTopR\">"+expdate+"</td></tr><tr><td></td><td></td><td></td></tr>"+price+"<tr><td align=\"center\" valign=\"top\" colspan=\"3\" class=\"AdDtlTopM\"><a href=\"javascript:videohirdeto()\" onClick=\"VSLPs.showplayertab('SLPPuser', 'right')\" oncontextmenu=\"VSLPs.showplayertab('SLPPuser', 'right');return false\">"+this.converttext(this.uitext.Ownerinfolink)+"</a><br>"+this.converttext(this.uitext.Viewcountbefore)+" "+vcount+" "+this.converttext(this.uitext.Viewcountafter)+"<br><a href=\"javascript:videohirdeto()\" onClick=\""+userlink+"\" oncontextmenu=\";return false\">"+this.converttext(this.uitext.Advertizeralladslink)+"</a></td></tr><tr><td align=\"left\" valign=\"top\" colspan=\"3\">"+sumdivs+"</td></tr><tr><td align=\"left\" valign=\"top\" colspan=\"3\">"+dtldivs+"</td></tr><tr><td align=\"left\" valign=\"top\" colspan=\"3\"><!-- +++ --></td></tr></tbody></table>";

if ("cnt"=="cnt") {
user=this.aditem[adid].body.username;
if (this.aditem[adid].body.intro) {
if (this.aditem[adid].body.intro.length>3) {
sumdivs="<div id=\"VadPDtlSumcnt\" class=\"CntIntro\">"+this.aditem[adid].body.intro+"</div>";
}
}
if (this.aditem[adid].body.detail) {
if (this.aditem[adid].body.detail.length>3) {
dtldivs="<div id=\"VadPDtlDtlcnt\" class=\"Cnttext\">"+this.aditem[adid].body.detail+"</div>";
}
}
var adname=this.aditem[adid].body["id"];
var moddate="";
if (this.aditem[adid].body.start<this.aditem[adid].body["last_mod"]) {
moddate=this.makedate(this.aditem[adid].body["last_mod"]);
moddate="(módosítva:&#160;"+moddate+")&#160;";
}
result="<table id=\"VadPDtld"+adid+"\" width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"CntDtl\"><tbody><tr><td align=\"left\" valign=\"top\" class=\"Cnttop\">"+postdate+"&#160;"+moddate+"|&#160;"+user+"</td></tr><tr><td align=\"left\" valign=\"top\" class=\"Cnttops\">URL: www."+adsurl+"/"+adname+"</td></tr><tr><td align=\"left\" valign=\"top\">"+sumdivs+"<br></td></tr><tr><td align=\"center\" valign=\"top\"><!-- BANNER --></td></tr><tr><td align=\"left\" valign=\"top\">"+dtldivs+"</td></tr><tr><td align=\"left\" valign=\"top\" class=\"Cntbottom\">&#160;</td></tr></tbody></table>";
} else if ("cnt"=="right" || "cnt"=="art") {
if (this.aditem[adid].body.intro) {
if (this.aditem[adid].body.intro.length>3) {
sumdivs="<div id=\"VadPDtlSumcnt\" class=\"CntIntro\">"+this.aditem[adid].body.intro+"</div>";
}
}
if (this.aditem[adid].body.detail) {
if (this.aditem[adid].body.detail.length>3) {
dtldivs="<div id=\"VadPDtlDtlcnt\" class=\"Cnttext\">"+this.aditem[adid].body.detail+"</div>";
}
}
var adname=this.aditem[adid].body["id"];
var href=document.location.href;
if ("cnt"=="art") {
href="www.hirdessvideon.hu/"+this.aditem[adid].body["id"]+".cikk";
} else {
href=href.replace("http://","");
}
result="<table id=\"VadPDtld"+adid+"\" width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"CntDtl\"><tbody><tr><td align=\"left\" valign=\"top\">"+sumdivs+"<br></td></tr><tr><td align=\"center\" valign=\"top\"><!-- BANNER --></td></tr><tr><td align=\"left\" valign=\"top\">"+dtldivs+"</td></tr><tr><td align=\"left\" valign=\"top\" class=\"Cnttop\">"+postdate+"</td></tr><tr><td align=\"left\" valign=\"top\" class=\"Cnttops\">URL: "+href+"</td></tr><tr><td align=\"left\" valign=\"top\" class=\"Cntbottom\">&#160;</td></tr></tbody></table>";
}

if ("cnt"=="start" ) {
if (this.aditem[adid].body.intro) {
if (this.aditem[adid].body.intro.length>3) {
sumdivs="<div id=\"VadPDtlSumcnt\" class=\"CntIntro\">"+this.aditem[adid].body.intro+"</div>";
}
}
var adname=this.aditem[adid].body["id"];
result="<table id=\"VadPDtld"+adid+"\" width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"CntDtl\"><tbody><tr><td align=\"left\" valign=\"top\">"+sumdivs+"<br></td></tr><tr><td align=\"center\" valign=\"top\"><!-- BANNER --></td></tr></tbody></table>";
}

return result;
},

settabs:function(adid) {
for (var a in this.SLPbase.lefttabs) {
this.SLPbase.lefttabs[a]=0
}
var curtab="";
if (this.aditem[adid].body.site) {
if (this.aditem[adid].body.site==1) {
this.SLPbase.lefttabs.SLPPsite=1
curtab="SLPPsite";
}
}
if (this.aditem[adid].body.image && "cnt"!="art") {
if (this.aditem[adid].body.image>0) {
this.SLPbase.lefttabs.SLPPimage=1
curtab="SLPPimage";
}
}
if (this.aditem[adid].body.video) {
if (this.aditem[adid].body.video==1) {
this.SLPbase.lefttabs.SLPPvideo=1
curtab="SLPPvideo";
}
}
if (curtab.length>1) {
this.showplayertab(curtab, "left");
}
},

fillusertab:function(type,adid) {
if ("cnt"!="cnt" && "cnt"!="start" && "cnt"!="right" && "cnt"!="art") {
if (type==1) {
//document.getElementById("SLPPuser").style.backgroundColor=document.getElementById("VadPDtld"+adid).style.backgroundColor;
var rows=1;
var contact="";
if (this.aditem[adid].body.contact==1) {
contact="<tr><td align=\"left\" valign=\"top\"><a href=\"\" class=\"AdUsrBtn\">"+this.converttext(this.uitext.Contactuser)+"</a></td></tr>";
} else {
var admail="";
var adphone="";
var homephone="";
var workphone="";
var adfax="";
var ademail="";
var adweb="";
if (this.aditem[adid].body.mail) {
if (this.aditem[adid].body.mail.length>1) {
rows++;
rows++;
var tmpmail=this.aditem[adid].body.mail.split("|");
if (tmpmail.length>=5) {
if (tmpmail[0]=="901") {
tmpmail[0]="Magyarország";
}
admail=tmpmail[1]+", "+tmpmail[2]+",<br>&#160;&#160;"+tmpmail[3]+" "+tmpmail[4]+" "+tmpmail[5]+".<br>&#160;&#160;"+tmpmail[0];
admail="<tr><td align=\"left\" valign=\"top\" class=\"AdUsrTit\">"+this.converttext(this.uitext.Usermail)+":</td></tr><tr><td align=\"left\" valign=\"top\" class=\"AdUsrDtl\">&#160;&#160;"+admail+"</td></tr>";
}
}
}
if (this.aditem[adid].body.phone_work || this.aditem[adid].body.phone_home) {
rows++;
rows++;
if (this.aditem[adid].body.phone_home) {
var tmptel="";
for (var a in this.aditem[adid].body.phone_home) {
tmptel=this.aditem[adid].body.phone_home[a];
adphone=adphone+"&#160;&#160;"+tmptel+"<br>";
}
var homephone=adphone;
}
tmptel="";
if (this.aditem[adid].body.phone_work) {
for (var b in this.aditem[adid].body.phone_work) {
tmptel=this.aditem[adid].body.phone_work[b];
adphone=adphone+"&#160;&#160;"+tmptel+"<br>";
workphone=workphone+"&#160;&#160;"+tmptel+"<br>";
}
}
if (this.aditem[adid].body.usertype=="10") {
adphone="<tr><td align=\"left\" valign=\"top\" class=\"AdUsrTit\">"+this.converttext(this.uitext.Userphone)+":</td></tr><tr><td align=\"left\" valign=\"top\" class=\"AdUsrDtl\">"+adphone+"</td></tr>";
} else {
rows++;
rows++;
adphone="<tr><td align=\"left\" valign=\"top\" class=\"AdUsrTit\">"+this.converttext(this.uitext.Userhomephone)+":</td></tr><tr><td align=\"left\" valign=\"top\" class=\"AdUsrDtl\">"+homephone+"</td></tr><tr><td align=\"left\" valign=\"top\" class=\"AdUsrTit\">"+this.converttext(this.uitext.Userworkphone)+":</td></tr><tr><td align=\"left\" valign=\"top\" class=\"AdUsrDtl\">&#160;&#160;"+workphone+"</td></tr>";
}
}
if (this.aditem[adid].body.fax) {
if (this.aditem[adid].body.fax.length>1) {
rows++;
rows++;
adfax="<tr><td align=\"left\" valign=\"top\" class=\"AdUsrTit\">Telefax:</td></tr><tr><td align=\"left\" valign=\"top\" class=\"AdUsrDtl\">&#160;&#160;"+this.aditem[adid].body.fax+"</td></tr>";
}
}
if (this.aditem[adid].body.email) {
rows++;
rows++;
for (var c in this.aditem[adid].body.email) {
ademail=ademail+"&#160;&#160;<a href=\"mailto:"+this.aditem[adid].body.email[c]+"&subject=http://www.videohirdeto.hu/"+adid+"\">"+this.aditem[adid].body.email[c]+"</a>"+"<br>";
}
ademail="<tr><td align=\"left\" valign=\"top\" class=\"AdUsrTit\">E-mail:</td></tr><tr><td align=\"left\" valign=\"top\" class=\"AdUsrDtl\">"+ademail+"</td></tr>";
}
if (this.aditem[adid].body.web) {
rows++;
rows++;
for (var d in this.aditem[adid].body.web) {
adweb=adweb+"&#160;&#160;<a href=\"http://"+this.aditem[adid].body.web[d]+"/\"  target=\"hirdetoweb_videohirdeto\">"+this.aditem[adid].body.web[d]+"</a>"+"<br>";
}
adweb="<tr><td align=\"left\" valign=\"top\" class=\"AdUsrTit\">Internet:</td></tr><tr><td align=\"left\" valign=\"top\" class=\"AdUsrDtl\">"+adweb+"</td></tr>";
}
contact=admail+adphone+adfax+ademail+adweb;
}
var utab=this.converttext(this.uitext.Userguestname);
if (this.aditem[adid].body.username) {
utab=this.aditem[adid].body.username;
}
utab="<table id=\"VadPDtlu"+adid+"\" width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"AdDtl"+this.aditem[adid].body.extra+this.aditem[adid].body.style+"\"><tbody><tr><td width=\"80px\" align=\"right\" valign=\"top\" rowspan=\""+rows+"\"><img src=\"\" border=\"0\" width=\"60px\" height=\"60px\"></td><td align=\"left\" valign=\"top\" height=\"80px\" class=\"AdUsrName\">"+utab+"</td></tr>"+contact+"<tr><td align=\"left\" valign=\"top\" colspan=\"2\"><!-- +++ --></td></tr></tbody></table>";
document.getElementById("SLPPuser").innerHTML=utab;
this.SLPbase.righttabs.SLPPuser=2;
} else if (type==2) {
//ajax-get user tab content

} else {
//build content
this.SLPbase.righttabs.SLPPuser=2;
}
}
},

fillimagetab:function(adid){
if (this.aditem[adid].body.image>0 && "cnt"!="start" && "cnt"!="art") {
var t=".png";
var u="http://q--med.videohirdeto.hu/img/";
if (this.aditem[adid].header.image_format) {
t=this.aditem[adid].header.image_format;
}
if (this.aditem[adid].header.url_image) {
u=this.aditem[adid].header.url_image;
}
if ("cnt"!="right" && "cnt"!="art") {
var c=0;
var imgs="";
for (var a in this.aditem[adid].body.imgids) {
imgs=imgs+"&#160;<img id=\"VPimgVnavl"+adid+"-"+c+"\" src=\""+u+this.aditem[adid].body.imgids[a]+t+"\" border=\"0\" width=\"85\" height=\"70\" class=\"VPimglistno\" onmouseover=\"VSLPs.switchimg("+adid+","+c+")\" onclick=\"VSLPs.showlargeimg("+adid+")\">";
c++;
}
c=c*100;
var imgv="<div id=\"VPimgV"+adid+"\" class=\"VPimgbox\"><div id=\"VPimgVnav"+adid+"\" class=\"VPimgboxn\"><div id=\"VPimgVnavV"+adid+"\" class=\"VPimgboxsel\"><table border=\"0\" cellpadding=\"0\" width=\"440\" height=\"200\" cellspacing=\"0\"><tbody><tr><td width=\"440\" valign=\"middle\" align=\"center\"><img id=\"VPimgVnavVi"+adid+"\" src=\"\" border=\"0\" width=\"200\" height=\"150\"></td></tr></tbody></table></div><div id=\"VPimgVnavl"+adid+"\" class=\"VPimgboxseln\"><table border=\"0\" cellpadding=\"0\" width=\""+c+"px\" height=\"75\" cellspacing=\"0\"><tbody><tr><td width=\""+c+"px\" valign=\"middle\" align=\"left\" onmouseout=\"VSLPs.imgshow=setTimeout('VSLPs.showlargeimg("+adid+")',600)\" onmouseover=\"clearTimeout(VSLPs.imgshow)\">"+imgs+"</td></tr></tbody></table></div></div><div id=\"VPimgVV"+adid+"\" class=\"VPimgboxview\" title=\"Klikkeljen másik kép kiválasztásához!\" onclick=\"VSLPs.switchtoselect("+adid+")\"><div class=\"VPimgspace\"></div><img src=\"http://q--sli0.videohirdeto.hu/switchimg.png\" border=\"0\" width=\"30\" height=\"30\" class=\"VPimgswitch\" usemap =\"#Vswitchmap\"><map id =\"Vswitchmap\" name=\"Vswitchmap\"><area shape =\"polygon\" coords =\"30,0,30,30,0,30\" href =\"javascript:videohirdeto()\"  onmouseover=\"VSLPs.imgshow=setTimeout('VSLPs.switchtoselect("+adid+")',600)\" onmouseout=\"clearTimeout(VSLPs.imgshow)\" ></map></div></div>";
document.getElementById("SLPPimage").innerHTML=imgv;
//show first!!
this.switchimg(adid,0);
this.showlargeimg(adid);
} else {
var imgs="";
for (var a in this.aditem[adid].body.imgids) {
imgs=imgs+"<img id=\"VPimgS"+adid+"\" src=\""+u+this.aditem[adid].body.imgids[a]+t+"\" border=\"0\" style=\"margin-bottom:10px;\"><br>";
}
document.getElementById("SLPPimage").innerHTML=imgs;
}
}
},

loadvideo:function(adid) {
document.getElementById("SLPPvideo").innerHTML="";
document.getElementById("SLPPvideo").style.display="block";
var c=Math.random()*10*adid;
c=Math.round(c);
document.getElementById("SLPPvideo").innerHTML="<object id=\"SLflv"+adid+c+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0\" width=\"440\" height=\"365\"><param name=\"movie\" value=\"http://q--med.videohirdeto.hu/videoplayer/1280591210."+this.aditem[adid].body.videoid+".00000/INFO-PLAYER.swf?pad="+Math.random()+"\"><param name=\"quality\" value=\"high\"><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"allowFullScreen\" value=\"False\" /><embed src=\"http://q--med.videohirdeto.hu/videoplayer/1280591210."+this.aditem[adid].body.videoid+".00000/INFO-PLAYER.swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"440\" height=\"365\" allowScriptAccess=\"sameDomain\" allowFullScreen=\"False\"></embed></object>";
},

replacevideo:function(vidid) {
var c=Math.random()*10000;
c=Math.round(c);
document.getElementById("SLPPvideo").innerHTML="";
document.getElementById("SLPPvideo").style.display="block";
document.getElementById("SLPPvideo").innerHTML="<object id=\"SLflvr"+c+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0\" width=\"440\" height=\"365\"><param name=\"movie\" value=\"http://q--med.videohirdeto.hu/videoplayer/1280591210."+vidid+".00000/INFO-PLAYER.swf?pad="+Math.random()+"\"><param name=\"quality\" value=\"high\"><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"allowFullScreen\" value=\"False\" /><embed src=\"http://q--med.videohirdeto.hu/videoplayer/1280591210."+vidid+".00000/INFO-PLAYER.swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"440\" height=\"365\" allowScriptAccess=\"sameDomain\" allowFullScreen=\"False\"></embed></object>";
},

loadsound:function(adid) {
document.getElementById("SLPPsoundex").style.display=="block";
document.getElementById("SLPPsoundin").style.display=="none";
this.startmute();
this.volumenow(this.volumestatus);
},

loadadtoviewer:function(adid) {
//see if adv data to be downloaded sep!!

if (this.aditem[adid]) {
if (document.getElementById("VadBGcovers")) {
document.getElementById("VadBGcovers").style.display="none";
}
clearTimeout(this.blinknext);
this.settabs(adid);
this.setnextprev(adid);
if (this.aditem[adid].body.video) {
if (this.aditem[adid].body.video==1) {
this.loadvideo(adid);
}
}
if (this.aditem[adid].body.sound) {
if (this.aditem[adid].body.sound==1) {
this.loadsound(adid);
}
}
var tt="";
if ("cnt"!="right" && "cnt"!="art") {
tt=this.converttext(this.uitext.advertisement)+": ";
} else {
document.getElementById("Vpagerout").innerHTML=this.aditem[adid].body.title;
}
document.title="::: "+tt+this.aditem[adid].body.title+" - videohirdeto.info :::";
document.getElementById("SLPPtitle").innerHTML=this.aditem[adid].body.title;
//sound / bgsound
//build img tab
var dtl=0;
if (this.aditem[adid].body.dtlhtml) {
if (this.aditem[adid].body.dtlhtml.length>0) {
dtl=this.aditem[adid].body.dtlhtml;
}
} 
if(dtl==0) {
dtl=this.makedetail(adid);
this.aditem[adid].body.dtlhtml=dtl;
}
document.getElementById("SLPPdetailbox").innerHTML=dtl;
document.getElementById("SLPPdetails").style.backgroundColor=document.getElementById("VadPDtld"+adid).style.backgroundColor;
if (this.aditem[adid].body.usertype=="10" || this.aditem[adid].body.usertype=="11") {
this.fillusertab(1,adid);
} else if (this.aditem[adid].body.usertype>=20) {
this.SLPbase.righttabs.SLPPmoreads=1;
}
if (this.aditem[adid].body.image>0) {
this.fillimagetab(adid);
}
//adlist next / prev
this.showplayertab("SLPPdetails", "right");
this.switchtab('SLPboxMC2', 'SLPboxMC2');
this.hoverclass('SLPboxHM1',0,'VPtoptab');
this.hoverclass('SLPboxHM2',0,'VPtoptabs');
//this.blinktitle(5,1);
//interstitial!!!
this.SLPvars.interstitial=0;

if (("cnt"=="cnt" || "cnt"=="right" || "cnt"=="art") && this.aditem[adid].body.video==0) {
document.getElementById("SLPPvideo").style.display="none";
} else if ("cnt"=="start" && this.aditem[adid].body.video==0) {
document.getElementById("SLPPvideo").style.display="none";
}
if (("cnt"=="cnt" || "cnt"=="right") && this.aditem[adid].body.image>0) {
document.getElementById("SLPPimage").style.display="block";
}
}

},

replayad:function() {
//alert(Vadlist.now.vadid)
},

finishadload:function(adid) {
this.aditem[adid]=eval("SLVADV"+adid);
Vadlist.SLPlist[adid]=1;
Vadlist.SLPlisting[adid]=Vadlist.SLPdata.listcount;
if (Vadlist.SLPBox=="1" || Vadlist.SLPBox=="2") {
Vadlist.openadviewer(adid);
}
},

detailopen:function(divid,text) {
if (document.getElementById(divid+"cnt")) {
var textname=this.converttext(eval("this.uitext.DtlTab"+text));
var status="none";
if (document.getElementById(divid+"cnt").style.display=="none") {
textname="<span>- </span>"+textname;
status="block";
} else {
textname="<span>+ </span>"+textname;
}
document.getElementById(divid+"cnt").style.display=status;
document.getElementById(divid).innerHTML=textname;
}
},

blinknext:0,

blinktitle:function(max,count) {

},

setnextprev:function(adid) {
Vadlist.now.vadid=adid;
Vadlist.now.islast=0;
var p=0;
var n=0;
for (var a in Vadlist.SLPlist) {
if (Vadlist.SLPlist[a]==1) {
if (a==adid) {
Vadlist.now.prev=p;
n=1;
p=0;
} else if (n==1 && p==0 && Vadlist.SLPlist[a]!=0) {
Vadlist.now.next=a;
n=0;
p=a;
} else {
p=a;
}
}
}
if (Vadlist.now.prev==0) {
for (var b in Vadlist.SLPlist) {
Vadlist.now.prev=b;
}
}
if (Vadlist.now.next==0 || Vadlist.now.next==adid) {
Vadlist.now.next=0;
for (var c in Vadlist.SLPlist) {
if (Vadlist.now.next==0 && Vadlist.SLPlist[c]!=0) {
Vadlist.now.next=c;
Vadlist.now.islast=1;
}
}
}
},

switchimg:function(adid,img) {
document.getElementById("VPimgVnavVi"+adid).src=document.getElementById("VPimgVnavl"+adid+"-"+img).src;
for (var a=0;a<100;a++) {
if (document.getElementById("VPimgVnavl"+adid+"-"+a)) {
document.getElementById("VPimgVnavl"+adid+"-"+a).className="VPimglistno";
} else {
a=101;
}
}
document.getElementById("VPimgVnavl"+adid+"-"+img).className="VPimgliston";
},

imgshow:0,

showlargeimg:function(adid) {
document.getElementById("VPimgVV"+adid).style.backgroundImage="url("+document.getElementById("VPimgVnavVi"+adid).src+")";
document.getElementById("VPimgVV"+adid).style.display="block";
document.getElementById("VPimgVnav"+adid).style.display="none";
},

switchtoselect:function(adid) {
document.getElementById("VPimgVV"+adid).style.display="none";
document.getElementById("VPimgVnav"+adid).style.display="block";
clearTimeout(this.imgshow);
},

buildadslist:function() {
if (document.getElementById("SLPsellistAll")) {
var cnt="";
var now="";
var styling=";border:1px solid #FFFFFF;";
var tmpimg="";
if (Vadlist.SLPdata.listcount>0) {
for (var a in Vadlist.SLPlist) {
if (Vadlist.SLPlist[a]!=0) {
styling="";
if (this.aditem[a]) {
tmpimg='http://q--med.videohirdeto.hu/img/'+this.aditem[a].body.videoimg;
}
if (Vadlist.now.vadid==a) {
now="<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"AdSel\"><tbody><tr><td width=\"80px\" height=\"60px\" rowspan=\"3\" onclick=\"VSLPs.showselectedad("+a+");\" oncontextmenu=\"return false\"><img src=\""+tmpimg+"\" width=\"80px\" height=\"60px\" border=\"0\"></td><td align=\"left\" valign=\"top\" class=\"Adtitle\" onclick=\"VSLPs.showselectedad("+a+");\" oncontextmenu=\"return false\">"+this.aditem[a].body.title+"</td></tr><tr><td align=\"left\" class=\"***\"><!--***rovat: | hirdeto: | start: | end: |***--></td></tr><td align=\"right\" class=\"Adlinks\"><a href=\"javascript:videohirdeto()\" onclick=\"VSLPs.deleteanad("+a+")\">&#160;TÖRLÉS&#160;</a><a href=\"javascript:videohirdeto()\" onclick=\"VSLPs.showselectedad("+a+");\">&#160;MEGTEKINTÉS&#160;</a></td></tr></tbody></table>"
styling=";border:1px solid #AA0000;";
}
cnt=cnt+"<div id=\"SLPVPlist_"+a+"\" style=\"margin:2px;padding:2px;"+styling+"\" onmouseover=\"VSLPs.hoveradlist(1)\" onmouseout=\"VSLPs.hoveradlist(0)\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"AdSum"+this.aditem[a].body.extra+this.aditem[a].body.style+"\"><tbody><tr><td width=\"80px\" height=\"60px\" rowspan=\"3\" onclick=\"VSLPs.admakeselected("+a+")\" oncontextmenu=\"return false\"><img src=\""+tmpimg+"\" width=\"80px\" height=\"60px\" border=\"0\"></td><td align=\"left\" valign=\"top\" class=\"Adtitle\" onclick=\"\" onclick=\"VSLPs.admakeselected("+a+")\" oncontextmenu=\"return false\">"+this.aditem[a].body.title+"</td></tr><tr><td align=\"left\" class=\"***\"><!--***rovat: | hirdeto: | start: | end: |***--></td></tr><td align=\"right\" class=\"Adlinks\"><a href=\"javascript:videohirdeto()\" onclick=\"VSLPs.deleteanad("+a+")\">&#160;TÖRLÉS&#160;</a><a href=\"javascript:videohirdeto()\" onclick=\"VSLPs.admakeselected("+a+")\">&#160;KIVÁLASZTÁS&#160;</a><a href=\"javascript:videohirdeto()\" onclick=\"VSLPs.showselectedad("+a+");\">&#160;MEGTEKINTÉS&#160;</a></td></tr></tbody></table></div>"
}
}
}
document.getElementById("SLPsellistAll").innerHTML=cnt;
if (now.length>0) {
document.getElementById("SLPsellistNowthis").innerHTML=now;
} else {

}
}
},

hoveradlist:function(type) {

},

admakeselected:function(adid) {
if (document.getElementById("SLPsellistAll") && document.getElementById("SLPVPlist_"+adid)) {
this.setnextprev(adid);
this.buildadslist();
}
if (document.getElementById("SLPOpt_tabswitch").checked==true) {
this.showselectedad(adid);
}
},

showselectedad:function(adid) {
this.setnextprev(adid);
this.switchtab('SLPboxMC1', 'SLPboxMC2');
},

deleteanad:function(adid) {
Vadlist.deletead(adid);
var a=0;
if (adid==Vadlist.now.vadid) {
if (Vadlist.now.islast==1) {
for (var c in Vadlist.SLPlist) {
if (a==0 && Vadlist.SLPlist[c]!=0) {
a=c;
}
}
} else {
for (var c in Vadlist.SLPlist) {
if (c==adid) {
a=1;
} else if (a==1) {
a=c;
}
}
}
this.setnextprev(a);
}
this.buildadslist();
},

showinterstitial:function() {

//show, then after check if next!!!

},

playstatus:0,
mutestatus:0,
volumestatus:60,

controlcheck:function(type) {
var result=false;
if (document.getElementById("SLMediaPlayer")) {
if (document.getElementById("SLMediaPlayer").controls) {
result=true;
if (this.viewer.BR>="40") {
result=document.getElementById("SLMediaPlayer").controls.isAvailable(type);
}
}
}
return result;
},

playnow:function() {
if (this.playstatus==1) {
if (this.controlcheck("Pause")) {
if (window.XMLHttpRequest) {
document.getElementById("SLMediaPlayer").controls.pause();
document.getElementById("SLPPvcPlaybtn").src="http://q--sli0.videohirdeto.hu/VP/playnow.gif";
} else {
document.getElementById("SLPPvcPlaybtn").src="http://q--sli0.videohirdeto.hu/VP/playnow.gif";
this.SLPvars.pausedposition=document.getElementById("SLMediaPlayer").controls.currentPosition;
document.getElementById("SLMediaPlayer").controls.stop();
}
}
} else if(this.playstatus==2) {
if (this.controlcheck("Play")) {
if (window.XMLHttpRequest) {
document.getElementById("SLMediaPlayer").controls.play();
document.getElementById("SLPPvcPlaybtn").src="http://q--sli0.videohirdeto.hu/VP/pausenow.gif";
} else {
document.getElementById("SLMediaPlayer").controls.play();
document.getElementById("SLPPvcPlaybtn").src="http://q--sli0.videohirdeto.hu/VP/pausenow.gif";
if (this.SLPvars.pausedposition) {
document.getElementById("SLMediaPlayer").controls.currentPosition=this.SLPvars.pausedposition;
}
}
}
} else {
if (document.getElementById("SLPPvideos") && document.getElementById("SLPPvideop")) {
document.getElementById("SLPPvideos").style.display="none";
document.getElementById("SLPPvideop").style.display="block";
}
if (this.viewer.BR==10) {
if (this.playstatus==3) {
//alert('U'+document.getElementById("SLMediaPlayer"))
//document.getElementById("VadTopContainercnt").innerHTML='';
//Vadlist.openadviewer(Vadlist.now.vadid);
//this.insertplayer(Vadlist.now.vadid);
//document.getElementById("SLMediaPlayer").controls.play();
//this.playstatus=1;
}
//document.getElementById("SLMediaPlayer").uiMode="full";
//document.getElementById("SLMediaPlayer").controls.play();
//document.getElementById("SLMediaPlayer").URL=this.aditem[Vadlist.now.vadid].header.url_video+this.aditem[Vadlist.now.vadid].body.videoid+this.aditem[Vadlist.now.vadid].header.video_format;
//alert('U'+document.getElementById("SLMediaPlayer")+document.getElementById("SLMediaPlayer").innerHTML)
//this.insertplayer(Vadlist.now.vadid);
//this.replayad();
} else {
if (this.controlcheck("Play")) {
document.getElementById("SLMediaPlayer").controls.play();
document.getElementById("SLPPvcPlaybtn").src="http://q--sli0.videohirdeto.hu/VP/pausenow.gif";
}
}
}
},

stopnow:function() {
if (this.controlcheck("Stop")) {
window.clearInterval(this.viewer.counter);
document.getElementById("SLMediaPlayer").controls.stop();
this.playstatus=3;
document.getElementById("SLPPvcPlaybtn").src="http://q--sli0.videohirdeto.hu/VP/playnow.gif";
}
},

doonstop:function() {
window.clearInterval(this.viewer.counter);
this.playstatus=3;
document.getElementById("SLPPvcPlaybtn").src="http://q--sli0.videohirdeto.hu/VP/playnow.gif";
document.getElementById("SLPPvcMutebtn").src="http://q--sli0.videohirdeto.hu/VP/muteoff.gif"
document.getElementById("SLPPvcStat").style.width="5px";
var after=0;
if (document.getElementById("VadTopContainercnt").style.display=="block" && document.getElementById("SLPboxMC2").style.display=="block") {
if (this.SLPvars.interstitials==1) {
this.showinterstitial();
} else {
if (document.getElementById("SLPPvideos") && document.getElementById("SLPPvideop")) {
var tmpimg='http://q--med.videohirdeto.hu/img/'+this.aditem[Vadlist.now.vadid].body.videoimg;
if (this.aditem[Vadlist.now.vadid].body.usertype=="10" || this.aditem[Vadlist.now.vadid].body.usertype=="11") {
//private advertiser
if (this.viewer.playerinsert==1 && Vadlist.SLPBox==1) {
if (Vadlist.now.next!=Vadlist.now.vadid && Vadlist.now.islast==0 && document.getElementById("SLPoptPlaytype").checked==true) {
if (Vadlist.now.next) {
//interstitial!!!
//this.loadadtoviewer(Vadlist.now.next);
this.setnextprev(Vadlist.now.next);
this.switchtab('SLPboxMC1', 'SLPboxMC2');
after=1;
}
}
}
if (after==0) {
after="<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"background-color:#000000\"><tbody><tr><td width=\"100%\" height=\"300px\" align=\"center\" valign=\"middle\"><div style=\"\"><!-- promo --></div><table width=\"300px\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"\"><tbody><tr><td width=\"300px\" height=\"150px\" align=\"center\" valign=\"bottom\" colspan=\"3\" onclick=\"VSLPs.playnow()\" style=\"cursor:pointer;\"><img src=\""+tmpimg+"\" width=\"125px\" height=\"100px\" border=\"0\" style=\"border:2px solid #FFFFFF\"></td></tr><td width=\"100px\" height=\"40px\" align=\"center\" valign=\"top\"></td><td width=\"100px\" height=\"40px\" align=\"center\" valign=\"top\"></td><td width=\"100px\" height=\"40px\" align=\"center\" valign=\"top\"></td></tr></tbody></table></td></tr></tbody></table>";
document.getElementById("SLPPvideos").innerHTML=after;
document.getElementById("SLMediaPlayer").uiMode="invisible";
document.getElementById("SLPPvideop").style.display="none";
document.getElementById("SLPPvideos").style.display="block";
}

} else {
//corporate advertiser
if (this.viewer.playerinsert==1 && Vadlist.SLPBox==1) {
if (Vadlist.now.next!=Vadlist.now.vadid && Vadlist.now.islast==0 && document.getElementById("SLPoptPlaytype").checked==true) {
//setTimeout("if (Vadlist.SLPBox==1 && document.getElementById('SLPboxMC2').style.display=='block') {this.loadadtoviewer("+Vadlist.now.next+")}", 15000);
}
}
//after="<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"background-color:#000000\"><tbody><tr><td width=\"33%\" height=\"40px\" align=\"center\" valign=\"top\" onclick=\"\">Kapcsolatfelvétel</td><td width=\"33%\" height=\"40px\" align=\"center\" valign=\"top\" onclick=\"\">Lejátszás</td><td width=\"33%\" height=\"40px\" align=\"center\" valign=\"top\" onclick=\"\">Tovább</td></tr><tr><td width=\"100%\" height=\"300px\" align=\"center\" valign=\"middle\" colspan=\"3\">promo</td></tr></tbody></table>";
document.getElementById("SLPPvideos").innerHTML=after;
document.getElementById("SLPPvideop").style.display="none";
document.getElementById("SLPPvideos").style.display="block";

}

}
}
}

},

doonstart:function() {
if (document.getElementById("SLPboxMC2").style.display=="block") {
this.playstatus=1;
if (document.getElementById("SLMediaPlayer")) {
if (document.getElementById("SLMediaPlayer").uiMode!="none") {
document.getElementById("SLMediaPlayer").uiMode="none"
}
this.startmute();
this.volumenow(this.volumestatus/0.8);
if (document.getElementById("SLMediaPlayer").currentMedia && Vadlist.now.vadid) {
this.aditem[Vadlist.now.vadid].body.duration=document.getElementById("SLMediaPlayer").currentMedia.duration;
}
window.clearInterval(this.viewer.counter);
this.viewer.counter=window.setInterval("VSLPs.showstate("+Vadlist.now.vadid+")",1000);
}
} else {
this.stopnow();
}
},

mutenow:function() {
if (this.playstatus!=0) {
if (this.mutestatus==0) {
this.mutestatus=1;
document.getElementById("SLPPvcMutebtn").src="http://q--sli0.videohirdeto.hu/VP/muteon.gif"
document.getElementById("SLMediaPlayer").settings.volume=0;
} else {
this.mutestatus=0;
document.getElementById("SLPPvcMutebtn").src="http://q--sli0.videohirdeto.hu/VP/muteoff.gif"
document.getElementById("SLMediaPlayer").settings.volume=this.volumestatus;
}
document.getElementById("SLMediaPlayer").settings.mute=this.mutestatus;
}
},

startmute:function() {
if (document.getElementById("SLMediaPlayer")) {
if(document.getElementById("SLMediaPlayer").settings){
document.getElementById("SLMediaPlayer").settings.mute=this.mutestatus;
if (document.getElementById("SLMediaPlayer").settings.mute==1) {
document.getElementById("SLPPvcMutebtn").src="http://q--sli0.videohirdeto.hu/VP/muteon.gif"
this.mutestatus=1;
} else {
document.getElementById("SLPPvcMutebtn").src="http://q--sli0.videohirdeto.hu/VP/muteoff.gif"
this.mutestatus=0;
}
}
}
},

volumenow:function(newvol) {
var volnum=newvol;
if (newvol=="x") {
volnum=this.volumestatus/0.8;
newvol=0;
}
if (document.getElementById("SLMediaPlayer").settings && newvol>=0 && newvol<=100) {
if (this.mutestatus==1 && this.volumestatus==0) {
} else {
volnum=volnum*0.8;
volnum=Math.round(volnum);
this.volumestatus=volnum;
document.getElementById("SLMediaPlayer").settings.volume=volnum;
if (newvol==0 && this.mutestatus==0) {
this.mutenow();
this.volumestatus=1;
} else if (this.mutestatus==0) {
document.getElementById("SLPPvcMutebtn").src="http://www.videohirdeto.hu/solutionlive/imglib/muteoff.gif"
}
}
}
var vtest=this.volumestatus/20;
vtest=Math.round(vtest);
document.getElementById("SLPPvcVolbtn1").src="http://www.videohirdeto.hu/solutionlive/imglib/volumeoff.gif"
document.getElementById("SLPPvcVolbtn2").src="http://www.videohirdeto.hu/solutionlive/imglib/volumeoff.gif"
document.getElementById("SLPPvcVolbtn3").src="http://www.videohirdeto.hu/solutionlive/imglib/volumeoff.gif"
document.getElementById("SLPPvcVolbtn4").src="http://www.videohirdeto.hu/solutionlive/imglib/volumeoff.gif"
if (vtest>=4) {
document.getElementById("SLPPvcVolbtn1").src="http://www.videohirdeto.hu/solutionlive/imglib/volumeon.gif"
document.getElementById("SLPPvcVolbtn2").src="http://www.videohirdeto.hu/solutionlive/imglib/volumeon.gif"
document.getElementById("SLPPvcVolbtn3").src="http://www.videohirdeto.hu/solutionlive/imglib/volumeon.gif"
document.getElementById("SLPPvcVolbtn4").src="http://www.videohirdeto.hu/solutionlive/imglib/volumeon.gif"
} else if (vtest==3) {
document.getElementById("SLPPvcVolbtn1").src="http://www.videohirdeto.hu/solutionlive/imglib/volumeon.gif"
document.getElementById("SLPPvcVolbtn2").src="http://www.videohirdeto.hu/solutionlive/imglib/volumeon.gif"
document.getElementById("SLPPvcVolbtn3").src="http://www.videohirdeto.hu/solutionlive/imglib/volumeon.gif"
} else if (vtest==2) {
document.getElementById("SLPPvcVolbtn1").src="http://www.videohirdeto.hu/solutionlive/imglib/volumeon.gif"
document.getElementById("SLPPvcVolbtn2").src="http://www.videohirdeto.hu/solutionlive/imglib/volumeon.gif"
} else if (vtest>0) {
document.getElementById("SLPPvcVolbtn1").src="http://www.videohirdeto.hu/solutionlive/imglib/volumeon.gif"
}
},


volumeset:function(level) {
//alert(document.getElementById("SLMediaPlayer").settings.volume);
if (this.mutestatus==1) {
this.mutenow();
}
var newvol=25*level;
this.volumenow(newvol);
},

extravolume:function(type) {
if (type==0 && this.mutestatus==0) {
this.volumenow(this.volumestatus);
} else if (this.mutestatus==0) {
var newvol=this.volumestatus/0.8;
if (newvol>100) {
newvol=100;
} else {
newvol=Math.round(newvol);
}
document.getElementById("SLMediaPlayer").settings.volume=newvol;
}
},

showstate:function(adid) {
if (document.getElementById("SLMediaPlayer")) {
if (document.getElementById("SLMediaPlayer").controls) {
var cur=document.getElementById("SLMediaPlayer").controls.currentPosition;
if (cur>0 && this.aditem[adid].body.duration>0) {
cur=cur/this.aditem[adid].body.duration;
cur=this.viewer.durationbar*cur;
cur=Math.round(cur);
if (!isNaN(cur) && cur>5 && cur<=this.viewer.durationbar) {
document.getElementById("SLPPvcStat").style.width=cur+"px";
}
}
}
}
},

changeposition:function(event, drag) {
if (this.playstatus==1) {
if (drag==0) {
this.SLPvars.dragposition=0;
document.getElementById("SLPPvcStat").style.cursor="pointer";
window.clearInterval(this.viewer.counter);
this.viewer.counter=window.setInterval("VSLPs.showstate("+Vadlist.now.vadid+")",1000);
}
if (this.SLPvars.dragposition==drag) {
var here=0;
if (event.offsetX) {
here=event.offsetX;
} else {
var a=document.getElementById("SLPPvcStatpos");
while (a.offsetParent){
here+= a.offsetLeft;
a=a.offsetParent;
}
here+=a.offsetLeft;
here=event.pageX-here;
}
cur=here/this.viewer.durationbar;
cur=cur*this.aditem[Vadlist.now.vadid].body.duration;
cur=Math.round(cur);
if (drag==0) {
document.getElementById("SLMediaPlayer").controls.currentPosition=cur;
}
if (!isNaN(cur) && cur>5 && cur<=this.viewer.durationbar) {
document.getElementById("SLPPvcStat").style.width=here+"px";
}
}
}
},

allowpositiondrag:function(type) {
if (type==1) {
this.SLPvars.dragposition++;
} else {
this.SLPvars.dragposition--;
}
if (this.SLPvars.dragposition==2) {
document.getElementById("SLPPvcStat").style.cursor="e-resize";
window.clearInterval(this.viewer.counter);
} else if (this.SLPvars.dragposition==0) {
document.getElementById("SLPPvcStat").style.cursor="pointer";
this.viewer.counter=window.setInterval("VSLPs.showstate("+Vadlist.now.vadid+")",1000);
}
},

test:function(event) {
var left=0;
var top=0;
x=document.getElementById("testdiv")
while (x.offsetParent){
left += x.offsetLeft;
top  += x.offsetTop;
x = x.offsetParent;
}
left += x.offsetLeft;
top  += x.offsetTop;
alert(left+'-'+top);
},

playingstatus:function(state) {
if (state) {
switch (state) {
case 1:
VSLPs.doonstop();
break;
case 2:
this.playstatus=2;
window.clearInterval(this.viewer.counter);
break;
case 3:
VSLPs.doonstart();
break;
case 8:
VSLPs.doonstop();
break;
case 10:
if (document.getElementById("SLMediaPlayer").uiMode!="none") {
document.getElementById("SLMediaPlayer").uiMode="none"
}
//this.aditem[Vadlist.now.vadid].body.duration=document.getElementById("SLMediaPlayer").currentMedia.duration;
break;
}
}
},

useraction:function(type, nButton, nShiftState, fX, fY) {
this.playnow();
}

};

Vadlist.SLP=1;
if (SLsystem.loadnext!="0") {
eval(SLsystem.loadnext);
SLsystem.loadnext=0;
}
