function linkcell(theurl){
	location.href = theurl;
	}

function swapClass() {
	// VARS PASSED TO swapClass
	// 1:		RUN THE swapClass SCRIPT IN FULL TOGGLE MODE
	// p1:		EXCLUDE THE ELEMENT WITH AN ID OF p1 FROM THE OPERATION
	// open:	FIND ALL ELEMENTS ASSIGNED THE .open CLASS
	// closed:	SET ALL ELEMENTS IT FIND WITH THE .open CLASS TO THE .closed CLASS
	// li:		RESTRICT THE SEARCH TO <li> ELEMENTS ONLY
	var i,x,tB,j=0,tA=new Array(),arg=swapClass.arguments;
	if(document.getElementsByTagName) {
		for(i=4; i<arg.length; i++) {
			tB = document.getElementsByTagName(arg[i]);
			for(x=0; x<tB.length; x++){
				tA[j] = tB[x];
				j++;
			}
		}
		for(i=0; i<tA.length; i++) {
			if(tA[i].className) {
				// OPENING/CLOSING OF MENU ITEMS
				if(tA[i].id == arg[1]) {
					if(arg[0] == 1) {
						// TOGGLE SWITCH: CLOSE MENU ITEM IF OPEN
						tA[i].className = (tA[i].className == arg[3]) ? arg[2] : arg[3];
					}
					else {
						// ONCE MENU ITEM IS OPEN IT STAYS OPEN
						tA[i].className = arg[2];
					}
				}
				else if(arg[0] == 1 && arg[1] == 'none') {
					if(tA[i].className == arg[2] || tA[i].className == arg[3]) {
						tA[i].className = (tA[i].className == arg[3]) ? arg[2] : arg[3];
					}
				} else if(tA[i].className == arg[2]) {
					// THIS CODE WILL CLOSE OTHER MENU ITEMS YOU HAVE OPEN IF YOU CLICK
					// ON A NEW MENU ITEM. IF YOU DO NOT WISH THE MENU TO DO THAT LEAVE
					// LEAVE THE CODE COMMENTED OUT.
					//tA[i].className=arg[3];
				}
			}
		}
	}
}

function writeStyles(op,a) {
	if(op == 0 || document.getElementById) {
		var tS = "<sty"+"le type=\"text/css\">";
		tS += a +"<"+"/sty"+"le>";
		document.write(tS);
		document.close();
	}
}
writeStyles(1,'.closed ul{ display:none;}.open ul{ display:block;}');

/* Default search box value */
function clearKeyword(key) {
if (key.defaultValue==key.value) key.value = ""
}
