	
		var prodSwatch = {}
		prodSwatch.currentColor = "";
		function swapColorName(where,color) {
			prodSwatch.currentColor = document.getElementById(where).innerHTML;
			if (color=="" || color==null) {
				if (prodSwatch.currentColor!="" && prodSwatch.currentColor!=null)
					document.getElementById(where).innerHTML = prodSwatch.currentColor;
			}
			else
				document.getElementById(where).innerHTML = color;
		}
		
		function setSwatchActive(o) {
			var div = o.parentNode;
			var swatches = div.childNodes
			for (i=0;i<=swatches.length;i++) {
			  if (swatches[i]!=null) {
				if (swatches[i].className=="selected")
					swatches[i].className="";
				if (swatches[i]==o)
					swatches[i].className="selected";
			 }
			}
			
		}
		
	
		function copy(inElement) {
		  if (inElement.createTextRange) {
		    var range = inElement.createTextRange();
		    if (range)
		      range.execCommand('Copy');
		  } else {
		    var flashcopier = 'flashcopier';
		    if(!document.getElementById(flashcopier)) {
		      var divholder = document.createElement('div');
		      divholder.id = flashcopier;
		      document.body.appendChild(divholder);
		    }
		    document.getElementById(flashcopier).innerHTML = '';
		    var divinfo = '<embed src="../include/clipboard.swf" FlashVars="clipboard='+encodeURIComponent(inElement.value)+'" width="0" height="0" type="application/x-shockwave-flash"></embed>';
		    document.getElementById(flashcopier).innerHTML = divinfo;
		  }
	}
	
	
	
	function showSearchIndex() {
		
		if (document.getElementById("searchIndex").style.display === "none") {
			document.getElementById("searchIndex").style.display = "block";
			//document.getElementById("footer").style.height = "300px !important;";
			return;
		}
		
		if (document.getElementById("searchIndex").style.display == "block") {
			document.getElementById("searchIndex").style.display = "none";
			//document.getElementById("footer").style.height = "103px !important;";
			return;
		}
			
	}

	function togglePageDescription(id)
	{
 		var desc = document.getElementById(id);
 		if (desc.style.display == "none" || desc.style.display == "") { desc.style.display = "block"; }
		else if (desc.style.display == "block") { desc.style.display = "none"; }
	}