if (navigator.appName=="Netscape") 
document.writeln('<link rel="stylesheet" type="text/css" href="netscape.css" title="Netscape">');
else 
document.writeln('<link rel="stylesheet" type="text/css" href="explorer.css" title="Explorer">');

function openWindow(theURL,size,features) {
  window.open(theURL,size,'toolbar=no,location=no,directories=no,resizable=no,scrollbars=yes,menubar=no,width=500,height=500');
}

function openSzeged(theURL,size,features) {
  window.open(theURL,size,'toolbar=no,location=no,directories=no,resizable=no,scrollbars=yes,menubar=no,width=600,height=500');
}

function Kepek(Imgname)
{
var URL;
Features='width=400,height=450,menubar=no,scrollbars=no,resizable=no,statusbar=no';
URL="" + Imgname + ".jpg";
Picture = new Image();
Picture.src = URL;
KEP=window.open("",Imgname,Features);
KEP.document.open();
KEP.document.write('<html><head>');
KEP.document.write('<title>SZEVAFÉM-kép</title>');
KEP.document.write('<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-2\">');
KEP.document.write('<meta http-equiv=\"imagetoolbar\" content=\"no\">');
KEP.document.write('<script language=\"JavaScript\" src=\"szevafem.js\"></script>');
KEP.document.write('</head>');
KEP.document.write('<body leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\" bgcolor=\"#90df46\" oncontextmenu=\"return false\" ondragstart=\"return false\" onselectstart=\"return false\">');
KEP.document.write('<center><img src=\"' + URL + '\" onDblClick=\"window.close()\" alt=\"Kétszer kattint >>> Bezár\"><br><br>');
KEP.document.write('<a href=\"javascript:parent.close()\"><b>Ablak bezárása</b></a>');
KEP.document.write('</body></html>');
return true;
}

plus=new Image();plus.src="plus.gif";
openfolder=new Image();openfolder.src="open.gif";
minus=new Image();minus.src="minus.gif";
closedfolder=new Image();closedfolder.src="closed.gif";
webpage=new Image();webpage.src="webpage.gif";
down=new Image();down.src="down.gif";
t=new Image();t.src="t.gif";
l=new Image();l.src="l.gif";
dash=new Image();dash.src="dash.gif";

if(queryField("category")=="Rota"){setTimeout("showhide(RotaContents,RotaFolder,RotaSign)",1000)}
	if(queryField("category")=="Mini"){setTimeout("showhide(RotaContents,RotaFolder,RotaSign);showhide(Mini,MiniFolder,MiniSign)",1000)}
	if(queryField("category")=="Taro"){setTimeout("showhide(RotaContents,RotaFolder,RotaSign);showhide(TaroContents,TaroFolder,TaroSign)",1000)}
		if(queryField("category")=="TaroUtan"){setTimeout("showhide(RotaContents,RotaFolder,RotaSign);showhide(TaroContents,TaroFolder,TaroSign);showhide(TaroUtan,TaroUtanFolder,TaroUtanSign)",1000)}
		if(queryField("category")=="TaroToml"){setTimeout("showhide(RotaContents,RotaFolder,RotaSign);showhide(TaroContents,TaroFolder,TaroSign);showhide(TaroToml,TaroTomlFolder,TaroTomlSign)",1000)}

if(queryField("category")=="Alte"){setTimeout("showhide(AlteContents,AlteFolder,AlteSign)",1000)}
	if(queryField("category")=="Af1Tart"){setTimeout("showhide(AlteContents,AlteFolder,AlteSign);showhide(Af1Tart,Af1TartFolder,Af1TartSign)",1000)}
	if(queryField("category")=="Sepr"){setTimeout("showhide(AlteContents,AlteFolder,AlteSign);showhide(Sepr,SeprFolder,SeprSign)",1000)}
	if(queryField("category")=="Funy"){setTimeout("showhide(AlteContents,AlteFolder,AlteSign);showhide(Funy,FunyFolder,FunySign)",1000)}
	if(queryField("category")=="Fugy"){setTimeout("showhide(AlteContents,AlteFolder,AlteSign);showhide(Fugy,FugyFolder,FugySign)",1000)}
	if(queryField("category")=="Kasz"){setTimeout("showhide(AlteContents,AlteFolder,AlteSign);showhide(Kasz,KaszFolder,KaszSign)",1000)}

if(queryField("category")=="Komp"){setTimeout("showhide(KompContents,KompFolder,KompSign)",1000)}
	if(queryField("category")=="Emot"){setTimeout("showhide(KompContents,KompFolder,KompSign);showhide(Emot,EmotFolder,EmotSign)",1000)}
	if(queryField("category")=="Trako"){setTimeout("showhide(TrakoContents,TrakoFolder,TrakoSign);showhide(Bio,BioFolder,BioSign)",1000)}

if(queryField("category")=="Morz"){setTimeout("showhide(MorzContents,MorzFolder,MorzSign)",1000)}
	if(queryField("category")=="MoKe"){setTimeout("showhide(MorzContents,MorzFolder,MorzSign);showhide(MoKe,MoKeFolder,MoKeSign)",1000)}
	if(queryField("category")=="Momo"){setTimeout("showhide(MorzContents,MorzFolder,MorzSign);showhide(Momo,MomoFolder,MomoSign)",1000)}
		if(queryField("category")=="Momotd"){setTimeout("showhide(MorzContents,MorzFolder,MorzSign);showhide(MomoContents,MomoFolder,MomoSign);showhide(Momtd,MomtdFolder,MomtdSign)",1000)}

if(queryField("category")=="Csom"){setTimeout("showhide(CsomContents,CsomFolder,CsomSign)",1000)}
	if(queryField("category")=="Kics"){setTimeout("showhide(CsomContents,CsomFolder,CsomSign);showhide(Kics,KicsFolder,KicsSign)",1000)}
	if(queryField("category")=="Nagy"){setTimeout("showhide(CsomContents,CsomFolder,CsomSign);showhide(Nagy,NagyFolder,NagySign)",1000)}

if(queryField("category")=="Sziv"){setTimeout("showhide(SzivContents,SzivFolder,SzivSign)",1000)}
	if(queryField("category")=="Dies"){setTimeout("showhide(SzivContents,SzivFolder,SzivSign);showhide(Dies,DiesFolder,DiesSign)",1000)}
	if(queryField("category")=="Adap"){setTimeout("showhide(SzivContents,SzivFolder,SzivSign);showhide(Adap,AdapFolder,AdapSign)",1000)}

if(queryField("category")=="Hurk"){setTimeout("showhide(HurkContents,HurkFolder,HurkSign)",1000)}
	if(queryField("category")=="Ht1"){setTimeout("showhide(HurkContents,HurkFolder,HurkSign);showhide(Ht1,Ht1Folder,Ht1Sign)",1000)}

if(queryField("category")=="Szez"){setTimeout("showhide(SzezContents,SzezFolder,SzezSign)",1000)}
	if(queryField("category")=="Gyom"){setTimeout("showhide(SzezContents,SzezFolder,SzezSign);showhide(Gyom,GyomFolder,GyomSign)",1000)}
	if(queryField("category")=="Uveg"){setTimeout("showhide(SzezContents,SzezFolder,SzezSign);showhide(Uveg,UvegFolder,UvegSign)",1000)}

if(queryField("category")=="Egye"){setTimeout("showhide(EgyeContents,EgyeFolder,EgyeSign)",1000)}
	if(queryField("category")=="Fest"){setTimeout("showhide(EgyeContents,EgyeFolder,EgyeSign);showhide(Fest,FestFolder,FestSign)",1000)}
	if(queryField("category")=="Tolo"){setTimeout("showhide(EgyeContents,EgyeFolder,EgyeSign);showhide(Tolo,ToloFolder,ToloSign)",1000)}
		if(queryField("category")=="ToloNagy"){setTimeout("showhide(EgyeContents,EgyeFolder,EgyeSign);showhide(ToloContents,ToloFolder,ToloSign);showhide(ToloNagy,ToloNagyFolder,ToloNagySign)",1000)}
	if(queryField("category")=="Spre"){setTimeout("showhide(EgyeContents,EgyeFolder,EgyeSign);showhide(Spre,SpreFolder,SpreSign)",1000)}
	if(queryField("category")=="Elek"){setTimeout("showhide(EgyeContents,EgyeFolder,EgyeSign);showhide(Elek,ElekFolder,ElekSign)",1000)}
	if(queryField("category")=="Satu"){setTimeout("showhide(EgyeContents,EgyeFolder,EgyeSign);showhide(Satu,SatuFolder,SatuSign)",1000)}

if(queryField("category")=="Ujte"){setTimeout("showhide(UjteContents,UjteFolder,UjteSign)",1000)}
	if(queryField("category")=="Vibr"){setTimeout("showhide(UjteContents,UjteFolder,UjteSign);showhide(Vibr,VibrFolder,VibrSign)",1000)}

function queryField(opt)
{
  var keyloc
  var nextkey
  var start
  var opts
  var optval
  opts=location.search
  keyloc = opts.indexOf("&" + opt + "=")
  if(keyloc == -1){keyloc = opts.indexOf("?" + opt + "=")}
  if(keyloc == -1){return ""} 
  nextkey = opts.indexOf("&",keyloc+1)  
  if (nextkey == -1){nextkey = opts.length}
  if (nextkey < keyloc){return ""}  
  sval = keyloc+2+opt.length
  optval = plustospace(unescape(opts.substring(sval,nextkey)))
  return optval
}

function plustospace(txt)
{
  if (txt == "") { return txt }
  
  var newtxt=""
  var pos=0
  var prev=0
  var done=false
  var tmp
  
  while (!done) {
    pos = txt.indexOf("+",prev)
    if (prev >= txt.length){done = true}
    else if (pos == 0){prev=1;newtxt += " "}
    else if ((pos < 0) || (pos == "")) {done = true}
    else {
      if (pos>prev) { newtxt += txt.substring(prev,pos) }
      newtxt += " "
      prev=pos+1
    }
  }
  newtxt += txt.substring(prev,txt.length)
  return newtxt  
}

var onoff='0';

function showhide(menu,folder,sign)
{
   if (menu.style.display=='none')
   {
      menu.style.display=''
      folder.src="open.gif"
      sign.src="minus.gif"
   }else
   {
      menu.style.display='none'
      folder.src="closed.gif"
      sign.src="plus.gif"
   }
}

var x = "ttt_x.jpg";
var o = "ttt_o.gif";
var blank = "ttt_b.jpg";
var pause = 0;
var all = 0;
var a = 0;
var b = 0;
var c = 0;
var d = 0;
var e = 0;
var f = 0;
var g = 0;
var h = 0;
var i = 0;
var temp="";
var ok = 0;
var cf = 0;
var choice=9;
var aRandomNumber = 0;
var comp = 0; 
var t = 0;
var wn = 0;
var ls = 0;
var ts = 0;

function help() {
  alert("Sajnos győzni, nem tudunk segíteni!")
}

function logicOne() {
  if ((a==1)&&(b==1)&&(c==1)) all=1;
  if ((a==1)&&(d==1)&&(g==1)) all=1;
  if ((a==1)&&(e==1)&&(i==1)) all=1;
  if ((b==1)&&(e==1)&&(h==1)) all=1;
  if ((d==1)&&(e==1)&&(f==1)) all=1;
  if ((g==1)&&(h==1)&&(i==1)) all=1;
  if ((c==1)&&(f==1)&&(i==1)) all=1;
  if ((g==1)&&(e==1)&&(c==1)) all=1;
  if ((a==2)&&(b==2)&&(c==2)) all=2;
  if ((a==2)&&(d==2)&&(g==2)) all=2;
  if ((a==2)&&(e==2)&&(i==2)) all=2;
  if ((b==2)&&(e==2)&&(h==2)) all=2;
  if ((d==2)&&(e==2)&&(f==2)) all=2;
  if ((g==2)&&(h==2)&&(i==2)) all=2;
  if ((c==2)&&(f==2)&&(i==2)) all=2;
  if ((g==2)&&(e==2)&&(c==2)) all=2;
  if ((a != 0)&&(b != 0)&&(c != 0)&&(d != 0)&&(e != 0)&&(f != 0)&&(g != 0)&&(h != 0)&&(i != 0)&&(all == 0)) all = 3;
} 

function logicTwo() {
  if ((a==2)&&(b==2)&&(c== 0)&&(temp=="")) temp="C";
  if ((a==2)&&(b== 0)&&(c==2)&&(temp=="")) temp="B";
  if ((a== 0)&&(b==2)&&(c==2)&&(temp=="")) temp="A";
  if ((a==2)&&(d==2)&&(g== 0)&&(temp=="")) temp="G";
  if ((a==2)&&(d== 0)&&(g==2)&&(temp=="")) temp="D";
  if ((a== 0)&&(d==2)&&(g==2)&&(temp=="")) temp="A";
  if ((a==2)&&(e==2)&&(i== 0)&&(temp=="")) temp="I";
  if ((a==2)&&(e== 0)&&(i==2)&&(temp=="")) temp="E";
  if ((a== 0)&&(e==2)&&(i==2)&&(temp=="")) temp="A";
  if ((b==2)&&(e==2)&&(h== 0)&&(temp=="")) temp="H";
  if ((b==2)&&(e== 0)&&(h==2)&&(temp=="")) temp="E";
  if ((b== 0)&&(e==2)&&(h==2)&&(temp=="")) temp="B";
  if ((d==2)&&(e==2)&&(f== 0)&&(temp=="")) temp="F";
  if ((d==2)&&(e== 0)&&(f==2)&&(temp=="")) temp="E";
  if ((d== 0)&&(e==2)&&(f==2)&&(temp=="")) temp="D";
  if ((g==2)&&(h==2)&&(i== 0)&&(temp=="")) temp="I";
  if ((g==2)&&(h== 0)&&(i==2)&&(temp=="")) temp="H";
  if ((g== 0)&&(h==2)&&(i==2)&&(temp=="")) temp="G";
  if ((c==2)&&(f==2)&&(i== 0)&&(temp=="")) temp="I";
  if ((c==2)&&(f== 0)&&(i==2)&&(temp=="")) temp="F";
  if ((c== 0)&&(f==2)&&(i==2)&&(temp=="")) temp="C";
  if ((g==2)&&(e==2)&&(c== 0)&&(temp=="")) temp="C";
  if ((g==2)&&(e== 0)&&(c==2)&&(temp=="")) temp="E";
  if ((g== 0)&&(e==2)&&(c==2)&&(temp=="")) temp="G";
}

function logicThree() {
  if ((a==1)&&(b==1)&&(c==0)&&(temp=="")) temp="C";
  if ((a==1)&&(b==0)&&(c==1)&&(temp=="")) temp="B";
  if ((a==0)&&(b==1)&&(c==1)&&(temp=="")) temp="A";
  if ((a==1)&&(d==1)&&(g==0)&&(temp=="")) temp="G";
  if ((a==1)&&(d==0)&&(g==1)&&(temp=="")) temp="D";
  if ((a==0)&&(d==1)&&(g==1)&&(temp=="")) temp="A";
  if ((a==1)&&(e==1)&&(i==0)&&(temp=="")) temp="I";
  if ((a==1)&&(e==0)&&(i==1)&&(temp=="")) temp="E";
  if ((a==0)&&(e==1)&&(i==1)&&(temp=="")) temp="A";
  if ((b==1)&&(e==1)&&(h==0)&&(temp=="")) temp="H";
  if ((b==1)&&(e==0)&&(h==1)&&(temp=="")) temp="E";
  if ((b==0)&&(e==1)&&(h==1)&&(temp=="")) temp="B";
  if ((d==1)&&(e==1)&&(f==0)&&(temp=="")) temp="F";
  if ((d==1)&&(e==0)&&(f==1)&&(temp=="")) temp="E";
  if ((d==0)&&(e==1)&&(f==1)&&(temp=="")) temp="D";
  if ((g==1)&&(h==1)&&(i==0)&&(temp=="")) temp="I";
  if ((g==1)&&(h==0)&&(i==1)&&(temp=="")) temp="H";
  if ((g==0)&&(h==1)&&(i==1)&&(temp=="")) temp="G";
  if ((c==1)&&(f==1)&&(i==0)&&(temp=="")) temp="I";
  if ((c==1)&&(f==0)&&(i==1)&&(temp=="")) temp="F";
  if ((c==0)&&(f==1)&&(i==1)&&(temp=="")) temp="C";
  if ((g==1)&&(e==1)&&(c==0)&&(temp=="")) temp="C";
  if ((g==1)&&(e==0)&&(c==1)&&(temp=="")) temp="E";
  if ((g==0)&&(e==1)&&(c==1)&&(temp=="")) temp="G";
}

function clearOut() {
  document.game.you.value="0";
  document.game.computer.value="0";
  document.game.ties.value="0";
}

function checkSpace() {
  if ((temp=="A")&&(a==0)) {
    ok=1;
    if (cf==0) a=1;
    if (cf==1) a=2;
  }
  if ((temp=="B")&&(b==0)) {
    ok=1;
    if (cf==0) b=1;
    if (cf==1) b=2;
  }
  if ((temp=="C")&&(c==0)) {
    ok=1;
    if (cf==0) c=1;
    if (cf==1) c=2;
  }
  if ((temp=="D")&&(d==0)) {
    ok=1;
    if (cf==0) d=1;
    if (cf==1) d=2;
  }
  if ((temp=="E")&&(e==0)) {
    ok=1;
    if (cf==0) e=1;
    if (cf==1) e=2;
  }
  if ((temp=="F")&&(f==0)) {
    ok=1
    if (cf==0) f=1;
    if (cf==1) f=2;
  }
  if ((temp=="G")&&(g==0)) {
    ok=1
    if (cf==0) g=1;
    if (cf==1) g=2;
  }
  if ((temp=="H")&&(h==0)) {
    ok=1;
    if (cf==0) h=1;
    if (cf==1) h=2;
  }
  if ((temp=="I")&&(i==0)) {
    ok=1;
    if (cf==0) i=1; 
    if (cf==1) i=2; 
  }
}

function yourChoice(chName) {
  pause = 0;
  if (all!=0) ended();
  if (all==0) {
    cf = 0;
    ok = 0;
    temp=chName;
    checkSpace();
    if (ok==1) {
      document.images[chName].src = x;
    }
    if (ok==0)taken();
    process();
    if ((all==0)&&(pause==0)) myChoice();
  }
}

function taken() {
  alert("A mezô foglalt! Válasszon másikat!")
  pause=1;
}

function myChoice() {
  temp="";
  ok = 0;
  cf=1;
  logicTwo();
  logicThree();
  checkSpace();
  while(ok==0) {
    aRandomNumber=Math.random()
    comp=Math.round((choice-1)*aRandomNumber)+1;
    if (comp==1) temp="A";
    if (comp==2) temp="B";
    if (comp==3) temp="C";
    if (comp==4) temp="D";
    if (comp==5) temp="E";
    if (comp==6) temp="F";
    if (comp==7) temp="G";
    if (comp==8) temp="H";
    if (comp==9) temp="I";
    checkSpace();
  }
  document.images[temp].src= o;
  process();
}

function ended() {
  alert("A játéknak vége. Tovább az ÚJ JÁTÉK gombbal.")
}

function process() {
  logicOne();
  if (all==1) { wn++ }
  if (all==2) { ls++ }
  if (all==3) { ts++ }
  if (all!=0) {
    document.game.you.value = wn;
    document.game.computer.value = ls;
    document.game.ties.value = ts;
  }
}

function playAgain() {
  if (all==0) {
    if(confirm("Egy új játék kezdôdik.")) reset();
  }
  if (all>0) reset();
}

function reset() {
  all = 0;
  a = 0;
  b = 0;
  c = 0;
  d = 0;
  e = 0;
  f = 0;
  g = 0;
  h = 0;
  i = 0;
  temp="";
  ok = 0;
  cf = 0;
  choice=9;
  aRandomNumber = 0;
  comp = 0; 
  document.images.A.src= blank;
  document.images.B.src= blank;
  document.images.C.src= blank;
  document.images.D.src= blank;
  document.images.E.src= blank;
  document.images.F.src= blank;
  document.images.G.src= blank;
  document.images.H.src= blank;
  document.images.I.src= blank;
  if (t==0) { t=2; myChoice(); }
  t--;
}

function slideshow_fade(theimages, fadewidth, fadeheight, borderwidth, fadebgcolor, delay, pause, displayorder, maxrotations, steps, interval) {
	
	this.rotations=0
	this.maxrotations=maxrotations
	this.pausecheck=pause
	this.mouseovercheck=0
	this.delay=delay
	if (steps==0) { this.steps=10 } else { this.steps=steps }
	if (this.steps>100) { this.steps=100 }
	this.degree=this.steps 
	if (interval==0) { this.interval=50 } else { this.interval=interval } 
	this.curimageindex=0
	this.nextimageindex=1
	himg_sl_fadearray[himg_sl_fadearray.length]=this
	this.slideshowid=himg_sl_fadearray.length-1
	this.canvasbase="himg_canvas"+this.slideshowid
	this.curcanvas=this.canvasbase+"_0"
	
	this.theimages=theimages
	if (typeof displayorder!="undefined")
			theimages.sort(function() {return 0.5 - Math.random();}) 
	
	this.imageborder=parseInt(borderwidth)
	this.postimages=new Array() 
	
	for (p=0;p<theimages.length;p++){
		this.postimages[p]=new Image()
		this.postimages[p].src=theimages[p][0]
	}
 
	var fadewidth=fadewidth+this.imageborder*2
	var fadeheight=fadeheight+this.imageborder*2
	 
	if (himg_sl_iebrowser&&himg_sl_dom||himg_sl_dom) { 
		document.write('<div id="'+this.canvasbase+'" style="z-index:1;position:relative;top:0px;left:0px;width:'+fadewidth+'px;height:'+fadeheight+'px;overflow:hidden;">')
		document.write('<div id="'+this.canvasbase+'_0" style="z-index:1;position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0px;left:0px;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);-moz-opacity:10;-khtml-opacity:10;background-color:'+fadebgcolor+'"></div>')
		document.write('<div id="'+this.canvasbase+'_1" style="z-index:1;position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0px;left:0px;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);-moz-opacity:10;background-color:'+fadebgcolor+'"></div>')
		document.write('</div>')
	} else {
		document.write('<div style="z-index:10;"><img name="defaultslide'+this.slideshowid+'" src="'+this.postimages[0].src+'" alt="'+this.theimages[0][3]+'"></div>')
	}
		 
	if (himg_sl_iebrowser&&himg_sl_dom||himg_sl_dom)
		this.startit()
	else {
		this.curimageindex++
		setInterval("himg_sl_fadearray["+this.slideshowid+"].rotateimage()", this.delay)
	}
}

function slideshow_fade_fadepic(obj){
	if (obj.degree<100){
		obj.degree+=obj.steps
		if ((typeof obj.tempobj.filters == 'object')&&(typeof obj.tempobj.filters['DXImageTransform.Microsoft.Alpha'] == 'object')) obj.tempobj.filters['DXImageTransform.Microsoft.Alpha'].opacity=obj.degree 
		else if (obj.tempobj.style.filter) obj.tempobj.style.filter="alpha(opacity="+obj.degree+")" // IE5.5-
		else if (obj.tempobj.style.MozOpacity) obj.tempobj.style.MozOpacity=obj.degree/101			// Mozilla
		else if (obj.tempobj.style.KhtmlOpacity) obj.tempobj.style.KhtmlOpacity=obj.degree/100  // Konqueror, Safari
	}
	else{
		clearInterval(himg_sl_fadeclear[obj.slideshowid])
		obj.nextcanvas=(obj.curcanvas==obj.canvasbase+"_0")? obj.canvasbase+"_0" : obj.canvasbase+"_1"
		obj.tempobj=himg_sl_iebrowser? himg_sl_iebrowser[obj.nextcanvas] : document.getElementById(obj.nextcanvas)
		obj.populateslide(obj.tempobj, obj.nextimageindex)
		obj.nextimageindex=(obj.nextimageindex<obj.postimages.length-1)? obj.nextimageindex+1 : 0
		setTimeout("himg_sl_fadearray["+obj.slideshowid+"].rotateimage()", obj.delay)
	}
}

slideshow_fade.prototype.populateslide=function(picobj, picindex){
	var slideHTML=""
	if (this.theimages[picindex][1]!="") 
		slideHTML='<a href="'+this.theimages[picindex][1]+'" target="'+this.theimages[picindex][2]+'">'
	slideHTML+='<img src="'+this.postimages[picindex].src+'" border="'+this.imageborder+'px" alt="'+this.theimages[picindex][3]+'">'
	if (this.theimages[picindex][1]!="") 
		slideHTML+='</a>'
	picobj.innerHTML=slideHTML
}

slideshow_fade.prototype.rotateimage=function(){
	if (this.maxrotations!=0 && this.rotations>=this.maxrotations) {
		return;
	}

	if (this.pausecheck==1) 
		var cacheobj=this
	if (this.mouseovercheck==1)
		setTimeout(function(){cacheobj.rotateimage()}, 100)
	else if (himg_sl_iebrowser&&himg_sl_dom||himg_sl_dom){
		this.resetit()
	
		var crossobj=this.tempobj=himg_sl_iebrowser? himg_sl_iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
	
		crossobj.style.zIndex++
		himg_sl_fadeclear[this.slideshowid]=setInterval("slideshow_fade_fadepic(himg_sl_fadearray["+this.slideshowid+"])",this.interval)
		this.curcanvas=(this.curcanvas==this.canvasbase+"_0")? this.canvasbase+"_1" : this.canvasbase+"_0"
		}
	else{
		var ns4imgobj=document.images[this.canvasbase+"_0"+this.slideshowid]
		ns4imgobj.src=this.postimages[this.curimageindex].src
	}
	this.curimageindex=(this.curimageindex<this.postimages.length-1)? this.curimageindex+1 : 0
	
	if (this.maxrotations!=0 && this.curimageindex==0) { this.rotations++ }
}

slideshow_fade.prototype.resetit=function(){
	this.degree=this.steps
	var crossobj=himg_sl_iebrowser? himg_sl_iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)

	if ((typeof crossobj.filters == 'object')&&(typeof crossobj.filters['DXImageTransform.Microsoft.Alpha'] == 'object')) crossobj.filters['DXImageTransform.Microsoft.Alpha'].opacity=this.degree 
	else if (crossobj.style.filter) crossobj.style.filter="alpha(opacity="+this.degree+")" // IE5.5-
	else if (crossobj.style.MozOpacity) crossobj.style.MozOpacity=this.degree/101			// Mozilla
	else if (crossobj.style.KhtmlOpacity) crossobj.style.KhtmlOpacity=this.degree/100  // Konqueror, Safari
}
 
slideshow_fade.prototype.startit=function(){
	var crossobj=himg_sl_iebrowser? himg_sl_iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)

	this.populateslide(crossobj, this.curimageindex)

	if (this.pausecheck==1){
		var cacheobj=this
		var crossobjcontainer=himg_sl_iebrowser? himg_sl_iebrowser[this.canvasbase] : document.getElementById(this.canvasbase)
		crossobjcontainer.onmouseover=function(){cacheobj.mouseovercheck=1}
		crossobjcontainer.onmouseout=function(){cacheobj.mouseovercheck=0}
	}

	this.rotateimage()
}

function vege() {
document.write("<center><span class='copy'>Copyright &copy; SZEVAF&Eacute;M<br>");
document.write("Copyright &copy; 2003-2010 by <a href='http://www.hmks.hu' target='_top'>HMKS</a>. All rights reserved.<br>");
document.write("All specifications subject to change without notice.</span><br><br><br></body></html>");
}
