document.write('<style type="text/css">#bookmark_dropmenudiv{text-align:left;position:absolute;border:1px solid black;font:normal 10px Verdana;line-height:18px;z-index:100;padding:0;margin:0px;}');
document.write('#bookmark_dropmenudiv div{text-align:left;border:0px;font:normal 10px Verdana;padding:0;margin:0px;border:0px;}');
document.write('#bookmark_dropmenudiv table{text-align:left;padding:0;margin:0;border:0px;}');
document.write('#bookmark_dropmenudiv table td{padding:0;margin:0;border:0;}');
document.write('#bookmark_dropmenudiv table tr{padding:0;margin:0;border:0;} ');
document.write('#bookmark_dropmenudiv a{display:block;font:normal 10px Verdana;color:#000000;text-indent: 3px;text-decoration: none;padding:3px;margin:0px;cursor:hand;border:0px}');
document.write('#bookmark_dropmenudiv a:hover{ background-color:#7FAAD5;color:#ffffff}');
document.write('#bookmark_dropmenudiv img{padding:0px;border:none;}</style>');


document.write("<a onClick=\"return bookmark_clickreturnvalue()\" onMouseover=\"bookmark_dropdownmenu(this, event)\" onMouseout=\"bookmark_delayhidemenu()\"><img src=\"img/bookmark.png\" border=\"0\" align=\"absmiddle\"></a>");


function postbookmark(bookmark_type) {
	if (bookmark_type == "delicious") {
		window.open('http://del.icio.us/post?url=' + encodeURIComponent(b_url) + '&title=' + encodeURIComponent(document.title),'dr_bookmark',bookmark_prop);
	} else if (bookmark_type == "digg") {
		window.open('http://digg.com/submit?phase=2&url=' + encodeURIComponent(b_url) + '&title=' + encodeURIComponent(document.title),'dr_bookmark',bookmark_prop);
	} else if (bookmark_type == "furl") {
		window.open('http://www.furl.net/storeIt.jsp?u=' + encodeURIComponent(b_url) + '&t=' + encodeURIComponent(document.title),'dr_bookmark',bookmark_prop);
	} else if (bookmark_type == "reddit") {
		window.open('http://reddit.com/submit?url=' + encodeURIComponent(b_url) + '&title=' + encodeURIComponent(document.title),'dr_bookmark',bookmark_prop);
	} else if (bookmark_type == "live") {
		window.open('https://favorites.live.com/quickadd.aspx?marklet=1&mkt=en-us&url=' + encodeURIComponent(b_url) + '&title=' + encodeURIComponent(document.title),'dr_bookmark',bookmark_prop);
	} else if (bookmark_type == "google") {
		window.open('http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk=' + encodeURIComponent(b_url) + '&title=' + encodeURIComponent(document.title),'dr_bookmark',bookmark_prop);
	} else if (bookmark_type == "yahoo") {
		window.open('http://myweb.yahoo.com/myresults/bookmarklet?u=' + encodeURIComponent(b_url) + '&t=' + encodeURIComponent(document.title) + '&ei=UTF','dr_bookmark',bookmark_prop);
	} else if (bookmark_type == "ask") {
		window.open('http://myjeeves.ask.com/mysearch/BookmarkIt?v=1.2&t=webpages&url=' + encodeURIComponent(b_url) + '&title=' + encodeURIComponent(document.title),'dr_bookmark',bookmark_prop);
	} else if (bookmark_type == "technorati") {
		window.open('http://technorati.com/faves?add=' + encodeURIComponent(b_url),'dr_bookmark',bookmark_prop);
	} else if (bookmark_type == "simpy") {
		window.open('http://simpy.com/simpy/LinkAdd.do?href=' + encodeURIComponent(b_url) + '&title=' + encodeURIComponent(document.title),'dr_bookmark',bookmark_prop);
	} else if (bookmark_type == "netscape") {
		window.open('http://www.netscape.com/submit/?U=' + encodeURIComponent(b_url) + '&T=' + encodeURIComponent(document.title),'dr_bookmark',bookmark_prop);
	} else if (bookmark_type == "spurl") {
		window.open('http://www.spurl.net/spurl.php?url=' + encodeURIComponent(b_url) + '&title=' + encodeURIComponent(document.title),'dr_bookmark',bookmark_prop);
	} else if (bookmark_type == "blogmarks") {
		window.open('http://blogmarks.net/my/new.php?url=' + encodeURIComponent(b_url) + '&title=' + encodeURIComponent(document.title),'dr_bookmark',bookmark_prop);
	} else if (bookmark_type == "stumbleupon") {
		window.open('http://www.stumbleupon.com/submit?url=' + encodeURIComponent(b_url) + '&title=' + encodeURIComponent(document.title),'dr_bookmark',bookmark_prop);
	} else if (bookmark_type == "bluedot") {
		window.open('http://bluedot.us/Authoring.aspx?u=' + encodeURIComponent(b_url) + '&title=' + encodeURIComponent(document.title),'dr_bookmark',bookmark_prop);
	} else if (bookmark_type == "blinklist") {
		window.open('http://www.blinklist.com/index.php?Action=Blink/addblink.php&Quick=true&Url=' + encodeURIComponent(b_url) + '&Title=' + encodeURIComponent(document.title) + '&Pop=yes','dr_bookmark',bookmark_prop);
	} else if (bookmark_type == "wink") {
		window.open('http://www.wink.com/_/tag?url=' + encodeURIComponent(b_url) + '&doctitle=' + encodeURIComponent(document.title),'dr_bookmark',bookmark_prop);
	}
	
	
	 

	
		
}


function bookmark_bookmark()
{
	url = location.href;
	title = document.title;
	if (document.all)
		window.external.AddFavorite(url, title);
	else if (window.sidebar)
		window.sidebar.addPanel(title, url, "")
}

bookmark_surl = 'http://www.buttonr.com/post.php?url='+encodeURIComponent(b_url)+'&title='+encodeURIComponent(document.title)+'&service=';
bookmark_prop = 'scrollbars=yes,menubar=no,width=820,height=520,resizable=yes,toolbar=no,location=no,status=no,screenX=200,screenY=100,left=200,top=100';

var bookmark_disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var bookmark_hidemenu_onclick="yes" //hide menu when user clicks within menu?

var bookmark_ie4=document.all
var bookmark_ns6=document.getElementById&&!document.all

if (bookmark_ie4 || bookmark_ns6)
document.write('<div id="bookmark_dropmenudiv" style="visibility:hidden;width:300px;background-color:#FFFFFF;padding:0;margin:0px;border:1px solid black;" onMouseover="bookmark_clearhidemenu()" onMouseout="bookmark_dynamichide(event)"></div>')

function bookmark_getposOffset(what, offsettype){
	var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
	var parentEl=what.offsetParent;
	while (parentEl!=null)
	{	totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
		parentEl=parentEl.offsetParent;
	}
	return totaloffset;
}

function bookmark_showhide(obj, e, visible, hidden, menuwidth){
	if (bookmark_ie4 || bookmark_ns6)
	dropmenuobj.style.left=dropmenuobj.style.top="-500px"
	if (menuwidth!=""){
		dropmenuobj.widthobj=dropmenuobj.style
		dropmenuobj.widthobj.width=menuwidth
	}
	if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
	obj.visibility=visible
	else if (e.type=="click")
	obj.visibility=hidden
}

function bookmark_iecompattest(){
	return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function bookmark_clearbrowseredge(obj, whichedge){
	var edgeoffset=0
	if (whichedge=="rightedge"){
		var windowedge=bookmark_ie4 && !window.opera? bookmark_iecompattest().scrollLeft+bookmark_iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
		dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
		if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
			Edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
	}
	else{
		var topedge=bookmark_ie4 && !window.opera? bookmark_iecompattest().scrollTop : window.pageYOffset
		var windowedge=bookmark_ie4 && !window.opera? bookmark_iecompattest().scrollTop+bookmark_iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
		dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
		if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
			edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
			if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
			edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
		}
	}
	return edgeoffset
}

function bookmark_populatemenu(){
	if (bookmark_ie4||bookmark_ns6)
	{	
		dropmenuobj.innerHTML =
'<div style="width:300px;">' +
'<div style="padding-left:10px; font-weight:bold;">Add this page to:</div>'+
'<table width="100%" border="0" cellpadding="0" cellspacing="0">' +
'<tr>' +
'<td><a href="javascript:void(0);" target="_blank" onclick="postbookmark(\'delicious\'); return false;"><img src="img/bm/delicious.png" width="16" height="16" border="0" /> Del.icio.us</a></td>' +
'<td><a href="javascript:bookmark_bookmark();"><img src="img/bm/fav.png" width="16" height="16" border="0" /> Favorites</a></td>' +
'</tr><tr>' +
'<td><a href="javascript:void(0);" target="_blank" onclick="postbookmark(\'digg\'); return false;"><img src="img/bm/digg.png" width="16" height="16" border="0" /> Digg</a></td>' +
'<td><a href="javascript:void(0);" target="_blank" onclick="postbookmark(\'reddit\'); return false;"><img src="img/bm/reddit.gif" width="16" height="16" border="0" /> Reddit</a></td>' +
'</tr><tr>' +
'<td><a href="javascript:void(0);" target="_blank" onclick="postbookmark(\'furl\'); return false;"><img src="img/bm/furl.gif" width="16" height="16" border="0" /> Furl</a></td>' +
'<td><a href="javascript:void(0);" target="_blank" onclick="postbookmark(\'live\'); return false;"><img src="img/bm/live.gif" width="18" height="17" border="0" /> Live Bookmarks</a></td>' +
'</tr><tr>' +
'<td><a href="javascript:void(0);" target="_blank" onclick="postbookmark(\'google\'); return false;"><img src="img/bm/google.png" width="16" height="16" border="0" /> Google Bookmarks</a></td>' +
'<td><a href="javascript:void(0);" target="_blank" onclick="postbookmark(\'yahoo\'); return false;"><img src="img/bm/yahoo.png" width="18" height="18" border="0" /> Yahoo MyWeb</a></td>' +
'</tr><tr>' +
'<td><a href="javascript:void(0);" target="_blank" onclick="postbookmark(\'ask\'); return false;"><img src="img/bm/ask.png" width="16" height="16" border="0" /> Ask</a></td>' +
'<td><a href="javascript:void(0);" target="_blank" onclick="postbookmark(\'technorati\'); return false;"><img src="img/bm/technorati.png" width="16" height="16" border="0" /> Technorati</a></td>' +
'</tr><tr>' +
'<td><a href="javascript:void(0);" target="_blank" onclick="postbookmark(\'simpy\'); return false;"><img src="img/bm/simpy.png" width="16" height="16" border="0" /> Simpy</a></td>' +
'<td><a href="javascript:void(0);" target="_blank" onclick="postbookmark(\'netscape\'); return false;"><img src="img/bm/netscape.gif" width="16" height="16" border="0" /> Netscape</a></td>' +
'</tr><tr>' +
'<td><a href="javascript:void(0);" target="_blank" onclick="postbookmark(\'spurl\'); return false;"><img src="img/bm/spurl.png" width="16" height="16" border="0" /> Spurl</a></td>' +
'<td><a href="javascript:void(0);" target="_blank" onclick="postbookmark(\'blogmarks\'); return false;"><img src="img/bm/blogmarks.png" width="16" height="16" border="0" /> Blogmarks</a></td>' +
'</tr><tr>' +
'<td><a href="javascript:void(0);" target="_blank" onclick="postbookmark(\'blinklist\'); return false;"><img src="img/bm/blinklist.png" width="16" height="16" border="0" /> BlinkList</a></td>' +
'<td><a href="javascript:void(0);" target="_blank" onclick="postbookmark(\'wink\'); return false;"><img src="img/bm/wink.jpg" width="16" height="16" border="0" /> Wink</a></td>' +
'</tr><tr>' +
'<td><a href="javascript:void(0);" target="_blank" onclick="postbookmark(\'stumbleupon\'); return false;"><img src="img/bm/stumbleupon.png" width="16" height="16" border="0" /> StumbleUpon</a></td>' +
'<td><a href="javascript:void(0);" target="_blank" onclick="postbookmark(\'bluedot\'); return false;"><img src="img/bm/bluedot.png" width="16" height="16" border="0" /> BlueDot</a></td>' +
'</tr>' +
'</table>' +
'</div>';
	}
}


function bookmark_dropdownmenu(obj, e){
	if (window.event) event.cancelBubble=true
	else if (e.stopPropagation) e.stopPropagation()
	bookmark_clearhidemenu()
	dropmenuobj=document.getElementById? document.getElementById("bookmark_dropmenudiv") : bookmark_dropmenudiv
	bookmark_populatemenu()
	
	if (bookmark_ie4||bookmark_ns6){
		bookmark_showhide(dropmenuobj.style, e, "visible", "hidden", '300px')
		dropmenuobj.x=bookmark_getposOffset(obj, "left")
		dropmenuobj.y=bookmark_getposOffset(obj, "top")
		dropmenuobj.style.left=dropmenuobj.x-bookmark_clearbrowseredge(obj, "rightedge")+"px"
		dropmenuobj.style.top=dropmenuobj.y-bookmark_clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
	}
	
	return bookmark_clickreturnvalue()
}

function bookmark_clickreturnvalue(){
	if (bookmark_ie4||bookmark_ns6) return false
	else return true
}

function bookmark_contains_ns6(a, b) {
	while (b.parentNode)
	if ((b = b.parentNode) == a)
	return true;
	return false;
}

function bookmark_dynamichide(e){
	if (bookmark_ie4&&!dropmenuobj.contains(e.toElement))
		bookmark_delayhidemenu()
	else if (bookmark_ns6&&e.currentTarget!= e.relatedTarget&& !bookmark_contains_ns6(e.currentTarget, e.relatedTarget))
		bookmark_delayhidemenu()
}

function bookmark_hidemenu(e){
	if (typeof dropmenuobj!="undefined"){
	if (bookmark_ie4||bookmark_ns6)
	dropmenuobj.style.visibility="hidden"
	}
}

function bookmark_delayhidemenu(){
	if (bookmark_ie4||bookmark_ns6)
	bookmark_delayhide=setTimeout("bookmark_hidemenu()",bookmark_disappeardelay)
}

function bookmark_clearhidemenu(){
	if (typeof bookmark_delayhide!="undefined")
	clearTimeout(bookmark_delayhide)
}

if (bookmark_hidemenu_onclick=="yes")
	document.onclick=bookmark_hidemenu
