/*A projekthez tartozó összes JS funkció gyűjtője*/

function toggleIt(node) {
	if (document.getElementById(node).style.display == "none") {
		document.getElementById(node).style.display = "block";
	} else {
		document.getElementById(node).style.display = "none";
	}
}

function popUp(url, windowName, height, width) {
	var wnd = window.open(url, windowName, "height="+height+",width="+width+",status=no,menubar=no,resizable=no,directories=no,locationbar=no");
	wnd.focus();
}

function popUpScroll(url, windowName, height, width) {
	var wnd = window.open(url, windowName, "height="+height+",width="+width+",status=no,menubar=no,resizable=no,directories=no,locationbar=no,scrollbars=yes");
	wnd.focus();
}

function gMapLoad() {
	if (GBrowserIsCompatible()) {
		var map = new GMap2(document.getElementById("map"));
		map.setCenter(new GLatLng(47.53154566112892, 19.157238006591797), 15);
		var point = new GLatLng(47.53154566112892, 19.157238006591797);
		map.addControl(new GSmallMapControl());
        //map.addControl(new GMapTypeControl());
		var marker = new GMarker(point);
		GEvent.addListener(marker, "click", function() {
			marker.openInfoWindowHtml("1161 Budapest<br/>József u. 177. E. épület fsz. 2.<br/><a href='http://maps.google.com/maps?saddr=Budapest, Hungary&daddr=47.53154566112892, 19.157238006591797' target='_blank'>Útvonal tervezése ide</a>");
		});
		map.addOverlay(marker);
	}
}