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 = new Object();

/*
 * Overriding the ShareThis popup function to accomodate Safari.
 */
function popup()
{
	var newwinurl = 'http://share.mxmsite.net/dontblowit/share.html';
	newWin = window.open('', "stframe", "width=354,height=480,status=1,resizable=1");
	newWin.location.href = newwinurl
	var browser = checkBrowser();
	if (browser.indexOf('Safari') > 1) {
		newWin.resizeTo(364,530);
	}
} 
/*
* 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() {
	flashLink('http://share.mxmsite.net/dontblowit/share.html');
	//setTimeout(popup, 500);
}