function gostergizle() {
	this.class_opened		= 'sag_rehh2';//opened div class
	this.class_closed		= 'sag_rehh';//closed div class
	this.subClass_opened	= 'goster1';
	this.subClass_closed	= 'gizle1';
	
	this.current_q;
	this.subObj = null;
}

gostergizle.prototype.showhide = function(obj,subobj) {
	if(this.current_q && this.current_q != obj) {
		this.hide();
		this.subObj = subobj;
	}
	
	if(obj.className == this.class_opened) {
		this.subObj = subobj;
		this.hide();
	} else {
		this.subObj = subobj;
		this.show(obj);
	}
}


gostergizle.prototype.show = function(obj) {
	obj.className			= this.class_opened;
	this.current_q			= obj;
	this.subObj.className	= this.subClass_opened;
}


gostergizle.prototype.hide = function() {
	this.current_q.className	= this.class_closed;
	this.current_q			= null;
	this.subObj.className		= this.subClass_closed;
}
