<!--
function openWin(url, name)
		{
	        	popupWin = window.open(url, name,"scrollbars=no,toolbar=0,resizable=no,width=480,height=295");
		}

function MM_preloadImages() 
{ //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

var xwin2 = null
function createWindow(cUrl,cName,cFeatures) 
{
            if (xwin2 != null)
                        xwin2.close()
            xwin2 = window.open(cUrl, cName, cFeatures)
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function Show(id)
{
                var nodes = document.getElementById('videocontainer').childNodes;
                for (i=0; i < nodes.length; i++)

                {
                               if (nodes[i].tagName != "DIV") continue;
                               if (nodes[i].id == id)
                                               document.getElementById(nodes[i].id).style.display = "block";
                               else
                                               document.getElementById(nodes[i].id).style.display = "none";
                }
}

function Show_reszlet(divid, linkid)
{
	var	div = document.getElementById(divid);
	var li = document.getElementById(linkid);
	
	if (div.style.display == "block")
	{
		div.style.display = "none";
		li.innerHTML = "részletek";
	}
	else
	{
		div.style.display = "block";
		li.innerHTML = "bezárás";
	}
}
function mezoTorol(email)
	{
		if(email.value=='Írja be e-mail címét!')
		{
			email.value='';
		}
	}
	
	function csekk()
{
	myForm = document.newsletter;
	
	 
   if (	myForm.email.value == '' )
	 {
		alert('Kérem adja meg e-mail címét!');
		return false
	 }
	if (	myForm.email.value == ' ' )
	 {
		alert('Helytelen e-mail cím!');
		return false
	 }		
	 
	if ( myForm.email.value != '')
	{

		if (	myForm.email.value.indexOf("@") < 0 ||
			myForm.email.value.indexOf(".") < 0 || 
			myForm.email.value.indexOf(" ") > -1 ||
			myForm.email.value.indexOf(".@") > -1
		   )
		{
			alert('Helytelen e-mail cím!');
			return false
		}
	}

	document.forms["newsletter"].submit();

}
var xwin2 = null
function createWindow(cUrl,cName,cFeatures) 
{
            if (xwin2 != null)
                        xwin2.close()
            xwin2 = window.open(cUrl, cName, cFeatures)
}

function get_var(urlVarName) 
{
	//divide the URL in half at the '?' 
	var urlHalves = String(document.location).split('?');
	var urlVarValue = '';
	if(urlHalves[1])
	{
		//load all the name/value pairs into an array 
		var urlVars = urlHalves[1].split('&');
		//loop over the list, and find the specified url variable 
		for(i=0; i<=(urlVars.length); i++)
		{
			if(urlVars[i])
			{
				//load the name/value pair into an array 
				var urlVarPair = urlVars[i].split('=');
				if (urlVarPair[0] && urlVarPair[0] == urlVarName) 
				{
					//I found a variable that matches, load it's value into the return variable 
					var p = urlVarPair[1].split('#');
					urlVarValue = p[0];
				}
			}
		}
	}
	
	return urlVarValue;   
}

function openBlock()
{
	var index = get_var('showblock');
	if (index != "")
		Show_reszlet('reszlet' + index,'reszlet' + index + '_link');
} 
/*function load() {
if (GBrowserIsCompatible()) {
         var map = new GMap2(document.getElementById("map"));
         map.addControl(new GLargeMapControl());
         var MapTypes = map.getMapTypes();
         MapTypes[0].getName= function() { return "text 1";}
         MapTypes[1].getName = function() { return "text 2";}
         MapTypes[2].getName = function() { return "text 3";}
         map.addControl(new GMapTypeControl());
         map.setCenter(new GLatLng(47.47100937067354, 19.046430587768555), 15);
         var info='<div style="background-color: #fff; width: 200px; font-size: 11px; FONT-FAMILY: Verdana, Tahoma, Arial, Sans-Serif;"><B>Emineo Egészségügyi Központ</B><hr>Nádorliget utca 8/b. <hr><B>GPS</B> N: 47&deg; 28&#39; 8&#34; &nbsp;E: 19&deg; 2&#39; 52&#34; </div>';
         var point = new GLatLng(47.468891656982414, 19.047868251800537);
         var marker = new GMarker(point);
         GEvent.addListener(marker, "click", function() {
          marker.openInfoWindowHtml(info);
        });
		 
         map.addOverlay(marker);
         marker.openInfoWindowHtml(info);

	}
}*/
//-->
