$(document).ready(function() {
	$('body a').click(function(){
		$(this).blur();
	});
		
	$('h2.title').click(function() {
		$(this).next('div.teljes').toggle(400);
	});
	
	$('div.teljes:first p').css('background','#bdd531');
	$('div.teljes:first ul').css('background','#bdd531');
	$('div.teljes:first ol').css('background','#bdd531');

	$('div.teljes:last p').css('background','#faae1b');
	$('div.teljes:last ul').css('background','#faae1b');
	$('div.teljes:last ol').css('background','#faae1b');
});

//google maps
function initialize() {
	//javascript:void(prompt('',gApplication.getMap().getCenter()));
	var latlng = new google.maps.LatLng(47.593376, 20.584953);
	var settings = {
		zoom: 10,
		center: latlng,
		mapTypeControl: false,
		mapTypeControlOptions: {style: google.maps.MapTypeControlStyle.DROPDOWN_MENU},
		navigationControl: false,
		navigationControlOptions: {style: google.maps.NavigationControlStyle.SMALL},
		mapTypeId: google.maps.MapTypeId.ROADMAP};

		var map = new google.maps.Map(document.getElementById("map-canvas"), settings);
		var contentString = '<div id="content">'+
			'<div id="siteNotice">'+
			'</div>'+
			'<h1 id="firstHeading" class="firstHeading">Tó-Vidék Fesztivál</h1>'+
			'<div id="bodyContent">'+
			'<p>Leiras.</p>'+
			'</div>'+
			'</div>';
		var infowindow = new google.maps.InfoWindow({
			content: contentString
		});
		
		var companyImage = new google.maps.MarkerImage('http://tovidekfesztival.hu/wp-content/themes/tovidekfesztival/images/ggl-map.png',
			new google.maps.Size(51,20),
			new google.maps.Point(0,0),
			new google.maps.Point(50,50)
		);

		var companyShadow = new google.maps.MarkerImage('http://tovidekfesztival.hu/wp-content/themes/tovidekfesztival/images/ggl-map.png',
			new google.maps.Size(51,20),
			new google.maps.Point(0,0),
			new google.maps.Point(30, 30));

		var companyPos = new google.maps.LatLng(47.593376, 20.584953);

		var companyMarker = new google.maps.Marker({
			position: companyPos,
			map: map,
			icon: companyImage,
			//shadow: companyShadow,
			title:"Tó-Vidék Fesztivál",
			zIndex: 3});

		
		//google.maps.event.addListener(companyMarker, 'click', function() {
		//	infowindow.open(map,companyMarker);
		//});
}

