//alert(window.sessionShare[0]+':'+sysCommon.getCookie(window.sessionShare[0])+":"+window.sessionShare[1]);
function shareSession() {
	//if ((new Date).getTime() - (new Date(parseInt(sysCommon.getCookie('sTime')))).getTime() < 600000) return; 
	var sid=sysCommon.getCookie(window.sessionShare[0]);
	if (!sid) return; // nothing to share yet - first landed on static page?

	var domains=window.sessionShare[1].split(' ');
	for(var i=0; i < domains.length; i++) {
		var url="http://"+domains[i]+"/scripts/rms.toolkit/share.php?"+sid+'&'+window.sessionShare[2];
		// (new Image).src=url; -- not working for IE7
		$('body').append($('<iframe title="Session Sharing" style="background: transparent !important; width: 1px !important; height: 1px !important; position: absolute !important; opacity: 0 !important; border: none !important;"/>').attr('src', url));
	}
	sysCommon.setCookie('sTime', (new Date).getTime())
}
$(shareSession);
//shareSession();

