<!--

//from http://images.apple.com/support/scripts/openclose.js

function show(id) {
	if (document.getElementById) { // DOM3 = IE5, NS6
  	document.getElementById(id).style.display = "block";
  }
  else if (document.layers) {	
		document.id.display = "block";
	} else {
				document.all.id.style.display = "block";
		}
}

function hide(id) {
	if (document.getElementById) { // DOM3 = IE5, NS6
  	document.getElementById(id).style.display = "none";
  }
  else if (document.layers) {	
		document.id.display = "none";
	} else {
				document.all.id.style.display = "none";
		}
}

//show OR hide function depends on if element is shown or hidden
function soh(id) { 
  alert(document.getElementById(id).style.display)
	
	if (document.getElementById) { // DOM3 = IE5, NS6
		if (document.getElementById(id).style.display == "" || document.getElementById(id).style.display == "none" ){
			document.getElementById(id).style.display = "block";
			//filter(("img"+id),'imgin');
			//document.getElementById("label" + id).innerHTML=" (Click for less)";
		} else {
			//filter(("img"+id),'imgout');
			document.getElementById(id).style.display = 'none';
			//document.getElementById("label" + id).innerHTML=" (Click for more)";
		}	
	} else { 
		if (document.layers) {	
			if (document.id.display == "none"){
				document.id.display = 'block';
				//filter(("img"+id),'imgin');
			} else {
				//filter(("img"+id),'imgout');	
				document.id.display = 'none';
			}
		} else {
			if (document.all.id.style.visibility == "none"){
				document.all.id.style.display = 'block';
			} else {
				//filter(("img"+id),'imgout');
				document.all.id.style.display = 'none';
			}
		}
	}
}

function WM_imageSwap(daImage, daSrc){
  var objStr,obj;
  /*
    WM_imageSwap()
    Changes the source of an image.

    Source: Webmonkey Code Library
    (http://www.hotwired.com/webmonkey/javascript/code_library/)

    Author: Shvatz
    Author Email: shvatz@wired.com

    Usage: WM_imageSwap(originalImage, 'newSourceUrl');

    Requires: WM_preloadImages() (optional, but recommended)
    Thanks to Ken Sundermeyer (ksundermeyer@macromedia.com) for his help
    with variables in ie3 for the mac. 
    */

  // Check to make sure that images are supported in the DOM.
  if(document.images){

    // Check to see whether you are using a name, number, or object
    if (typeof(daImage) == 'string') {
      // This whole objStr nonesense is here solely to gain compatability
      // with ie3 for the mac.
      objStr = 'document.' + daImage;
      obj = eval(objStr);
      obj.src = daSrc;
    } else if ((typeof(daImage) == 'object') || daImage || daImage.src) {
      daImage.src = daSrc;
    }
  }
}

function popWindow(url,windowName) {
  newwindow=window.open(url,windowName);
	if (window.focus) {newwindow.focus()}
	return false;
}


//-->