function changeIcon() {
	if (document.getElementById('icon').rel == "contracted"){
		document.getElementById('icon').src = "/images/social/expand.gif";
		document.getElementById('icon').rel = "expanded";
	}else{
		document.getElementById('icon').src = "/images/social/contract.gif";
		document.getElementById('icon').rel = "contracted";
	}
}

function sharethis(){
	var e=document.createElement('script');
	e.setAttribute('language','javascript');
	e.setAttribute('src','http://sharethis.com/share/load');
	document.body.appendChild(e);
	void(0);
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->


function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}


function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 4;
var wint = (screen.height - h) / 4;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}


function MM_openBrWindow(theURL,winName,features) { 
  window.open(theURL,winName,features);
}