/*  ---------------  Cufon fontgeneráló  ------------------ */

Cufon.replace('h1', { color: '-linear-gradient(#FFF, 0.45=#efefef, 0.45=#FFF, #ccc)' })('h2',{ color: '-linear-gradient(#000, 0.45=#763800, #000)' })('h3',{ color: '-linear-gradient(#000, 0.45=#786811, #000)' })('h4')('h5')('h6')

/*  ---------------  Buborékok  ------------------ */

  
   
   $(document).ready(function(){

		$('#3d').CreateBubblePopup({position : 'left', align	 : 'center', innerHtml: 'Barangolj a park területén kedvedre! <br /> \ ', innerHtmlStyle: {color:'#000', 'text-align':'center' }, themeName:  'yellow', themePath: 	'pix/jquerybubblepopup-theme' });
		$('#webcam').CreateBubblePopup({position : 'top', align	 : 'center', innerHtml: 'Nézd meg most <br /> milyen élőben a Szabadidőpark! \ ', innerHtmlStyle: {color:'#000', 'text-align':'center' }, themeName:  'yellow', themePath: 	'pix/jquerybubblepopup-theme' });
		$('#flickr').CreateBubblePopup({position : 'top', align	 : 'center', innerHtml: 'Itt találod Flickr fotóoldalunkat! <br /> \ ', innerHtmlStyle: {color:'#000', 'text-align':'center' }, themeName:  'yellow', themePath: 	'pix/jquerybubblepopup-theme' });
		$('#facebook').CreateBubblePopup({position : 'top', align	 : 'center', innerHtml: 'Találj meg minket a Facebokon! <br /> Írd meg véleményed, vagy csak <br /> egyszerűen like-olj, ha úgy érzed! \ ', innerHtmlStyle: {color:'#000', 'text-align':'center' }, themeName:  'yellow', themePath: 	'pix/jquerybubblepopup-theme' });
		$('#youtube').CreateBubblePopup({position : 'right', align	 : 'center', innerHtml: 'A Szabadidőparkban készült videókat <br /> megtalálod a Youtube csatornánkon!\ ', innerHtmlStyle: {color:'#000', 'text-align':'center' }, themeName:  'yellow', themePath: 	'pix/jquerybubblepopup-theme' });


		$('#3d_de').CreateBubblePopup({position : 'left', align	 : 'center', innerHtml: 'Spaziere auf dem Gelände des Parks  nach Belieben! <br /> \ ', innerHtmlStyle: {color:'#000', 'text-align':'center' }, themeName:  'yellow', themePath: 	'pix/jquerybubblepopup-theme' });
		$('#webcam_de').CreateBubblePopup({position : 'top', align	 : 'center', innerHtml: 'Schau Dir an, was gerade<br />jetzt  in unserem Park abgeht! \ ', innerHtmlStyle: {color:'#000', 'text-align':'center' }, themeName:  'yellow', themePath: 	'pix/jquerybubblepopup-theme' });
		$('#flickr_de').CreateBubblePopup({position : 'top', align	 : 'center', innerHtml: 'Hier findest Du unsere Flickr Fotoseite! <br /> \ ', innerHtmlStyle: {color:'#000', 'text-align':'center' }, themeName:  'yellow', themePath: 	'pix/jquerybubblepopup-theme' });
		$('#facebook_de').CreateBubblePopup({position : 'top', align	 : 'center', innerHtml: 'Finde uns auf Facebook!  <br /> \ ', innerHtmlStyle: {color:'#000', 'text-align':'center' }, themeName:  'yellow', themePath: 	'pix/jquerybubblepopup-theme' });
		$('#youtube_de').CreateBubblePopup({position : 'right', align	 : 'center', innerHtml: 'Videos vom Freizeitpark findest<br /> Du auf unserer YouTube Seite!!\ ', innerHtmlStyle: {color:'#000', 'text-align':'center' }, themeName:  'yellow', themePath: 	'pix/jquerybubblepopup-theme' });
		$('#magyaroldal').CreateBubblePopup({position : 'right', align	 : 'center', innerHtml: 'Ungarischen Seite  <br /> \ ', innerHtmlStyle: {color:'#000', 'text-align':'center' }, themeName:  'yellow', themePath: 	'pix/jquerybubblepopup-theme' });
	
		$('#3d_en').CreateBubblePopup({position : 'left', align	 : 'center', innerHtml: 'Surf the park to your liking! <br /> \ ', innerHtmlStyle: {color:'#000', 'text-align':'center' }, themeName:  'yellow', themePath: 	'pix/jquerybubblepopup-theme' });
		$('#webcam_en').CreateBubblePopup({position : 'top', align	 : 'center', innerHtml: 'Look now, how <br />  to live and Leisure Park! \ ', innerHtmlStyle: {color:'#000', 'text-align':'center' }, themeName:  'yellow', themePath: 	'pix/jquerybubblepopup-theme' });
		$('#flickr_en').CreateBubblePopup({position : 'top', align	 : 'center', innerHtml: 'Here you can find<br /> the Flickr photo page! <br /> \ ', innerHtmlStyle: {color:'#000', 'text-align':'center' }, themeName:  'yellow', themePath: 	'pix/jquerybubblepopup-theme' });
		$('#facebook_en').CreateBubblePopup({position : 'top', align	 : 'center', innerHtml: 'Find us on facebook! <br /> If you feel like it, write us  <br />your comments or just simple like us  <br /> \ ', innerHtmlStyle: {color:'#000', 'text-align':'center' }, themeName:  'yellow', themePath: 	'pix/jquerybubblepopup-theme' });
		$('#youtube_en').CreateBubblePopup({position : 'right', align	 : 'center', innerHtml: 'Videos made in the Leisure Park can<br /> be found on our YouTube channel  \ ', innerHtmlStyle: {color:'#000', 'text-align':'center' }, themeName:  'yellow', themePath: 	'pix/jquerybubblepopup-theme' });
		$('#magyaroldal_en').CreateBubblePopup({position : 'right', align	 : 'center', innerHtml: 'Hungarian Site  <br /> \ ', innerHtmlStyle: {color:'#000', 'text-align':'center' }, themeName:  'yellow', themePath: 	'pix/jquerybubblepopup-theme' });
		
		$('#nemetoldal').CreateBubblePopup({position : 'right', align	 : 'center', innerHtml: 'Deutsch Seite  <br /> \ ', innerHtmlStyle: {color:'#000', 'text-align':'center' }, themeName:  'yellow', themePath: 	'pix/jquerybubblepopup-theme' });
		$('#angololdal').CreateBubblePopup({position : 'right', align	 : 'center', innerHtml: 'English Site <br /> \ ', innerHtmlStyle: {color:'#000', 'text-align':'center' }, themeName:  'yellow', themePath: 	'pix/jquerybubblepopup-theme' });



});
   
   

/*  ---------------  Lava menü  ------------------ */

        $(function() {
            $("#1").lavaLamp({
                fx: "backout", 
                speed: 700,
                click: function(event, menuItem) {
                    return false;
                }
            });
        });
   
   
/*  ---------------  Füvecske  ------------------ */
/*
$(document).ready(function(){

	$("#accordion").accordion({
		active: '.selected', 
	    active: 0,
		autoHeight: false }
	);

	
	$(document).everyTime(6000,						   
		function () { 
			selected_item++;
			if (!(selected_item < count_items))
				selected_item = 0;
			animation();
		}					
	);

	
	$(document).oneTime(1000,						   
		function () { 
				$("#footer").stop().animate({ bottom: "-70px" }, 3000, function() {});
			}					
	);
	
	$("#footer").mouseover(
		function() {
			$("#footer").stop().animate({bottom: "-30px" }, {duration:250});
		}
	);
			
	$("#footer").mouseout(
		function() {
			$("#footer").stop().animate({ bottom: "-70px" }, {duration:2000});
		}
	);

});
   
    */
	
/* ---------------  Google Map Beállítás  ------------------ */	

var map;
var gdir;
var geocoder = null;
var addressMarker;
function initialize() {
if (GBrowserIsCompatible()) { map = new GMap2(document.getElementById("map_canvas"));


map.removeMapType(G_HYBRID_MAP);
var mapControl = new GMapTypeControl();
map.addMapType(G_PHYSICAL_MAP);
map.addControl(mapControl);
map.addControl(new GLargeMapControl());
gdir = new GDirections(map, document.getElementById("directions"));
GEvent.addListener(gdir, "load", onGDirectionsLoad);
GEvent.addListener(gdir, "error", handleErrors);
map.setCenter(new GLatLng(47.071007,18.026841), 15);
}
    }
function setDirections(fromAddress, toAddress, locale) {
gdir.load("from: " + fromAddress + " to: 47.071007,18.026841" + toAddress,
{ "locale": locale });
} 
function handleErrors(){
if (gdir.getStatus().code == G_GEO_UNKNOWN_ADDRESS)
alert("Nem megfelelő földrajzi helyet adtál meg. Ennek egyik oka lehet, hogy viszonylag új a megadott postacím, de az is lehet, hogy csak helytelen beírás történt. Ne habozzál, BOBOZZÁL! :) \nError code: " + gdir.getStatus().code);
else if (gdir.getStatus().code == G_GEO_SERVER_ERROR)
alert("A helymeghatározáshoz nem állnak rendelkezésre megfelelő adatok. A hiba oka ismeretlen. Próbáld meg pontos postacím alapján megismételni az útvonaltervezést, esetleg írj be országnevet is. Köszönjük. Ne habozzál, BOBOZZÁL!\n Error code: " + gdir.getStatus().code);
else if (gdir.getStatus().code == G_GEO_MISSING_QUERY)
alert("A HTTP q paraméter hiányzik vagy nem volt értéke. Lehet, hogy üresen hagytuk a beviteli mezőt? Ejnyebejnye teringettét... hogy találjak oda? Ne habozzál, BOBOZZÁL! \n Error code: " + gdir.getStatus().code);
else if (gdir.getStatus().code == G_GEO_BAD_KEY)
alert("A megadott kulcs érvénytelen, vagy nem egyezik a domain, amelyre irányították. Upsz.... ez nem tom hogy lehet :( Ne habozzál, BOBOZZÁL! \n Error code: " + gdir.getStatus().code);
else if (gdir.getStatus().code == G_GEO_BAD_REQUEST)
alert("Az útvonalkérelmet nem lehet sikeresen feldolgozni. Ejj ejjj ... Próbáld meg más útvonaltervezővel! :( Ne habozzál, BOBOZZÁL! \n Error code: " + gdir.getStatus().code);
else alert("An unknown error occurred.");
}
function onGDirectionsLoad(){ // Use this function to access information about the latest load()
// results.
// e.g.
// document.getElementById("getStatus").innerHTML = gdir.getStatus().code;
// and yada yada yada...
}



 /* ---------------  Animált Scrollozás  ------------------ */


$(document).ready(function() {
	$.localScroll(
	{
		speed:750
	});

});

 /* ---------------  Szevasz! Mehetsz bobozni!  ------------------ */
 
 
