function addSocial() {
	window.open("http://addthis.com/bookmark.php?url=" + escape(location) + "&title=" + escape(document.title) + "&v=200","Bookmark","status=0, toolbar=0, location=0, menubar=0, directories=0, resizable=1, scrollbars=1, height=400, width=470");
}

function slideSize(obj,w) {
	
	newtimer = true
	if (!obj.getAttribute("curw")) { obj.setAttribute("curw",parseFloat(obj.style.width)); }
	if (obj.getAttribute("wa")==1) { newtimer = false }
	
	obj.setAttribute("tarw",w);	
	if (newtimer) {
		obj.setAttribute("wa",1);
		dosize(obj)
	}
	
	if (obj.getAttribute("tarw") > 0) {
			fadein2(document.getElementById(obj.getAttribute("id")))
		}
}	

function dosize(obj) {
	if (Math.abs(obj.getAttribute("tarw") - obj.getAttribute("curw")) > 1) {
		cw = parseFloat(obj.getAttribute("curw"))
		cw -= (parseFloat(obj.getAttribute("curw")) - parseFloat(obj.getAttribute("tarw"))) / 10
		obj.setAttribute("curw",cw);
		obj.style.width = obj.getAttribute("curw") + "px"
		setTimeout('dosize(document.getElementById("' + obj.getAttribute("id") + '"))',10)
	} else {
		obj.style.width = obj.getAttribute("tarw") + "px"
		obj.setAttribute("wa",0);
		if (obj.getAttribute("tarw") > 0) {

		} else {
			fadeout2(document.getElementById(obj.getAttribute("id")))
		}
	}
}





function fadein2(obj) {
	
	if (!obj.getAttribute("curopacity")) { obj.setAttribute("curopacity",50); }
	newtimer = true
	
	if (diff2(obj.getAttribute("curopacity"),obj.getAttribute("targopacity")) > 5) { newtimer = false }
	
	obj.setAttribute("targopacity",100)
	
	if (newtimer) { dofade2(obj) }
	
}	
function fadeout2(obj) {
	
	if (!obj.getAttribute("curopacity")) { obj.setAttribute("curopacity",50); }
	newtimer = true
	
	if (diff2(obj.getAttribute("curopacity"),obj.getAttribute("targopacity")) > 5) { newtimer = false }
	
	
	obj.setAttribute("targopacity",50)
	if (newtimer) { dofade2(obj) }
	
}

function dofade2(obj) {
	if (parseInt(obj.getAttribute("curopacity")) < parseInt(obj.getAttribute("targopacity"))) {
		obj.setAttribute("curopacity",parseInt(obj.getAttribute("curopacity")) + 5)
	}
	if (parseInt(obj.getAttribute("curopacity")) > parseInt(obj.getAttribute("targopacity"))) {
		obj.setAttribute("curopacity",parseInt(obj.getAttribute("curopacity")) - 1)
	}	
	
	if (diff2(obj.getAttribute("curopacity"),obj.getAttribute("targopacity")) > 0) {
		setTimeout("dofade2(document.getElementById('" + obj.getAttribute("id") + "'))",25);
	} else {

	}
	
	obj.style.opacity = obj.getAttribute("curopacity") / 100
	try {
		obj.filters.alpha.opacity = obj.getAttribute("curopacity");
	} catch(e) { }
}

function diff2(v1,v2) {
	return(Math.abs(parseInt(v1)-parseInt(v2)));
}
function fadein(obj) {
	
	if (!obj.getAttribute("curopacity")) { obj.setAttribute("curopacity",0); }
	newtimer = true
	
	if (diff(obj.getAttribute("curopacity"),obj.getAttribute("targopacity")) > 5) { newtimer = false }
	
	obj.setAttribute("targopacity",100)
	
	if (newtimer) { dofade(obj) }
	
}	
function fadeout(obj) {
	
	if (!obj.getAttribute("curopacity")) { obj.setAttribute("curopacity",0); }
	newtimer = true
	
	if (diff(obj.getAttribute("curopacity"),obj.getAttribute("targopacity")) > 5) { newtimer = false }
	
	
	obj.setAttribute("targopacity",0)
	if (newtimer) { dofade(obj) }
	
}

function dofade(obj) {
	if (parseInt(obj.getAttribute("curopacity")) < parseInt(obj.getAttribute("targopacity"))) {
		obj.setAttribute("curopacity",parseInt(obj.getAttribute("curopacity")) + 10)
	}
	if (parseInt(obj.getAttribute("curopacity")) > parseInt(obj.getAttribute("targopacity"))) {
		obj.setAttribute("curopacity",parseInt(obj.getAttribute("curopacity")) - 10)
	}	
	
	if (diff(obj.getAttribute("curopacity"),obj.getAttribute("targopacity")) > 0) {
		obj.style.visibility = "visible";
		setTimeout("dofade(document.getElementById('" + obj.getAttribute("id") + "'))",25);
	} else {
		if (obj.getAttribute("targopacity") == 0) {
			obj.style.visibility = "hidden";
		}
	}
	
	obj.style.opacity = obj.getAttribute("curopacity") / 100
	try {
		obj.filters.alpha.opacity = obj.getAttribute("curopacity");
	} catch(e) { }
}

function diff(v1,v2) {
	return(Math.abs(parseInt(v1)-parseInt(v2)));
}