// JavaScript Document
function ele(str) {
	if ( window.all ) {
		return window.all[str];
	}
	else {
		return document.getElementById(str);
	}
}
function HideAndSeek() {
	this.show = "Show";
	this.hide = "Hide";
	var args  = arguments;
		
	function init(arr) {
		if (arr.length>0) {
			for (var i=0;i<arr.length;i++) {
				ele(arr[i]).style.display = "none";
			}
		}
	}
	
	this.toggle = function (id) {
		var bool = (document.getElementById(id).style.display=='none');
		if (arguments.length==2) { 
			var clicker = arguments[1];
			clicker.firstChild.data = (bool)?this.hide:this.show;
		}
		ele(id).style.display = (bool)?"block":"none";
	}
	this.turnOn = function (id) {
		if (arguments.length==2) arguments[1].firstChild.data = this.show;
		ele(id).style.display = "block";
	}
	this.turnOff = function (id) {
		if (arguments.length==2) arguments[1].firstChild.data = this.hide;
		ele(id).style.display = "none";
	}
	
	
	this.setTitles = function (s, h) {
		this.show = s;
		this.hide = h;
	}
	
	init(args);
}