	if (document.images) {
		logo_off = new Image();
		logo_off.src = 'images/ss_foot_off.gif';
		logo_on = new Image();
		logo_on.src = 'images/ss_foot_on.gif';
	}

	function $() {		// simple syntax for "document.getElementById(obj_id)", returns [object];
		var elements = new Array();
		for (var i=0; i<arguments.length; i++) {
			var element = arguments[i];
			if (typeof element == 'string')
				element = document.getElementById(element);
			if (arguments.length == 1)
				return element;
			elements.push(element);
		}
		return elements;
	}

	function swpLogo(imgName,attrib){
		document[imgName].src=eval(imgName+'_'+attrib+'.src');
	}

	function addfavorite(fURL,fString) {
		if (document.all) {window.external.addFavorite(fURL,fString);}
		else {
			if (window.sidebar) {window.sidebar.addPanel(fString,fURL,"");}
		}
	}

	function switchMenu(mid,m,n) {
		var tmpObj = "";
		var tmpId = "";
		var attrOld = "";
		var attrNew = "";
		var corner = "";
		var cornerTxt = "";

		if (n > 1) {
			tmpObj = mid + m;
			attrOld = $(tmpObj).className;
			if (attrOld == "showMenu") {attrNew = "hiddenMenu";}
			else {attrNew = "showMenu";}
			for (i=m; i<=n; i++) {
				tmpId = mid + i;
				$(tmpId).className = attrNew;
			}
		}
		else {
			corner = mid + "_txt";
			attrOld = $(mid).className;
			if (attrOld == "showMenu") {
				attrNew = "hiddenMenu";
				cornerTxt = "6";
			}
			else {
				attrNew = "showMenu";
				cornerTxt = "5";
			}
			$(mid).className = attrNew;
			$(corner).innerHTML = cornerTxt;
		}
	}

	function autoLine() {
		if (($('menu1_txt').innerHTML=="6")&&($('menu2_txt').innerHTML=="6")&&($('menu3_txt').innerHTML=="6")) {$('contact_line').className="hiddenMenu";}
		else {$('contact_line').className="showMenu";}
	}