function load()   {
   if (GBrowserIsCompatible()) {
        // Create our "tiny" marker icon
	
		var icon = new GIcon();
		icon.image = "./images/house.png";
		//icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
		icon.iconSize = new GSize(40, 40);
		//icon.shadowSize = new GSize(22, 20);
		icon.iconAnchor = new GPoint(20, 45);
		icon.infoWindowAnchor = new GPoint(5, 1);

        var map = new GMap2(document.getElementById("map"));
		map.setCenter(new GLatLng(38.736362,-9.15049), 15);
        
		var point = new GLatLng(38.736362,-9.15049);
        map.addOverlay(new GMarker(point,icon));
      
	}
}



function show(id1,id2){
	obj1 = document.getElementById(id1);
	obj2 = document.getElementById(id2);
		
	obj1.style.display = "none";
	obj2.style.display = "none"

	obj1.style.display = "";		
}

function addFav1(){
    var url      = "http://www.transportesskill.pt";
    var title    = "Transportes Skill";
    if (window.sidebar) window.sidebar.addPanel(title, url,"");
    else if(window.opera && window.print){
        var mbm = document.createElement('a');
        mbm.setAttribute('rel','sidebar');
        mbm.setAttribute('href',url);
        mbm.setAttribute('title',title);
        mbm.click();
	}
	else if(document.all){window.external.AddFavorite(url, title);}
}

 function addFav() {
          if (window.external) 
          { 
            if (arguments.length < 1) 
              window.external.AddFavorite("<?=?>", "<?=?>"); 
            if (arguments.length == 1) 
              window.external.AddFavorite(location.href, arguments[0]); 
            if (arguments.length == 2) 
              window.external.AddFavorite(arguments[0], arguments[1]); 
          } 
          else 
            alert("Lamentamos mas o seu browser não suporta esta funcionalidade!."); 
}

function centeredWindow(theURL,winName,width,height) { 
	features = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no";
	if (parseInt(navigator.appVersion)>3) {
	 screenW = screen.width;
	 screenH = screen.height;
	}
	else if (navigator.appName == "Netscape" 
	    && parseInt(navigator.appVersion)==3
	    && navigator.javaEnabled()
	   ) 
	{
	 var jToolkit = java.awt.Toolkit.getDefaultToolkit();
	 var jScreenSize = jToolkit.getScreenSize();
	 screenW = jScreenSize.width;
	 screenH = jScreenSize.height;
	}
	
	var pos_x = (screenW/2) - (width/2);
	var pos_y = (screenH/2) - (height/2);
	
	window.open(theURL,winName,features+",width="+width+",height="+height+",left="+pos_x+",top="+pos_y);
}


var arVersion = navigator.appVersion.split("MSIE")
var version = parseFloat(arVersion[1])

function fixPNG(myImage) 
{
    if ((version >= 5.5) && (version < 7) && (document.body.filters)) 
    {
       var imgID = (myImage.id) ? "id='" + myImage.id + "' " : ""
	   var imgClass = (myImage.className) ? "class='" + myImage.className + "' " : ""
	   var imgTitle = (myImage.title) ? 
		             "title='" + myImage.title  + "' " : "title='" + myImage.alt + "' "
	   var imgStyle = "display:inline-block;" + myImage.style.cssText
	   var strNewHTML = "<span " + imgID + imgClass + imgTitle
                  + " style=\"" + "width:" + myImage.width 
                  + "px; height:" + myImage.height 
                  + "px;" + imgStyle + ";"
                  + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
                  + "(src=\'" + myImage.src + "\', sizingMethod='scale');\"></span>"
	   myImage.outerHTML = strNewHTML	  
    }
}