var hexa = new Array(16);
	hexa.length = 16;
	for(var i=0; i<10; i++)	hexa[i]=i;
	hexa[10]="a"; hexa[11]="b"; hexa[12]="c";
	hexa[13]="d"; hexa[14]="e"; hexa[15]="f"; 
	Akt_i = 0 ; sr=0; sg=0; sb=0; er=0; eg=0; eb=0; step=100; obj="" ;
	KisKepSugo = ["Vonalkód olvasó",
				  "Munka közben..."] ;
	Kiir = ["...Bemutatkozás...", 
			"...Tervezés...", 
			"...Gyártás...", 
			"...Szerelés...", 
			"...Referenciák...", 
			"...Elérhetőségek...",
			"...Vonalkód alapú daruvizsgálati rendszer...",
			"...Itowa márkaképviselet..."] ;
	VDR_Kepek = "<a href='#' ONCLICK='UjAblak();'" +
				"ONMOUSEOVER='window.status=" + '"Kattints rá a nagyításhoz!";' + "document.bigpic=" + '"a_images/VDR_jpg.jpg,00";' + 
				"document.wdth=306; document.hght=400;SugoKiir(0);return true;'" + 
				"ONMOUSEOUT='window.status=" + '""' + ";SugoTorol(); return true;'>" +
				"<IMG SRC='a_thumbnails/VDR_jpg.gif' BORDER=0></a><br>" +
				"<a href='#' ONCLICK='UjAblak();'" +
				"ONMOUSEOVER='window.status=" + '"Kattints rá a nagyításhoz!";' + "document.bigpic="+'"a_images/VDR2_jpg.jpg,00";' + 
				"document.wdth=332; document.hght=400;SugoKiir(1);return true;'" +
				"ONMOUSEOUT='window.status=" + '""' + ";SugoTorol(); return true;'>" +
				"<IMG SRC='a_thumbnails/VDR2_jpg.gif' BORDER=0></a>";

function hex(i)
{
 if (i<0) return "00" ;
 else if (i>255) return "ff" ;
 	  else return "" + hexa[Math.floor(i/16)] + hexa[i%16] ;
}

function Lepes() 
{
	var hr; var hg; var hb;
	hr = hex(Math.floor(sr * ((step-Akt_i)/step) + er * (Akt_i/step))) ;
	hg = hex(Math.floor(sg * ((step-Akt_i)/step) + eg * (Akt_i/step))) ;
	hb = hex(Math.floor(sb * ((step-Akt_i)/step) + eb * (Akt_i/step))) ;
    eval(obj + ".style.backgroundColor = '#' + hr + hg + hb") ;
 	if (++Akt_i <= step) window.setTimeout("Lepes("+obj+")",0) ;
}

function Szinvalto(t_sr, t_sg, t_sb, t_er, t_eg, t_eb, t_Step, t_obj)
{
	sr = t_sr; sg=t_sg; sb=t_sb; er=t_er; eg=t_eg; eb=t_eb; step = t_Step ; obj = t_obj ;
	Akt_i = 0 ;
	Lepes() ;
}

function Szoveg(x)
{
	tartalom.innerHTML = "<iframe width='100%' height='400' id='szoveg'></iframe>" ;
 szoveg.location = "Menu" + x + ".html" ;
 szoveg.focus();
 
 switch (x)
{
	case 8:
		kiskep_cella.innerHTML = "&nbsp;" ;
 		Szinvalto(0,0,0,255,174,46,3,"cella1");
	break
	case 7:
		kiskep_cella.innerHTML = VDR_Kepek ;
		Szinvalto(0,0,0,243,243,243,3,"cella1");
	break
	default:
		kiskep_cella.innerHTML = "&nbsp;" ;
 		Szinvalto(0,0,0,243,243,243,3,"cella1");
}
}

function SetStartPage()
{
	a0.style.display = 'block' ;	
	var db = document.images.length;
	var kepek = new Array(db), ki=0, art="";
	for (i=0; i<db; i++)
		{
		 forras = document.images.item(i).src ;
		 v = forras.lastIndexOf("Menu_") ;
		 ut = forras.slice(0,v) ; 
		 fajlnev = forras.slice(v) ;
		 miez = fajlnev.slice(0,4) ; 
		 ph = fajlnev.indexOf(".") ;
		 if (miez=="Menu")
		 {
			 forras = forras.slice(0,-4) + "_over" + fajlnev.slice(ph) ;
		 }
		 art += forras + "\n" ;
		 kepek[ki] = new Image() ;
		 kepek[ki++].src = forras ;
		}
		
//	tartalom.innerHTML = "<iframe width='100%' height='100%' id='szoveg'></iframe>" ;
//	szoveg.location.href = "StartLap.html" ;
}

function SwitchImg()
{ //start
  var rem, keep=0, store, obj, switcher=new Array, history=document.Data;
    for (rem=0; rem < (SwitchImg.arguments.length-2); rem+=3) {
    	store = SwitchImg.arguments[(navigator.appName == 'Netscape')?rem:rem+1];
    if ((store.indexOf('document.layers[')==0 && document.layers==null) ||
        (store.indexOf('document.all[')==0 && document.all==null))
         store = 'document'+store.substring(store.lastIndexOf('.'),store.length);
         obj = eval(store);
    if (obj != null) {
   	   switcher[keep++] = obj;
      switcher[keep++] = (history==null || history[keep-1]!=obj)?obj.src:history[keep];
      obj.src = SwitchImg.arguments[rem+2];
  } }
  document.Data = switcher;
  cella2.innerText = Kiir[SwitchImg.arguments[3] - 1] ;
} //end 

function RestoreImg()
{ //start
  if (document.Data != null)
    for (var rem=0; rem<(document.Data.length-1); rem+=2)
      document.Data[rem].src=document.Data[rem+1];
 cella2.innerHTML = "&nbsp;"
} //end

function UjAblak() 
{
   window.open('NagyAblak.html?filename='+document.bigpic, 'NagyKep', 
			   'status=no,scrollbars=no,noresize,width='+String(document.wdth + 15)+',height='+String(document.hght + 80));
}

function SugoKiir(KepSzam)
{
  cella2.innerText = KisKepSugo[KepSzam] ;
}

function SugoTorol()
{
  cella2.innerHTML = '&nbsp;' ;
}
