<!--//
var isMac = false;
var isSafari = false;
var isFirefox = false;
var isMSIE = false;
var isMSIE6 = false;

if (navigator.userAgent.indexOf("Macintosh") != -1){
    isMac = true;
}

if (navigator.userAgent.indexOf("Safari") != -1){
	isSafari = true;
} else if (navigator.userAgent.indexOf("MSIE") != -1){
    isMSIE = true;
    if (navigator.userAgent.indexOf("MSIE 6.0") != -1){
	    isMSIE6 = true;
    }
} else if (navigator.userAgent.indexOf("Firefox") != -1){
	isFirefox = true;
}

var macSafari = isMac;

/* SITE HEADER FUNCTIONALITY */
var isLoggedIn = false;
var mastheadDPOPs = ["dpop_favorites", "dpop_favorites_loggedin", "dpop_favorites_notloggedin", "dpop_forgotPassword", "dpop_profileAlert", "profile_loginform", "dpop_tellAFriend", "dpop_whatsThis"];

function selectDIV(popID, popSet){
	for (var i = 0; i < popSet.length; i++){
		if (popSet[i] == popID){
			toggleDIV(popSet[i], true);
		} else {
			toggleDIV(popSet[i], false);
		}
	}
}

function showFavorites(showPanel, isLoggedIn){
	if (showPanel){
		selectDIV("dpop_favorites", mastheadDPOPs);
		if (isLoggedIn){
			toggleDIV("dpop_favorites_loggedin", true);
			toggleDIV("dpop_favorites_notloggedin", false);
		} else {
			toggleDIV("dpop_favorites_loggedin", false);
			toggleDIV("dpop_favorites_notloggedin", true);
		}
	} else {
		toggleDIV("dpop_favorites", showPanel);
	}
}

function showForgotPassword(showPanel){
	if (showPanel){
		selectDIV("dpop_forgotPassword", mastheadDPOPs);
	} else {
		toggleDIV("dpop_forgotPassword", showPanel);
	}
}

function showLogin(showPanel){
	if (showPanel){
		selectDIV("profile_loginform", mastheadDPOPs);
	} else {
		toggleDIV("profile_loginform", showPanel);
	}
}

function showProfileAlert(showPanel){
	if (showPanel){
		selectDIV("dpop_profileAlert", mastheadDPOPs);
	} else {
		toggleDIV("dpop_profileAlert", showPanel);
	}
}

function showTellAFriend(showPanel){
	if (showPanel){
		selectDIV("dpop_tellAFriend", mastheadDPOPs);
	} else {
		toggleDIV("dpop_tellAFriend", showPanel);
	}
}

function showWhatsThis(showPanel){
	if (showPanel){
		selectDIV("dpop_whatsThis", mastheadDPOPs);
	} else {
		toggleDIV("dpop_whatsThis", showPanel);
	}
}

function showVBKVideo(showPanel){
	if (showPanel){
		toggleDIV("dpop_vbkvideo", showPanel);
	} else {
		toggleDIV("dpop_vbkvideo", showPanel);
	}
}

function showAGVideo(showPanel){
	if (showPanel){
		toggleDIV("dpop_agvideo", showPanel);
	} else {
		toggleDIV("dpop_agvideo", showPanel);
	}
}

function toggleDIV(popID, showPanel){
	if (showPanel){
		showDIV(popID);
	} else {
		hideDIV(popID);
	}
}

/* BUMPER PAGE CODE*/
function display_bumper(targetURL)
{
var r=confirm("You are leaving VeryBestKids.com" + '\n\n' + "By clicking the " + "''" + "OK" + "''" + " button below, you will leave VeryBestKids.com and link to a third party website that may have a different privacy policy and information collection practices." + '\n\n' + "Please be sure to review the privacy policy and terms and conditions posted at that site.");
if (r==true)
  {
  newwindow=window.open(targetURL);
  }
}

/* HOMEPAGE SCRIPTS */
// Best Picks //
function toggleBPDisplay(){
	var panel1 = getObject("bp1");
	var btn1 = document.images["bpbtn1"];
	var btn2 = document.images["bpbtn2"];
	if (panel1.style.display == "none"){
		hideDIV("bp2");
		showDIV("bp1");
		btn1.src = "/images/btn_plus_off.gif";
		btn2.src = "/images/btn_plus.gif";
	} else {
		hideDIV("bp1");
		showDIV("bp2");
		btn1.src = "/images/btn_plus.gif";
		btn2.src = "/images/btn_plus_off.gif";
	}
}

/* SITE-SPECIFIC UTILITIES */
function checkAccess(destURL, sorryURL, isDestHTTP, isSorryHTTP){

	if (isLoggedIn){
		location.href = destURL;
	} else {

		location.href = sorryURL;

	}
}

/* JS UTILITIES */
function cookieDelete(name){
	document.cookie = name + "=; path=/; expires=Thu, 01-Jan-70 00:00:01 GMT;";
}

function cookieRead(Name){
	var cookieValue = "";
	var search = Name + "=";
	if(document.cookie.length > 0){ 
		offset = document.cookie.indexOf(search);
		if (offset != -1){ 
			offset += search.length;
			end = document.cookie.indexOf(";", offset);
			if (end == -1)
				end = document.cookie.length;
			cookieValue = unescape(document.cookie.substring(offset, end))
		}
	}
	return cookieValue;
}

function cookieWrite(Name, Value, Hours){
	var expire = "";
	if(Hours != null){
		expire = new Date((new Date()).getTime() + Hours * 3600000);
		expire = "; expires=" + expire.toGMTString();
	}
	document.cookie = Name + "=" + escape(Value) + "; path=/" + expire;
}

function cookieWriteFull(name, value, expires, path, domain, secure) {
	var curCookie = name + "=" + escape(value) +
	((expires) ? "; expires=" + expires.toGMTString() : "") +
	((path) ? "; path=" + path : "") +
	((domain) ? "; domain=" + domain : "") +
	((secure) ? "; secure" : "");
	document.cookie = curCookie;
}

//Cross Browser Object Retrieval
function getObject(objectID){
	if (document.all!=null){
		return document.all[objectID];
	} else if (document.getElementById){
		return document.getElementById(objectID);
	}
}

//Gets Parameter Values from QueryString
function getParamValue(paramName){
	paramName += "=";
	var paramLength=paramName.length;
	var start = -1;
	if (location.search.indexOf("?" + paramName) != -1){
		start = location.search.indexOf("?" + paramName) + 1;
	} else if (location.search.indexOf("&" + paramName) != -1){
		start = location.search.indexOf("&" + paramName) + 1;
	}
	if (start != -1){
		if (location.search.indexOf("&",start + 1) != -1){
			tempValue = location.search.substring(start + paramLength, location.search.indexOf("&",start + 1));
		}
		else {
			tempValue = location.search.substring(start + paramLength);
		}
		return tempValue;
	}
	else {
		return null;
	}
}

function isInArray(theValue, theArray){
	for (var i = 0; i < theArray.length; i++){
		if (theValue == theArray[i]){
			return true;
		}
	}
	return false;
}

function getIndex(theValue, theArray){
	for (var i = 0; i < theArray.length; i++){
		if (theValue == theArray[i]){
			return i;
		}
	}
	return -1;
}

/* POPUP WINDOW FUNCTIONS */
var popUpWin;
var popDefWidth = 570;
var popDefHeight = 400;
var lastWidth;
var lastHeight;
var popZIndex = 25;

//Open URL in new window with fixed dimensions
function openWin(url, pixWidth, pixHeight, canScroll){
	var winFeatures = "width=" + pixWidth + ",height=" + pixHeight + "," + getCentered(pixWidth,pixHeight) + ",resizable=no,scrollbars=";
	if (canScroll){
		winFeatures += "yes";
	} else {
		winFeatures += "no";
	}
	if (popUpWin != null){
		if (popUpWin.closed){
			popUpWin = window.open(url, "popwin", winFeatures);
			popUpWin.focus();
		} else if ((lastWidth == pixWidth) && (lastHeight == pixHeight)){
			popUpWin.location.href = url;
			popUpWin.focus();
		} else {
			popUpWin.close();
			var timeDelay = 0;
			if (navigator.userAgent.indexOf("Safari") != -1){
				timeDelay = 1000;
			}
			var winWait = window.setTimeout('popUpWin = window.open("' + url + '", "popwin", "' + winFeatures + '");popUpWin.focus();', timeDelay);
		}	
	} else {
		popUpWin = window.open(url, "popwin", winFeatures);
		popUpWin.focus();
	}
	lastWidth = pixWidth;
	lastHeight = pixHeight;
}

//Get coordinates for centering window
function getCentered(popupWidth, popupHeight){
	var indentNetscapeWidth = 'screenX=' + getIndent(popupWidth, false);
	var indentNetscapeHeight = 'screenY=' + getIndent(popupHeight, true);
	var indentMSIEWidth = 'left=' + getIndent(popupWidth, false);
	var indentMSIEHeight = 'top=' + getIndent(popupHeight, true);
	var centerCoordinates = indentNetscapeWidth + ',' + indentNetscapeHeight + ',' + indentMSIEWidth + ',' + indentMSIEHeight;
	return centerCoordinates;
}

//Determine top and left margins for window
function getIndent (popupDimension, isHeight){
	if (isHeight){
		return ((screen.availHeight - popupDimension) / 2);
	} else {
		return ((screen.availWidth - popupDimension) / 2);
	}
}

//Close popup and redirect parent to URL
function closeAndGo(url){
	var newWin;
	if (window.opener != null){
		if (window.opener.closed){
			newWin = window.open(url,'newwin','width=' + screen.availWidth + ',height=' + screen.availHeight + ',toolbar=yes,status=yes,directories=yes,location=yes,menubar=yes,personalbar=yes,resizable=yes,scrollbars=yes');
			newWin.focus();
		} else {
			window.opener.location.href = url;
			window.opener.focus();
		}
	} else {
		newWin = window.open(url,'newwin','width=' + screen.availWidth + ',height=' + screen.availHeight + ',toolbar=yes,status=yes,directories=yes,location=yes,menubar=yes,personalbar=yes,resizable=yes,scrollbars=yes');
		newWin.focus();
	}
	window.close();
}

function popWin(theURL){
	openWin(theURL, popDefWidth, popDefHeight);
}

/* DHTML SHOW/HIDE/POSITION POPUPS */
//Get coordinates for centering DHTML Popup
function getDPopCoords(popupWidth, popupHeight){
	var centerCoordinates = getDPopIndent(popupWidth, false) + ',' + getDPopIndent(popupHeight, true);
	return centerCoordinates;
}

//Center DHTML Popup
function centerDPop(popID){
	var divPop = getObject(popID);
	var anchorDIV = getObject("page");
	var coords = new String();
	coords = getDPopCoords(parseInt(divPop.style.width), parseInt(divPop.style.height)).toString().split(",");
	//alert("Screen Width/Height:\t\t\t" + window.innerWidth + "," + window.innerHeight + "\nDIVPop Width/Height:\t\t\t" + parseInt(divPop.style.width) + "," + parseInt(divPop.style.height) + "\nCoords(x,y):\t\t\t\t\t" + coords[0] + "," + coords[1] + "\noffsetLeft/offsetTop/scrollTop:\t\t" + anchorDIV.offsetLeft + "," + anchorDIV.offsetTop + "," + document.documentElement.scrollTop);
	divPop.style.left = Math.round(parseInt(coords[0]) - (anchorDIV.offsetLeft)) + "px";
	divPop.style.top = Math.round((parseInt(coords[1]) - anchorDIV.offsetTop) + document.documentElement.scrollTop) + "px";
}

//Show DHTML Popup and hide conflicting page elements (Flash and dropdowns)
function showDPop(popID, isCentered, pTop, pRight, pBottom, pLeft){
	if (macSafari){
		showDIVv("safarifix");
		hideDIVv("flashcontainer");
	}

	for (var i = 0; i < document.forms[0].elements.length; i++){
		if (document.forms[0].elements[i].type == "select-one"){
			document.forms[0].elements[i].style.visibility = "hidden";
		}
	}
	if (isCentered || isCentered == null){
		centerDPop(popID);
	}
	popZIndex += 2;
	showDIV(popID, popZIndex);
}

//Hide DHTML Popup and show conflicting page elements (Flash and dropdowns)
function hideDPop(popID){
	if (macSafari){
		showDIVv("flashcontainer");
		hideDIVv("safarifix");
	}
	for (var i = 0; i < document.forms[0].elements.length; i++){
		if (document.forms[0].elements[i].type == "select-one"){
			document.forms[0].elements[i].style.visibility = "visible";
		}
	}
	hideDIV(popID);
}

//Show/Hide DHTML DIV using Display
function showHideDIV(divID){
	var divPop = getObject(divID);
	if (divPop != null){		
		if(divPop.style.display=="none")
        {
            showDIV(divID);
        }    
        else
        {
            hideDIV(divID);
        }                
	}
}

//Show DHTML DIV using Display
function showDIV(divID, z){
	var divPop = getObject(divID);
	if (divPop != null){
		if (z != null){
			divPop.style.zIndex = z;
		}
		divPop.style.display = "block";
	}
}

//Hide DHTML DIV using Display
function hideDIV(divID){
	var divPop = getObject(divID);
	if (divPop != null){
		divPop.style.display = "none";
	}
}

//Show DHTML DIV using Visibility
function showDIVv(divID){
	var divPop = getObject(divID);
	if (divPop != null){
		divPop.style.visibility = "visible";
	}
}

//Hide DHTML DIV using Visibility
function hideDIVv(divID){
	var divPop = getObject(divID);
	if (divPop != null){
		divPop.style.visibility = "hidden";
	}
}

/* TABBED CONTENT - ROLLOVERS AND CONTENT SWAPS */
var currentTab;
var maxTabs;
var tabsOn;
var tabsOff;
var tabWait;

function tabInit(){
	currentTab = 1;
	maxTabs = tabNames.length;
	tabsOn = new Array(maxTabs);
	tabsOff = new Array(maxTabs);
	
	for (var i = 0; i < maxTabs; i++){
		tabsOn[i] = new Image();
		tabsOn[i].src = "images/tab_" + tabNames[i] + "_on.gif";
		tabsOff[i] = new Image();
		tabsOff[i].src = "images/tab_" + tabNames[i] + ".gif";
	}
	tabWait = setInterval("tablight(currentTab)", 100);
}

function tablight(tabNum){
	if (document.images){
		if (document.images["tab" + tabNum]){
			clearInterval(tabWait);
			document.images["tab" + tabNum].src = tabsOn[tabNum - 1].src;
		}
	}
}

function tabdim(tabNum){
	if (document.images){
		if (tabNum != currentTab){
			document.images["tab" + tabNum].src = tabsOff[tabNum - 1].src;
		}
	}
}

function tabselect(tabNum){
	if (tabNum != currentTab){
		var oldTab = getObject("tabcontent" + currentTab);
		var newTab = getObject("tabcontent" + tabNum);
		var tempTabNum = currentTab;
		currentTab = tabNum;
		oldTab.style.display = "none";
		newTab.style.display = "block";
		tabdim(tempTabNum);
	}
}

// CM2 Show/Hide Question Answers. Used for Ask the Expert
// (Patti Zomber) articles starting with August 08 refresh
// Assumes divs names to show and hide are in this format:
// a1, a2 ... aN etc. */
function showanswerhideothers(answernumtoshow, maxanswernum) {
	var divname = "";
	
	for (var i = 1; i <= maxanswernum; i++){
	
		divname = "a" + i;
		
		if (i == answernumtoshow)
			toggleDIV(divname, true);		
		else
			toggleDIV(divname, false);
			
		divname = "";
	}
}

function flashSTAFPopUp(url){
	var test = showSTAFPopUp(url);
}

function showSTAFPopUp(url)
{
    newwindow=window.open(url,'STAF','height=350,width=480,left=260,top=280,toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0');
    if (window.focus){newwindow.focus()}
    return false;
}

function showSTAFPopUpArticle(url,host,articleID)
{
    //alert(host);
    //alert(category);
    //alert(subcat);
    //url = url + '?origin=articleEmail&host=' + host + '&category=' + category + '&subcat=' + subcat + '&articleID=' + articleID;
    url = url + '?origin=articleEmail&host=' + host + '&articleID=' + articleID;
    //alert(url);
    newwindow=window.open(url,'STAF','height=330,width=490,left=260,top=280,toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0');
    if (window.focus){newwindow.focus()}
    return false;
}

function showPoll(){
    var flashvars = {};
    flashvars.pollid = 30;
    var params = {};
    params.allowScriptAccess = "sameDomain";
    var attributes = {};
    attributes.id = "poll";
    attributes.align = "middle";
    attributes.wmode = "transparent";
    attributes.bgcolor = "#ffffff";
    swfobject.embedSWF("/swf/poll.swf", "pollswf", 193, 245, "8", "", flashvars, params, attributes);
}

/* AddThis Configuration */
var addThisCookie = "nfaddthis"; // Name of Cookie
var add_this_wait; // Interval Variable
var addthis_bumper_URL = "/bumper.aspx"; // Bumper Page URL
var addthis_options = 'facebook, google, twitter, yahoomail, digg, stumbleupon, delicious, blogger, more'; // List of Social Media Outlets
var addthis_header_color = "#FFFFFF"; // AddThis Popup Header Text Color
var addthis_header_background = "#7da1d6"; // AddThis Popup Header Background Color
var addthis_offset_top = 0; // AddThis Popup Offset Coordinate Top
var addthis_offset_left = -108; // AddThis Popup Offset Coordinate Left
var addthis_localize = {
    share_caption: "<strong>Share <i>Nestl&eacute; Family</i></strong>"
} // AddThis Popup Header Text
var addthis_share = {
    url: stripAddThisParam(location.href)
} // AddThis URL to Share
var addthis_config = {
   data_ga_tracker: "pageTracker"
} // AddThis Google Analytics Integration

/* Google Analytics Campaign Tracking for AddThis */
var atUtmSource; // utm_source - Set to Social Media Outlet Name
var atUtmMedium = "Social"; // utm_medium
var atUtmCampaign = "AddThis"; // utm_campaign

/* AddThis Bumper Page Routines */
// On Mouseover
function AddThisFunction1(obj, url) {
    addthis_open(obj, '', url, '');
    ReplaceHoverLinks();
    SetTimer();
    return true;
}

// On Click
function AddThisFunction2() {
    var ret = addthis_sendto();
    ReplaceAddThisLinks();
    return ret;
}

function ShowAddThisPopup() {
    document.getElementById('at20mc').setAttribute("style", "display:block");
}

// On Mouseover: Replace all hyperlink URLs in AddThis popup to redirect to bumper page
function ReplaceHoverLinks() {
    if (document.getElementById('at_hover') != null) {
		var addThisHover = document.getElementById('at_hover');
		var socialMediaOutlets = ["facebook", "google", "twitter", "yahoomail", "digg", "stumbleupon", "delicious", "blogger"];
		for (var i = 0; i < socialMediaOutlets.length; i++){
			addThisHover.innerHTML = addThisHover.innerHTML.replace("return addthis_sendto('" + socialMediaOutlets[i] + "');", "window.location = '" + addthis_bumper_URL + "?addthis=" + socialMediaOutlets[i] + "&prevurl=" + stripAddThisParam(window.location.href) + "';")
		}
    }        
}

// Timeout Workaround to Ensure Presence of AddThis Popup
function SetTimer() {
    if (document.getElementById('at_hover') == null)
        addthis_wait = setInterval("ReplaceHoverLinks()", 1000);
    else
        clearInterval(addthis_wait);    
}

// On Click: Replace all hyperlink URLs in AddThis popup to redirect to bumper page
function ReplaceAddThisLinks() {
	var socialMediaOutlets = ["aim", "amazonwishlist", "amenme", "aolmail", "arto", "ask", "backflip", "baidu", "ballhype", "bebo", "bitly", "bizsugar", "bleetbox", "blinklist", "blogger", "bloggy", "blogmarks", "bobrdobr", "brainify", "bryderi", "buddymarks", "buzz", "care2", "citeulike", "connotea", "delicious", "designmoo", "digg", "diglog", "diigo", "doower", "dosti", "dotnetkicks", "dzone", "edelight", "ekudos", "email", "eucliquei", "evernote", "fabulously40", "facebook", "fark", "faves", "favorites", "favoritus", "fnews", "folkd", "forgetfoo", "fresqui", "friendfeed", "funp", "gabbr", "gacetilla", "globalgrind", "gmail", "google", "googletranslate", "gravee", "grumper", "habergentr", "hadashhot", "hatena", "hellotxt", "hemidemi", "hipstr", "hotklix", "hotmail", "hyves", "jumptags", "kaboodle", "kirtsy", "linkagogo", "linkedin", "live", "livejournal", "lunch", "lynki", "meneame", "mindbodygreen", "misterwong", "mixx", "multiply", "myaol", "mylinkvault", "myspace", "n4g", "netlog", "netvibes", "netvouz", "newstrust", "newsvine", "nujij", "oknotizie", "oneview", "oyyla", "phonefavs", "pingfm", "planypus", "plaxo", "plurk", "polladium", "posterous", "print", "printfriendly", "propeller", "pusha", "reddit", "segnalo", "shetoldme", "simpy", "slashdot", "smaknews", "sodahead", "sonico", "sphinn", "squidoo", "startaid", "strands", "studivz", "stumbleupon", "stylehive", "svejo", "symbaloo", "tagza", "technet", "technorati", "tellmypolitician", "thisnext", "tipd", "tumblr", "twitter", "typepad", "viadeo", "virb", "wordpress", "worio", "wovre", "wykop", "yahoobkm", "yahoomail", "yammer", "yardbarker", "yigg", "youmob"];
	for (var i = 0; i < socialMediaOutlets.length; i++){
		document.getElementById('ati_' + socialMediaOutlets[i]).setAttribute("onclick", "window.location = '" + addthis_bumper_URL + "?addthis=' + socialMediaOutlets[i] + '&prevurl=" + stripAddThisParam(window.location.href) + "';")
	}
}

// Query String Utility to Remove Name/Value Pairs
function stripQSParam(paramName, url){
    var atStart = url.indexOf(paramName + "=");
    var atEnd;
    if (atStart != -1){
        atEnd = url.indexOf("&", atStart);
        if (atEnd == -1){
            return url.substring(0, atStart);
        } else {
            return (url.substring(0, atStart) + url.substring(atEnd + 1));
        }
    }
	if (url.lastIndexOf("?") == (url.length - 1)){
		url = url.substring(0, url.length - 1);
	}
    return url;
}

function stripAddThisParam(url){
	return stripQSParam("addthislink", url);
}

// String Utility to Provide Initial Caps
function initCaps(input){
	return (input.substring(0,1).toUpperCase() + input.substring(1).toLowerCase());
}

// User Selects "Continue" on Bumper Page
// User is directed Back to Original Page with "addthislink" param
// Indicating Social Media Outlet to share to
function leaveNF(){
	var addThisDestination = getParamValue("addthis");
	if (addThisDestination != null){
		cookieWrite(addThisCookie, addThisDestination);
		var prevURL = stripAddThisParam(getParamValue("prevurl"));
		/* QueryString Method Deprecated
		var qsStart = prevURL.indexOf("?");
		if (qsStart == -1){
			prevURL += "?";
		} else {
			prevURL += "&";
		}
		prevURL += "addthislink=" + addThisDestination;
		*/
		location.href = prevURL;
	}
}

// Digg Workaround for MSIE, bypass AddThis and use Digg API directly
function getDiggURL(shareURL){
    var diggURL = "http://digg.com/submit";
    diggURL += "?thumbnails=1&url=" + escape(stripAddThisParam(shareURL));
    return diggURL;
}

// Check for Presence of "addthislink" param in query string
// If found, share URL of current page to Social Media Outlet
// and track through Google Analytics
function checkAddThis(){
    /* QueryString Method Deprecated
	var addThisAllowed = getParamValue("addthislink");
	*/
	var addThisAllowed = cookieRead(addThisCookie);
	if (addThisAllowed != ""){
	    cookieDelete(addThisCookie);
		addThisAllowed = addThisAllowed.toLowerCase();
		addthis_share.url = stripAddThisParam(location.href);
		addthis_share.url = stripQSParam("utm_source", addthis_share.url);
		addthis_share.url = stripQSParam("utm_medium", addthis_share.url);
		addthis_share.url = stripQSParam("utm_campaign", addthis_share.url);
		pageTracker._trackEvent("addthis", addThisAllowed, addthis_share.url);
		if (addthis_share.url.indexOf("?") == -1){
			addthis_share.url += "?";
		} else {
			addthis_share.url += "&";
		}
		atUtmSource = initCaps(addThisAllowed);
		addthis_share.url += "utm_source=" + atUtmSource + "&utm_medium=" + atUtmMedium + "&utm_campaign=" + atUtmCampaign;
	    if (isMSIE && (addThisAllowed == "digg")){
	        openWin(getDiggURL(location.href), 780, 580, true);
	    } else {
    		addthis_sendto(addThisAllowed);
    	}
	}
}

function addLoadEvent(func) {   
	var oldonload = window.onload;   
	if (typeof window.onload != 'function') {   
		window.onload = func;   
	} else {   
		window.onload = function() {   
			if (oldonload) {   
				oldonload();   
			}   
			func();   
		}   
	}   
}   
  
addLoadEvent(checkAddThis);
//-->

