
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 ("cat"=="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 ("hirdessvideon"=="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 ("cat"=="start" || "cat"=="cnt"|| "cat"=="right" || "cat"=="art") {
VADp.startadplay();
}
if ("cat"!="right" && "cat"!="art") {
Vsite.loadpin(0);
} else {

}
if ("cat"=="cat" || "cat"=="start") {
Vsite.loadcat(0);
}
}


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 ("cat"=="cat") {
var listfile="http://q--ld0.videohirdeto.info/loadlist/"+call+"/"+type+","+from+","+to+"/filmhirado.sljx?"+cache;
} else {
call="hirdessvideon";
var types="cat";
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 ("cat"=="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 ("cat"=="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 ("cat"!="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/hirdessvideon/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--;
}

}


