var u=location.href;
var t=document.title;
var d="";

function checkMeta() {
    var metas = document.getElementsByTagName('META');
    var i;
    for (i = 0; i < metas.length; i++) {
        if (metas[i].getAttribute('NAME').toLowerCase() == "description");
        break;
        var desc = metas[i].getAttribute('CONTENT');
    }
    return(desc);
}

var ie = document.all
var ns6 = document.getElementById && !document.all

function showBookmarklets_new(e) {
var parent = ns6 ? e.target.parentNode : event.srcElement.parentElement;
var divs = parent.getElementsByTagName('div');
//parent.style.backgroundColor='red';
         for (i in divs) {
                if (divs[i].id == 'shareThis_new') {
                    //alert("success ");
                    divs[i].style.display = "";
                    break;
                }
            }
     //new Effect.Appear("shareThis", {from: 0.0, to: 1.0, duration: 0.1, delay: 0.1, fps: 30});
}

function closeBookmarklets_new(e) {
    var parent = ns6 ? e.target.parentNode : event.srcElement.parentElement;
    new Effect.Fade(parent, {from: 1.0, to: 0.0, duration: 0.1, delay: 0.1, fps: 30});
}

// specific network functions

function fbs_click_2(url, title) {
    window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(url)+'&t='+encodeURIComponent(title),'sharer','toolbar=0,status=0,width=626,height=436');
}

function reddit_2(url, title) {
    window.open('http://reddit.com/submit?url='+encodeURIComponent(url)+'&title='+encodeURIComponent(title),'sharer','toolbar=0,status=0,width=700,height=600');
}

function GetThis_2(url, title) {
    window.open('http://www.myspace.com/index.cfm?fuseaction=postto&' + 't=' + encodeURIComponent(title) + '&u=' + encodeURIComponent(url),'sharer','toolbar=0,status=0,width=700,height=600');
}

function delicious_2(url, title) {
    window.open('http://del.icio.us/post?url='+encodeURIComponent(url)+'&title='+encodeURIComponent(title),'sharer','toolbar=0,status=0,width=800,height=600');
}

function furl_2(url, title) {
	    window.open('http://www.furl.net/storeIt.jsp?t='+encodeURIComponent(title)+'&u='+encodeURIComponent(url),'sharer','toolbar=0,status=0,width=700,height=600');
}

function stumble_2(url, title) {
	    window.open('http://www.stumbleupon.com/submit?url='+encodeURIComponent(url),'sharer','toolbar=0,status=0,width=700,height=600');
}

function digg_2(url, title) {
	    window.open('http://digg.com/submit?url='+encodeURIComponent(url)+'&title='+encodeURIComponent(title)+'&bodytext='+encodeURIComponent(d)+'&media=news&topic=hardware','sharer','toolbar=0,status=0,width=900,height=600');
}

var TwitThis_2 = {
	pop : function (url, title) {
		window.open("http://twitthis.com/twit?url="+encodeURIComponent(url)+"&title="+encodeURIComponent(title), "TwitThisPop", "width=600, height=500, location, status, scrollbars, resizable");
	}
}

function mouseLeaves(element, evt) {
    if (typeof evt.toElement != 'undefined' && evt.toElement && typeof element.contains != 'undefined') {
        return !element.contains(evt.toElement);
    }
    else if (typeof evt.relatedTarget != 'undefined' && evt.relatedTarget) {
        return !contains(element, evt.relatedTarget);
    }
}

function contains(container, containee) {
    while (containee) {
        if (container == containee) {
            return true;
        }
        containee = containee.parentNode;
    }
    return false;
}

function hideElement(element) {
    if (element.style) {
        element.style.display = 'none';
    }
}

function mouseOutEvent(element, event) {
    if (mouseLeaves(element, event)) {
        hideElement(element)
    }
}


<!-- ph=1 -->
<!-- nhm:from_kauri -->
