function setupChat(url){
	setTimeout("_setupChat(\""+url+"\")", 1);
}

function _setupChat(url){
	var divTarget = $("#header_contact ul");
	if (divTarget.length) {
		divTarget = divTarget[0];
	}else{
		return;
	}
	
	var divChat = $("#chat");
	if (divChat.length){
		return
	}else{
		divChat = document.createElement("li");
		divChat.id = "chat";
		divTarget.appendChild(divChat);
		
		if (document.getElementById("scN1SI") == null){
			var divTag = document.createElement("span");
			divTag.id = "scN1SI";
			divTag.style.display = "inline";
			divChat.appendChild(divTag);
			
			var seN1SI=document.createElement("script");
			seN1SI.type="text/javascript";
			seN1SI.src = (location.protocol.indexOf("https")==0?"https":"http")+"://" + url;
			divTag.appendChild(seN1SI);
		}
	}
}

function setupFavicon(url) { 
		var link = document.createElement('link'); 
		link.type = 'image/x-icon'; 
		link.rel = 'shortcut icon'; 
		link.href = url; 
		document.getElementsByTagName('head')[0].appendChild(link); 
}; 

window.onload = function() {
	/* setupChat("image.providesupport.com/js/susanacohen/safe-standard.js?ps_h=N1SI&ps_t="+new Date().getTime()); */
	setupFavicon("http://www.susanacohen.com/static/uploads/susanacohen/favicon.ico");
}


