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 showflash2(file,width,height,bgcolor)
	{
	document.write('<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,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 centermessagebox()
    {
    leftpos = 0 ;
    toppos = 0 ;
    if (screen)
        {
        leftpos = (document.body.clientWidth/2) - 164 ;
        toppos = (document.body.scrollTop + document.body.clientHeight/2) - 58 ;
        }
    document.getElementById("messagebox").style.display = "none" ;
    document.getElementById("messagebox").style.left = 360 ;
    document.getElementById("messagebox").style.top = toppos ;
    document.onclick = hidemessagebox ;
    } 
function hidemessagebox()
    {
    document.getElementById("messagebox").style.display = "none" ;
    document.onclick = empty ;
    window.focus() ;
    }
function empty()
    {
    }
function centermatchbox()
    {
    leftpos = 0 ;
    toppos = 0 ;
    if (screen)
        {
        leftpos = (document.body.clientWidth/2) - 164 ;
        toppos = (document.body.scrollTop + document.body.clientHeight/2) - 58 ;
        }
    document.getElementById("matchbox").style.display = "none" ;
    document.getElementById("matchbox").style.left = 360 ;
    document.getElementById("matchbox").style.top = 160 ;
    document.onclick = hidematchbox ;
    } 
function hidematchbox()
    {
    document.getElementById("matchbox").style.display = "none" ;
    document.onclick = empty ;
    window.focus() ;
    }
function map(value)
    {
    window.open("map.php?map="+value,"_blank","toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,width=569,height=420,scrollbars=0") ;
    }
function exkluzivopen()
    {
    window.open("exkluziv.html","_blank","toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,width=950,height=700,scrollbars=0") ;
    }
function isEnterKey(evt)
	{
    if (!evt)
    	{
        evt = window.event ;
        }
	else if (!evt.keyCode)
    	{
        evt.keyCode = evt.which ;
        }
	return (evt.keyCode == 13) ;
    }
function processOnEnter(fld, evt)
    {
    if (isEnterKey(evt))
        {
        return false ;
        }
    return true ;
    }


