// initialize shadowbox
Shadowbox.init({
	language:	 			"en",
	players:				["img","html","iframe"]
	});
// General purpose shadowbox fn
function openShadowbox(content,player,title,width,height,gallery){
	Shadowbox.open({
		content:	content,
		player:		player,
		title:		title,
		width:		width,
		height:		height,
		gallery:	gallery
		});
	};
// Shadowbox gmap fn
function openShadowboxGmap(lat,long,zoom,title,width,height){
	//alert(window.location.host);
  Shadowbox.open({
    content:    '',
    player:     'html',
    title:			title,
    width:      width,
    height:     height,
    options:    {
      onFinish: function(){
        if(GBrowserIsCompatible()){
          var map = new GMap2(document.getElementById(Shadowbox.contentId()));
          map.setCenter(new GLatLng(lat,long),zoom);
	        map.setMapType(G_HYBRID_MAP);
					var marker = new GMarker(new GLatLng(lat,long));map.addOverlay(marker);
					map.setUIToDefault();
          }
        }
	    }
  	});
	}
