/*
 * Modified on 2008-03-20
 * by JeminK
 * - Change for inline script
 */
 
var addthis_url    = location.href;   
var addthis_title  = document.title;  
var addthis_pub    = 'mongole'; 

var addthis_widget	= 'addthis'; 
var at12O			= 'http://s7.addthis.com/';
var at12o			= 'http://s7.addthis.com/services/'; 
var at12Y			= 'http://s7.addthis.com/select/'; 

function at12y ()
{
	addthis_url		= encodeURIComponent( addthis_url );
	addthis_title	= encodeURIComponent( addthis_title );
	addthis_title	= addthis_title.replace( /'/g,'\\\'' );
	var at12I		= '<a href="' + at12i('') + '\" onmouseover=\"return addthis_onmouseover(this, event, \'' + addthis_url + '\', \'' + addthis_title +'\', \'' + addthis_pub + '\')\" onmouseout=\"addthis_onmouseout()\" onclick=\"return addthis_to()\" class=\"snap_noshots\">';
	at12I			+= '<img src="' + at12O + 'button1-bm.gif" width="125" height="16" border="0" style="border: none; padding: 0px" alt="" /></a>'; 
	$('div_addthis').innerHTML = at12I;
}

function at12A ( at12a )
{
	return document.getElementById( at12a );
}

function addthis_clearclosewin ()
{
	if ( typeof at12E != "undefined" ) clearTimeout( at12E );
}

function addthis_onmouseover ( at12e, at12U, at12u, at12Z, at12z )
{
	addthis_clearclosewin();
	addthis_url		= at12u;
	addthis_title	= at12Z;
	addthis_pub		= at12z;
	at12X			= at12A( 'addthis_favorites' );
	at12X.src		= at12o + 'favorites.png';
	at12X			= at12A( 'addthis_delicious' );
	at12X.src		= at12o + 'delicious.png';
	at12X			= at12A( 'addthis_digg' );
	at12X.src		= at12o + 'digg.png';
	at12X			= at12A( 'addthis_reddit' );
	at12X.src		= at12o + 'reddit.gif';
	at12X			= at12A( 'addthis_google' );
	at12X.src		= at12o + 'goog.png';
	at12X			= at12A( 'addthis_furl' );
	at12X.src		= at12o + 'furl.gif';
	at12X			= at12A( 'addthis_su' );
	at12X.src		= at12o + 'su.png';
	at12X			= at12A( 'addthis_live' );
	at12X.src		= at12o + 'live.gif';
	at12X			= at12A( 'addthis_myweb' );
	at12X.src		= at12o + 'yahoo-myweb.png';
	at12X			= at12A( 'addthis_facebook' );
	at12X.src		= at12o + 'facebook.gif';
	at12X			= at12A( 'addthis_myspace' );
	at12X.src		= at12o + 'myspace.png';
	at12X			= at12A( 'addthis_more' );
	at12X.src		= at12o + 'plus-16x16-light.gif';
	var at12x		= at12e.getElementsByTagName( 'img' );
	if ( at12x ) at12e = at12x[0];
	var at12W		= at12A( 'addthis_dropdown' );
	at12W.style.display = 'block';
	var at12w		= at12V(at12e);
	at12v			= at12w[0];
	at12T			= at12w[1];
	var at12t		= at12S();
	var at12s		= at12R();
	if ( at12v - at12s[0] + at12W.clientWidth + 024 > at12t[0] ) at12v = at12v - 0157;
	if ( at12T - at12s[1] + at12W.clientHeight + at12e.clientHeight + 024 > at12t[1] ) at12T = at12T - 0235;
	at12W.style.left=at12v + 'px';
	at12W.style.top	= ( at12T + at12e.clientHeight ) + 'px';
	return false;
	
}

function addthis_onmouseout ()
{
	addthis_closewinwait();
}

function addthis_closewinwait ()
{
	at12E=setTimeout( "addthis_closewin()", 0764 );
}

function addthis_closewin ()
{
	var at12W			= at12A( 'addthis_dropdown' );
	at12W.style.display	= 'none';
	return false;
}

function addthis_to ( at12r )
{
	addthis_closewin();
	if ( at12r == 'favorites' )
	{
		addthis_url		= decodeURIComponent( addthis_url );
		addthis_title	= decodeURIComponent( addthis_title );
		if ( document.all ) window.external.AddFavorite( addthis_url, addthis_title );
		else window.sidebar.addPanel( addthis_title, addthis_url, '' );
		return false;
	}

	window.open( at12i( at12r ), 'addthis', 'scrollbars=yes, menubar=no, width=620, height=400, resizable=yes, toolbar=no, location=no, status=no' );
	return false;
}

function at12i ( at12r )
{
	return 'http://www.addthis.com/bookmark.php?v=12&winname=addthis&pub=' + addthis_pub + '&s=' + at12r + '&url=' + addthis_url + '&title=' + addthis_title;
}

function at12V ( at12Q )
{
	var at12q = 0, at12P = 0;
	do 
	{
		at12q += at12Q.offsetTop || 0;
		at12P += at12Q.offsetLeft || 0;
		at12Q = at12Q.offsetParent;
	}
	while ( at12Q );
	return [ at12P, at12q ];
}

function at12S ()
{
	var at12p = 0;
	var at12N = 0;
	if ( typeof( window.innerWidth ) == 'number' )
	{
		at12p = window.innerWidth;
		at12N = window.innerHeight;
	}
	else if ( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) )
	{
		at12p = document.documentElement.clientWidth;
		at12N = document.documentElement.clientHeight;
	
	}
	else if ( document.body && ( document.body.clientWidth || document.body.clientHeight ) )
	{
	at12p = document.body.clientWidth;
	at12N = document.body.clientHeight;
	
	}

	return [ at12p, at12N ];
}

function at12R ()
{
	var at12n = 0;
	var at12M = 0;
	if ( typeof( window.pageYOffset ) == 'number' )
	{
		at12M = window.pageYOffset;
		at12n = window.pageXOffset;
	}
	else if ( document.body && ( document.body.scrollLeft || document.body.scrollTop ) )
	{
		at12M = document.body.scrollTop;
		at12n = document.body.scrollLeft;
	}
	else if ( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) )
	{
		at12M = document.documentElement.scrollTop;
		at12n = document.documentElement.scrollLeft;
	}
	return [ at12n, at12M ];
}

function at12m ()
{
	at12L		= document.createElement( 'link' );
	at12L.rel	= 'stylesheet';
	at12L.type	= 'text/css';
	at12L.href	= at12O + 'css/addthis_widget.css';
	at12L.media	= 'all';
	document.lastChild.firstChild.appendChild( at12L );
		
}

function at12l ()
{
	at12m();
	var at12K	= '<div id="addthis_dropdown" onmouseover="addthis_clearclosewin()" onmouseout="addthis_onmouseout()" style="z-index: 1000000; position: absolute; display: none">';
	at12K		+= '<table width="100%" cellpadding="2" cellspacing="0" style="background-color: #EEEEEE; height: 20px">';
	at12K		+= '<tr><td style="font-size: 12px; color: #666666">Bookmark &amp; Share</td><td width="60" align="right"><a href="http://www.addthis.com" style="font-size: 9px; text-decoration: none; color: #666666" target="_blank" class="snap_noshots">&copy; Add This</a></td></tr>';
	at12K		+= '</table>';
	at12K		+= '<table id="addthis_services" width="100%" cellpadding="0" style="font-family: Verdana, Arial; font-size: 11px;">';
	at12K		+= '<tr>';
	at12K		+= '<td width="50%"><a href="/" onclick="return addthis_to( \'favorites\' )"><img id="addthis_favorites" alt="" width="16" height="16" />&nbsp;Favorites</a></td>';
	at12K		+= '<td width="50%"><a href="/" onclick="return addthis_to( \'delicious\' )"><img id="addthis_delicious" alt="" width="16" height="16" />&nbsp;Del.icio.us</a></td>';
	at12K		+= '</tr><tr>';
	at12K		+= '<td><a href="/" onclick="return addthis_to( \'digg\' ); "><img id="addthis_digg" alt="" width="16" height="16" />&nbsp;Digg</a></td>';
	at12K		+= '<td><a href="/" onclick="return addthis_to( \'google\' )"><img id="addthis_google" alt="" width="16" height="16" />&nbsp;Google</a></td>';
	at12K		+= '</tr><tr>';
	at12K		+= '<td><a href="/" onclick="return addthis_to( \'myspace\' ); "><img id="addthis_myspace" alt="" width="16" height="16" />&nbsp;MySpace</a></td>';
	at12K		+= '<td><a href="/" onclick="return addthis_to( \'facebook\' ); "><img id="addthis_facebook" alt="" width="16" height="16" />&nbsp;Facebook</a></td>';
	at12K		+= '</tr><tr>';
	at12K		+= '<td><a href="/" onclick="return addthis_to( \'reddit\' ); "><img id="addthis_reddit" alt="" width="16" height="16" />&nbsp;Reddit</a></td>';
	at12K		+= '<td><a href="/" onclick="return addthis_to( \'live\' ); "><img id="addthis_live" alt="" width="16" height="16" />&nbsp;Live</a></td>';
	at12K		+= '</tr><tr>';
	at12K		+= '<td><a href="/" onclick="return addthis_to( \'furl\' ); "><img id="addthis_furl" alt="" width="16" height="16" />&nbsp;Furl</a></td>';
	at12K		+= '<td><a href="/" onclick="return addthis_to( \'myweb\' ); "><img id="addthis_myweb" alt="" width="16" height="16" />&nbsp;Yahoo MyWeb</a></td>';
	at12K		+= '</tr><tr>';
	at12K		+= '<td><a href="/" onclick="return addthis_to( \'su\' ); "><img id="addthis_su" alt="" width="16" height="16" />&nbsp;StumbleUpon</a></td>';
	at12K		+= '<td><a href="/" onclick="return addthis_to();"><img id="addthis_more" alt="" width="16" height="16" />&nbsp;More...</a></td>';
	at12K		+= '</tr>';
	at12K		+= '</table>';
	at12K		+= '<table width="100%" cellpadding="0" cellspacing="0" style="background-color: #EEEEEE; height: 6px; font-size: 8px; color: #777777">';
	at12K		+= '<tr><td colspan="2"></td></tr>';
	at12K		+= '</table>';
	at12K		+= '</div>';
	at12k		= document.createElement( 'div' );
	at12k.innerHTML = at12K;
	document.body.insertBefore( at12k, document.body.firstChild );
	at12k.style.zIndex = 03641100;
}
	

