// JavaScript Document

	function ShowOrHide(d1, d2, d3) {
	  if (d1 != '') DoDiv(d1);
	  if (d2 != '') DoDiv(d2);
	  if (d3 != '') DoDiv(d3);
	}
	function DoDiv(id) {
	  var item = null;
	  if (document.getElementById) {
		item = document.getElementById(id);
	  } else if (document.all){
		item = document.all[id];
	  } else if (document.layers){
		item = document.layers[id];
	  }
	  if (!item) {
	  }
	  else if (item.style) {
		if (item.style.display == "none"){ item.style.display = ""; }
		else {item.style.display = "none"; }
	  }else{ item.visibility = "show"; }
 	}
	
	
function toggle( targetId ){
  if (document.getElementById){
  target = document.getElementById( targetId );
  if (target.style.display == "block"){                         
   target.style.display = "none";   
  } 
  else {                                
   target.style.display = "block";  
  }
  }
}

function togglestyle( targetId ){
  if (document.getElementById){
  target = document.getElementById( targetId );
  if (target.className == "linkopen"){                         
   target.className = "linkclosed";   
  } 
  else {                                
   target.className = "linkopen";  
  }
  }
}

var newWin = null;
function popUp(strURL, strType, strHeight, strWidth) {
 if (newWin != null && !newWin.closed)
   newWin.close();
 var strOptions="";
 if (strType=="console")
   strOptions="resizable,height="+
     strHeight+",width="+strWidth;
 if (strType=="fixed")
   strOptions="status,height="+
     strHeight+",width="+strWidth;
 if (strType=="elastic")
   strOptions="toolbar,menubar,scrollbars,"+
     "resizable,location,height="+
     strHeight+",width="+strWidth;
 newWin = window.open(strURL, 'newWin', strOptions);
 newWin.focus();
}


/*del.icio.us - Bookmark this! - Arne Brachhold, v1.0*/
//<![CDATA[
//Bookmark on del.icio.us
function bookmark() {
//URL of this document
var loc=location.href;
//Strip out any anchors
var apos=loc.indexOf('#');
loc=(apos>0?loc.substring(0,apos):loc);
//Redirect to del.icio.us
location.href='http://del.icio.us/post?v=2&url='
+ encodeURIComponent(loc)
+'&title='
+encodeURIComponent(document.title);
//Return false so the link won't be activated. 
return false;
}
//]]>
