function spam() {
	var s = "offgfhi3cfec@3smi.n2uss-t0iqv5.:h1uv";
	var j= "";
	for (var i=0; i<=34; i++)
	{
		if (i%2 == 0)
		{
			j = j+s.substr(i,1);
		}
	}
	document.getElementById('mail').innerHTML = '<a href="mailto:' + j +'">' + j + '</a>';
	
	
	
	/* preload */
	var i1 = document.createElement('img');
  	i1.setAttribute('src','http://sinustiv.hu/assets/sinustiv_pin.png');
  	var i2 = document.createElement('img');
  	i2.setAttribute('src','http://sinustiv.hu/assets/sinustiv_pin_shadow.png');
  	var i3 = document.createElement('img');
  	i3.setAttribute('src','http://sinustiv.hu/assets/sinustiv_pin_2.png');
  	var i4 = document.createElement('img');
  	i4.setAttribute('src','http://sinustiv.hu/assets/sinustiv_pin_2_shadow.png');
  	
  	document.getElementById("preload").appendChild(i1);
  	document.getElementById("preload").appendChild(i2);
  	document.getElementById("preload").appendChild(i3);
  	document.getElementById("preload").appendChild(i4);	
}

function showMap() {
	if (document.getElementById("map_container").style.height != 'auto') { 
		document.getElementById("map_container").style.height = "auto";
	} else {
		document.getElementById("map_container").style.height = "1px";
	}
}

function showRefs() {
	document.getElementById("morecontent").style.display = "block";
	document.getElementById("moremore").style.display = "none";
}



	var map;
	
    function load() {
      if (GBrowserIsCompatible()) {
      	 var mapOptions = {
            googleBarOptions : {
              style : "new"
            }
          }
        map = new GMap2(document.getElementById("map"), mapOptions);
        map.setCenter(new GLatLng(27.7000, 18.9959), 14);
          
        map.setUIToDefault();
            

      	var icon1 = new GIcon();
		icon1.image = "http://sinustiv.hu/assets/sinustiv_pin.png";
		icon1.shadow = "http://sinustiv.hu/assets/sinustiv_pin_shadow.png";
		icon1.iconSize = new GSize(50, 55);
		icon1.shadowSize = new GSize(67, 55);
		icon1.iconAnchor = new GPoint(25, 55);
		icon1.infoWindowAnchor = new GPoint(5, 1);
		
		
		var icon2 = new GIcon();
		icon2.image = "http://sinustiv.hu/assets/sinustiv_pin_2.png";
		icon2.shadow = "http://sinustiv.hu/assets/sinustiv_pin_2_shadow.png";
		icon2.iconSize = new GSize(166, 55);
		icon2.shadowSize = new GSize(166, 55);
		icon2.iconAnchor = new GPoint(25, 55);
		icon2.infoWindowAnchor = new GPoint(5, 1);
		
		var marker1 = new GMarker(new GLatLng(47.510755,19.047500),icon1);
		var marker2 = new GMarker(new GLatLng(47.510755,19.047500),icon2);
		
		map.addOverlay(marker1);
		
		
		GEvent.addListener(marker1, "mouseover", function() {
			marker1.hide();
			map.addOverlay(marker2);
			return marker1;
		});
		
		GEvent.addListener(marker2, "mouseout", function() {
			marker2.hide();
			map.addOverlay(marker1);
			return marker2;
		});
		
		GEvent.addListener(marker2, "click", function() {
			window.open('http://maps.google.hu/maps?f=q&source=s_q&hl=hu&geocode=&q=1055+Budapest,+Stoll%C3%A1r+B%C3%A9la+utca+4,+Magyarorsz%C3%A1g&sll=47.15984,19.500732&sspn=6.805529,10.393066&ie=UTF8&hq=&hnear=1055+Budapest,+V.+ker%C3%BClet,+Stoll%C3%A1r+B%C3%A9la+utca+4&z=17&iwloc=A');
		});
    	

      	map.panTo(new GLatLng(47.5125,19.052));
        
      }
    }
    