function roll_over(img_id, img_src) {
	document.getElementById(img_id).src = 'img/'+img_src;
}

function change_border(id, color) {
	document.getElementById(id).style.borderBottom = "1px solid "+color;
}

function show_sub(id, bool) {
	if(bool) {
		document.getElementById(id).style.left=document.getElementById("a2").offsetParent.offsetLeft+"px";
		document.getElementById(id).style.top="103px";
		document.getElementById(id).style.display = 'block';
		document.getElementById("a2").style.fontWeight = 'bold';
		document.getElementById("a2").style.color = '#B3F21F';
	}
	else {
		document.getElementById(id).style.display = 'none';
		document.getElementById("a2").style.fontWeight = 'normal';
		document.getElementById("a2").style.color = '#ffffff';
	}
}

function hide_sub_only(id, bool)
{
	if(!bool)
	{
		document.getElementById(id).style.display = 'none';
	}
}

function paryskinti(id, bool)
{
	if(bool)
	{
		document.getElementById("a2").style.fontWeight = 'bold';
		document.getElementById("a2").style.color = '#B3F21F';
	}
	
}

function popup(id, t) {
	width = 525;
	height = 385;
	window.open('popup.php?id='+id+'&g='+t, 'Fotogalerija', 'toolbar=0,location=0,directories=0,menuBar=0,scrollbars=1,resizable=1, width='+width+'px, height='+height+'px');
}

function changeHref(path, imgBig) {
	document.getElementById('slideshow_link').href="galeries/"+path+"/"+imgBig; 
}

  //<![CDATA[
    
   function load() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
        map.setCenter(new GLatLng(55.4, 23.234562), 7);
        map.addControl(new GSmallMapControl());
		var icon = new GIcon();
        icon.image = "img/flag.gif";

        icon.iconSize = new GSize(30, 41);

        icon.iconAnchor = new GPoint(5, 40);
        icon.infoWindowAnchor = new GPoint(5, 1);
		var bounds = map.getBounds();
        var southWest = bounds.getSouthWest();
        var northEast = bounds.getNorthEast();
		var point = new GLatLng(55.688531,21.150617);
		var point1 = new GLatLng(54.711347,25.286369);
		var point2 = new GLatLng(55.511329,22.218998);
        map.addOverlay(new GMarker(point, icon));
        map.addOverlay(new GMarker(point1, icon));
        map.addOverlay(new GMarker(point2, icon));
      }
    }

    //]]>