<!--//--><![CDATA[//><!--

/*  see www.htmldog.com for suckerfish menu and forum for code below   */
/*  ~~~~~~~~~~~~   MENU HOVER CODE  ~~~~~~~~~~~~ */
	sfHover = function() {
		var sfEls = document.getElementById("nav").getElementsByTagName("li");
		for (var i=0; i<sfEls.length; i++) {
			sfEls[i].onmouseover=function() {
				this.className+=(this.className.length > 0? " ": "") + "sfhover";
			}
			sfEls[i].onmouseout=function() {
				this.className=this.className.replace(new RegExp("( ?|^)sfhover\\b"), "");
			}
		}
		
		window.status='';
		return true;
	}
	
/*  ~~~~~~~~~~~~   window onload code ~~~~~~~~~~~~ */	
	if (document.all) { //MS IE
		if (window.attachEvent) window.attachEvent("onload", sfHover);
		
		else { //IE 5.2 Mac does not support attachEvent
			var old = window.onload;
			window.onload = function() { 
				if (old) old(); sfHover(); 
			}
		}
	}


/*  ~~~~~~~~~~~~   Image Swap CODE  ~~~~~~~~~~~~ */	
	function newImage(arg) {
		if (document.images) {
			rs2lt = new Image();
			rs2lt.src = arg;
			return rs2lt;
		}
	}
	
	function changeImages() {
		if (document.images) {
			for (var i=0; i<changeImages.arguments.length; i+=2) {
				document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
			}
		}
	}

	
/*  ~~~~~~~~~~~~  Scroller thumbs to details  ~~~~~~~~~~~~ */	
	function launchDetails(workID){
		document.getElementById('detailsFrame').src="details.asp?workID="+workID;
	}
	
	
/*  ~~~~~~~~~~~~  ShowHide Elements  ~~~~~~~~~~~~ */	
	function ShowHide(elementID) {
		var property
		if (document.getElementById) 
			property = document.getElementById(elementID).style
		else if (document.all)
			property = document.all[elementID].style
		else if (document.layers)
			property = document.layers[elementID]
		
		if (property.display=='none')
			property.display = ''
		else
			property.display = 'none'
	}

	
		
/*  ~~~~~~~~~~~~  Popup Window  ~~~~~~~~~~~~ */	
	function popup(strFilename){
		var newWin = window.open(strFilename,'large','width=720,height=560,status=no,toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=no')
		newWin.focus();return false;
	}
	function popupXE(strFilename){
		var newWin = window.open(strFilename,'large','width=470,height=140,status=no,toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=no')
		newWin.focus();return false;
	}
//--><!]]>