	function google_load(longtitude, latitude) {
     	 if (GBrowserIsCompatible()) {
        	var map = new GMap2(document.getElementById("map"));
        	map.setCenter(new GLatLng(latitude, longtitude), 12);
		//welcher kartentyp verwendet wird, möglich auch G_HYBRID_TYPE
		map.setMapType(G_HYBRID_TYPE);
		map.addControl(new GLargeMapControl());
		//Marker auf Karte setzen!
		var point = new GLatLng(latitude,longtitude);
		var marker = new GMarker(point);
		map.addOverlay(marker);
      		}
	}

	function popup(R,N,F) {
		fenster=window.open(R, N, F);
		return false;
	}

	function showcaseopen (ObjType, ObjURL, ObjXLURL)
	{	
		if(ObjType == 'movie')
		{
			var ObjCase 	= document.getElementById('tx_oaimmodb_pi1_showcase_box');
			if(ObjCase) {
				var flashObj_showcase = new FlashObject("http://www.sunlife-estates.es/fileadmin/tmpl/flash/movieplayer.swf", "flash_showcase", "400", "267", "6", "#ffffff","","high","","","tx_oaimmodb_pi1[detectflash]");
				flashObj_showcase.addVariable("movie", "http://www.sunlife-estates.es/" + ObjURL);
				flashObj_showcase.write(ObjCase);
			}
		}
		else
		{		
			var ObjCase 	= document.getElementById('tx_oaimmodb_pi1_showcase_box');
			if(ObjCase) {
				//ObjCase.innerHTML = '<a href="javascript:;" onclick="return popup(\''+ ObjXLURL + '\',\'XLView\',\'width=620,height=440,menubar=no,scrollbars=no,toolbar=no\');" target="_blank"><img src="' + ObjURL + '" /></a>';
				var flashObj_showcase = new FlashObject("http://www.sunlife-estates.es/fileadmin/tmpl/flash/imageplayer.swf", "flash_showcase", "400", "267", "6", "#ffffff","","high","","","tx_oaimmodb_pi1[detectflash]");
				flashObj_showcase.addVariable("imageL", "" + ObjURL);
				flashObj_showcase.addVariable("imageXL", "" + ObjXLURL);
				flashObj_showcase.write(ObjCase);
			}
		}
	  return true;
	}


	function showcomment (Obj)
	{	
		var ObjComment 	= document.getElementById('tx_oaimmodb_pi1_comments_' + Obj);
		var ObjBox 	= document.getElementById('tx_oaimmodb_pi1_comments_box');
		if(ObjComment && ObjBox) {
			ObjBox.innerHTML = ObjComment.innerHTML;
		}


		/**
		* tx_oaimmodb_pi1_comments_hl1-10
		* Set active card and disable others
		*/
 		var ObjHL 	= document.getElementById('tx_oaimmodb_pi1_comments_hl1');
		 for(var a=1; a<=10; a++) { 	
 			ObjHL 	= document.getElementById('tx_oaimmodb_pi1_comments_hl'+ a);
			/**
			* If object exists
			*/
 			if( ObjHL)
 			{
				/**
				* If object exists
				*/
 				if(ObjHL.id == 'tx_oaimmodb_pi1_comments_hl' + Obj)
 				{
	 				ObjHL.className = 'acard';
				}
				else
				{
	 				ObjHL.className = 'card';
				}
 			}
 	     }
 	}

	/***********************************************
	* Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
	* This notice MUST stay intact for legal use
	* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
	***********************************************/

	function bookmarksite(title, url){
		if (document.all)
			window.external.AddFavorite(url, title);
		else if (window.sidebar)
			window.sidebar.addPanel(title, url, "")
	}
