	/*
	* The click event does not get passed to the container in Safari
	* so our popup gets blocked. There is a workaraound in the flex
	* script but we need to know if this is Safari.	
	*/	
	function checkBrowser() { var value = navigator.userAgent; return value; }
	
	/*
	* Create a sharelet that does not display a button,
	* and will generate a popup on share.
	*/	
	var ShareObj = SHARETHIS.addEntry({}, {button:false, popup:true});
	
	/*
	* Functions called from mx:Script to update elements
	* in the sharelet.
	*/	
	function ShareThis_set(el, val){
		ShareObj.properties[el] = val;
	}
	
	/*
	* The share event executed from mx:Script.
	*/	
	function ShareThis_share(){
		var browser = checkBrowser();
		if (browser.indexOf("Safari") > 1) {	
			/* Safari will take a moment to launch the new window. */	
			setTimeout(ShareObj.popup, 500);
		} else {
			ShareObj.popup();
		}
	}
