$(document).ready(function(){
	
	$(".addthis_toolbox").insertAfter(".leftCol h1");
	$(".addthis_toolbox").after('<div style="clear:both;"></div>')
	
	$(".more").hide();
	$(".showmore").click(function(){
			$(".more").slideToggle("slow");
			$(".showmore .choices").toggle();
	});
	
	$(".show-style-switcher").click(function(){
			$(".style-switcher").slideToggle("slow");
	});
	
	
	$('.modal-login').modal({modal_styles: {width:"200px", "margin-left":"-100px"}});
	$('.modal-example').modal({modal_styles: {width:"400px", "margin-left":"-200px"}});
	$('.modal-style-switcher').modal({modal_styles: {width:"300px", "margin-left":"-150px"}});
});



/**
* Styleswitch stylesheet switcher built on jQuery
* Under an Attribution, Share Alike License
* By Kelvin Luck ( http://www.kelvinluck.com/ )
 */
/*
$(document).ready(function() {
	$('.styleswitch').click(function()
	{
		switchStylestyle(this.getAttribute("rel"));
		return false;
	});
		var c = readCookie('style');
		if (c) switchStylestyle(c);
	});
	
	function switchStylestyle(styleName)
	{
		$('link[@rel*=style][title]').each(function(i)
	{
	this.disabled = true;
	if (this.getAttribute('title') == styleName) this.disabled = false;
	});
	createCookie('style', styleName, 365);
}*/
