function showflash(file,width,height,bgcolor)
	{
	document.write('<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"'+width+'\" height=\"'+height+'\">');
	document.write('<param name=\"allowScriptAccess\" value=\"always\" />');
	document.write('<param name=\"movie\" value=\"'+file+'\" />');
	document.write('<param name=\"quality\" value=\"high\" />');
	document.write('<param name=\"wmode\" value=\"transparent\" />');
	document.write('<param name=\"bgcolor\" value=\"'+bgcolor+'\" />');
	document.write('<param name=\"swliveconnect\" value=\"true\" />');
	document.write('<param name=\"menu\" value=\"false\" />');
	document.write('<embed src=\"'+file+'\" quality=\"high\" bgcolor=\"'+bgcolor+'\" width=\"'+width+'\" height=\"'+height+'\" allowScriptAccess=\"always\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" wmode=\"transparent\"  swliveconnect=\"true\" menu=\"false\"/>');
	document.write('</object>');    
	}
function showelement(element)
    {
    document.getElementById(element).style.display = "block" ;
    window.focus() ;
    }
function hideelement(element)
    {
    document.getElementById(element).style.display = "none" ;
    window.focus() ;
    }
function fotoalbum(cat,subcat,foto,lang)
    {
    var popupwidth = 760, popupheight = 540 ;
    width = screen.width ;
    height = screen.height ;
    if (document.all)
        {
        width = document.body.clientWidth ;
        height = document.body.clientHeight ;
        }
    else if (document.layers)
        {
        width = window.innerWidth ;
        height = window.innerHeight ;
        }
    leftpos = (width-popupwidth)/2 ;
    toppos = (height-popupheight)/2 ;
    window.open("http://www.avaseucentrum.hu/fotoalbum.php?cat="+cat+"&subcat="+subcat+"&foto="+foto+"&lang="+lang,"_blank","toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,width=760,height=540,scrollbars=0,top="+toppos+",left="+leftpos) ;
    }
function signallcities(szam,direction)
    {
    for (i=1;i<szam+1;i++)
        {
        element = "varos"+i ;
        document.getElementById(element).checked = direction ;
        }
    }
function signallplaces(szam,direction)
    {
    for (i=1;i<szam+1;i++)
        {
        element = "hely"+i ;
        document.getElementById(element).checked = direction ;
        }
    }
