
/**
 * This JavaScript has been adapted from public source developed by http://addthis.com
 * Copyright to this derivative work remains with the original publisher
 **/

var addthisbox,dtCss,atCss;
var addthis_pub = 'jwspaceman';
var addthis_logo = 'http://www.toytracker.net/images/shared/ttn_269x62.gif';
var addthis_logo_background = '380854';
var addthis_logo_color = 'FFFFFF';
var addthis_brand = 'ToyTracker.Net';
var addthis_options = 'favorites,email,myspace,facebook,google,live,digg,delicious,more';

var addthis_css_local = '/css/addthis.css';
var at15o = '/images/shared/addthis/';

var at15y=new Array();
	at15y['ask'] = ['Ask','ask.png'];
	at15y['delicious'] = ['Del.icio.us','delicious.png'];
	at15y['digg'] = ['Digg','digg.png'];
	at15y['email'] = ['Email','email.png'];
	at15y['favorites'] = ['Favorites','favorites.png'];
	at15y['facebook'] = ['Facebook','facebook.gif'];
	at15y['fark'] = ['Fark','fark.png'];
	at15y['furl'] = ['Furl','furl.gif'];
	at15y['google'] = ['Google','goog.png'];
	at15y['live'] = ['Live','live.gif'];
	at15y['myspace'] = ['MySpace','myspace.png'];	
	at15y['myweb'] = ['Yahoo MyWeb','yahoo-myweb.png'];
	at15y['newsvine'] = ['Newsvine','newsvine.png'];
	at15y['reddit'] = ['Reddit','reddit.gif'];	
	at15y['sk*rt'] = ['Sk*rt','skrt.gif'];
	at15y['slashdot'] = ['Slashdot','slashdot.png'];
	at15y['stumbleupon'] = ['StumbleUpon','su.png'];
	at15y['stylehive'] = ['Stylehive','stylehive.gif'];
	at15y['tailrank'] = ['Tailrank','tailrank2.png'];
	at15y['technorati'] = ['Technorati','technorati.png'];
	at15y['thisnext'] = ['ThisNext','thisnext.gif'];
	at15y['twitter'] = ['Twitter','twitter.gif'];
	at15y['ballhype'] = ['BallHype','ballhype.png'];
	at15y['yardbarker'] = ['Yardbarker','yardbarker.png'];
	at15y['kaboodle'] = ['Kaboodle','kaboodle.gif'];
	at15y['more'] = ['More ...','more.gif'];

function initAddThisBox() {
	if (!IsDHTML) return;
	var dat = new ttnGetObject('addthis_div');
	var iat = new ttnGetObject('addthis_hoverbox');
	if (!(addthisbox = dat.obj && iat.obj)) return;
	dtCss = dat.style; atCss = iat.style;
	EventUtils.addEventListener(addthisbox,'mouseover',_addthis_clearclosewin15);
	EventUtils.addEventListener(addthisbox,'mouseout',addthis_close);
	addthisbox.innerHTML = _at15B(); }

function addthis_open(at15a,at15E,at15e,at15U) {
	if (!addthisbox) return;
	_addthis_clearclosewin15();
	addthis_url=at15e;
	addthis_title=at15U;
	if (addthis_url=='' || addthis_url=='[URL]') addthis_url=location.href;
	if (addthis_title=='' || addthis_title=='[TITLE]') addthis_title=document.title;
	_atshow(at15E);
	_at15N();
	dtCss.zIndex = 100;
	doDimBG();
	atCss.visibility = 'visible';
	return false; }

function addthis_close(evt,elem) {
	if (!addthisbox) return;
	at15A=setTimeout("_addthis_closewin15()",0750); }

function _addthis_clearclosewin15(evt,elem) {
	if (typeof at15A!="undefined") clearTimeout(at15A); }

function addthis_send() {
	if (!addthisbox) return;
	var at15I1=_at15I('at_from');
	var at15o2=_at15I('at_to');
	var at15l2=_at15I('at_msg');
	var at15i1=_at15I('at_success');
	if (at15o2.value.indexOf('@')<0 || at15o2.value.indexOf('.')<0) {
		alert('Please enter a valid \'To\' email address.'); return; }
	if (at15I1.value.indexOf('@')<0 || at15I1.value.indexOf('.')<0) {
		alert('Please enter a valid \'From\' email address.'); return; }
	if (at15l2.value == 'message text') {
		alert('Please compose a personalized Note.'); return; }
	if (at15l2.value.length < 10) {
		alert('Please compose a Note of at least ten characters.'); return; }
	at15i2=Math.random();
	at15I2='http://www.addthis.com/tellfriend.php?pub='+encodeURIComponent(addthis_pub)+'&url='+encodeURIComponent(addthis_url) +
		'&fromname=aaa&fromemail='+encodeURIComponent(at15I1.value)+'&tofriend='+encodeURIComponent(at15o2.value)+'&note=' +
		encodeURIComponent(at15l2.value)+'&r='+at15i2;
	var at15O2=new Image(); at15O2.src=at15I2;
	at15i1.innerHTML='Message Sent!';
	at15A=setTimeout("_addthis_closewin15()",2250);
	return false; }

function _at15I(at15i) {
	return document.getElementById(at15i); }

function _at15N() {
	if (at15n)return;
	var at15M=addthis_options.replace(/\s/g,'');
	var at15m=at15M.split(',');
	for (var at15P=0;at15P<at15m.length;at15P++) {
		var at15L=at15m[at15P];
		if (at15L in at15y) {
			var at15l=_at15I('addthis_'+at15L+'15');
			if (at15l) at15l.src=at15o+at15y[at15L][1]; }}
	at15n = true; }

function _addthis_closewin15() {
	atCss.visibility = 'hidden';
	undoDimBG();
	dtCss.zIndex = 0;
	return false; }

function _addthis_sendto(at15K) {
	if (at15K=='email') {
		_atshow(at15K);
		return false; }
	_addthis_closewin15();
	if (at15K=='favorites') {
		if (document.all)window.external.AddFavorite(addthis_url,addthis_title);
		else window.sidebar.addPanel(addthis_title,addthis_url,'');
		return false; }
	if (at15K=='stumbleupon') at15K='su';
	if (at15K=='sk*rt') at15K='skrt';
	window.open(_at15k(at15K),'addthis','scrollbars=yes,menubar=no,width=620,height=500,resizable=yes,toolbar=no,location=no,status=no');
	return false; }

function _at15k(at15K) {
	var at15J=encodeURIComponent(addthis_url);
	var at15j=encodeURIComponent(addthis_title);
	var at15H=encodeURIComponent(addthis_logo);
	return 'http://www.addthis.com/bookmark.php?v=15&winname=addthis&pub='+addthis_pub+'&s='+at15K+'&url='+at15J+'&title=' +
		at15j+'&logo='+at15H+'&logobg='+addthis_logo_background+'&logocolor='+addthis_logo_color; }

function _at15C() {
	var at15c=document.createElement('link');
	at15c.rel='stylesheet';
	at15c.type='text/css';
	at15c.href=addthis_css_local;
	at15c.media='all';
	document.lastChild.firstChild.appendChild(at15c); }

function _at15B() {
	_at15b(); _at15C();
	var at15o0 = '<table width="100%" cellpadding="0" cellspacing="0" style="font-size:12px; margin:0px; padding:0px;">' +
		'<tr class="addthis_cap">' +
		'<td colspan="2" height="18" style="font-size:12px; height:18px; text-align:center; vertical-align:middle;">' +
		'<span id="at_caption">'+addthis_caption_share+'</span></td></tr><tr>' +
		'<td colspan="2" height="180" style="position:relative; height:180px; vertical-align:top;">' +
		'<div id="at_share" style="position:absolute; display:block; height:180px; padding:0px; overflow:hidden;">' +
		'<table id="addthis_services" width="100%" cellpadding="0" cellspacing="0" ' +
		'style="font-family:Verdana,Arial; font-size:11px;">';
	var at15m = addthis_options.split(',');
	for (var at15P=0;at15P<at15m.length;at15P++) { var at15L=at15m[at15P]; if (at15L in at15y) {
		at15o0 += '<tr><td width="100%" height="18" style="height:18px; text-align:left; padding:1px 0px 1px 0px;"><a href="/" ' +
		'onclick="return _addthis_sendto(\''+at15L+'\');" style="display:block; line-height:18px; width:120px; padding:0px 0px 0px 4px;">' +
		'<img id="addthis_'+at15L+'15" ' +
		'alt="" title="" width="16" height="16" style="display:inline; vertical-align:bottom; border:none;">&nbsp;' +
		at15y[at15L][0]+'</a></td></tr>'; }}
	at15o0 += '</table></div>\n<div id="at_email" style="position:absolute; display:none; height:180px; padding:0px; overflow:hidden;">' +
		'<table width="100%" cellpadding="0" cellspacing="0"><tr><td colspan="2" style="height:6px;"></td></tr>' +
		'<tr><td align="left" valign="top" style="font-size:12px; align:left; vertical-align:top; padding:3px 0px 0px 6px;">To:</td>' +
                '<td align="right" style="align:right; height:24px; vertical-align:middle; padding:0px 6px 0px 0px;">' +
		'<input class="addthis_form" id="at_to" type="text" style="width:184px; height:18px; font-size:11px;" ' +
		'value="email address" onfocus="_checkto(this)"></td</tr>' +
		'<tr><td align="left" valign="top" style="font-size:12px; align:left; vertical-align:top; padding:3px 0px 0px 6px;">From:</td>' +
		'<td align="right" style="align:right; height:24px; vertical-align:middle; padding:0px 6px 0px 0px;">' +
		'<input class="addthis_form" id="at_from" type="text" style="width:184px; height:18px; font-size:11px;" ' +
		'value="email address" onfocus="_checkto(this)"></td</tr>' +
		'<tr><td align="left" valign="top" style="font-size:12px; align:left; vertical-align:top; padding:3px 0px 0px 6px;">Note:</td>' +
		'<td align="right" style="align:right; height:96px; vertical-align:middle; padding:0px 6px 0px 0px;">' +
		'<textarea class="addthis_form addthis_scroll" id="at_msg" style="width:184px; height:90px; font-size:11px;" ' +
		'onfocus="_checkto(this)">message text</textarea></td</tr>' +
		'<tr><td colspan="2" align="right" style="align:right; height:22px; vertical-align:middle; padding:0px 6px 0px 0px;">' +
		'<span id="at_success" style="font-size:12px; color:#777777;"></span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;' +
		'<input class="addthis_form" type="button" value="Send" onclick="return addthis_send()" ' +
		'style="height:22px; margin-top:1px; padding:0px; font-family:Arial; font-size:11px; text-align:center; vertical-align:middle; cursor:pointer;">' +
		'</td</tr></table></div></td></tr>\n';
	at15o0 += '<tr class="addthis_cap">' +
		'<td height="11" align="left" style="font-size:9px; height:11px; text-align:left;">' +
		addthis_brand+'</td><td height="11" align="right" style="height:11px; text-align:right;">' +
		'<a href="http://www.addthis.com" target="_blank" style="height:9px; padding:0px;"><img src="'+at15o +
		'addthis-mini.gif" border="0" style="padding:0px; width:50px; height:9px;" alt="" title=""></a></td></tr></table>\n';
	return at15o0; }

function _at15b() {
	at15n = false;
	if (typeof addthis_pub=='undefined') addthis_pub='';
	if (typeof at15i0=='undefined') at15i0='Bookmark &amp; Share';
	if (typeof addthis_brand=='undefined') addthis_brand='';
	if (typeof addthis_logo=='undefined') addthis_logo='';
	if (typeof addthis_logo_background=='undefined') addthis_logo_background='';
	if (typeof addthis_logo_color=='undefined') addthis_logo_color='';
	if (typeof addthis_options=='undefined') addthis_options= '' +
		'favorites, digg, delicious, google, myspace, facebook, reddit, newsvine, live, more';
	if (typeof addthis_caption_share=='undefined') addthis_caption_share='Bookmark &amp; Share';
	if (typeof addthis_caption_email=='undefined') addthis_caption_email='Email a Friend';
	addthis_options=addthis_options.replace(/\s/g,''); }

function _atshow(at15I0) {
	var at15o1=_at15I('at_share');
	var at15O1=_at15I('at_email');
	var at15l1=_at15I('at_caption');
	var at15i1=_at15I('at_success');
	at15o1.style.display='none';
	at15O1.style.display='none';
	at15i1.innerHTML='';
	atCss.height = '210px';
	atCss.top = '-120px';
	if ( at15I0=='share' || at15I0=='') {
		atCss.width = '124px';
		atCss.left = '-4px';
		at15o1.style.display='block';
		at15l1.innerHTML=addthis_caption_share; }
	else {
		atCss.width = '244px';
		atCss.left = '-124px';
		at15O1.style.display='block';
		at15l1.innerHTML=addthis_caption_email; }}

function _checkto(at15o3) {
	if ((at15o3.value=='email address') || (at15o3.value=='message text')) at15o3.value=''; }

