function menu_vc(divSlide,speed){

	this.divSlide = divSlide;
	this.state='show';
	/*this.speed = (typeof speed == 'undefined')? '' : speed;
	if (this.getCookie(this.divSlide+'-cookie') == 'on'){
		$('#'+this.divSlide).slideDown('fast');
		this.state='show';
	}else if (this.getCookie(this.divSlide+'-cookie') == 'off'){
		$('#'+this.divSlide).slideUp('fast');
		this.state='hide';
	}else if (this.getCookie(this.divSlide+'-cookie','off') == ''){
		$('#'+this.divSlide).slideDown('fast');
		this.setCookie(this.divSlide+'-cookie','off');
		this.state='show';
	}*/

}

	menu_vc.prototype.slideUp = function(){
		$('#'+this.divSlide).slideUp(this.speed);
		this.setCookie(this.divSlide+'-cookie','off');
		if(this.useImg) this.changeImg();
	}

	menu_vc.prototype.slideDown = function(){
		$('#'+this.divSlide).slideDown(this.speed);
		this.setCookie(this.divSlide+'-cookie','on');
		if(this.useImg) this.changeImg();
	}

	menu_vc.prototype.slideIt = function(){
		this.curState();
		if (this.state=='hide')
			this.slideDown();
		else if (this.state=='show')
			this.slideUp();
	}

	menu_vc.prototype.setImg = function(tagId,classShow,classHide){
		if(tagId && classShow && classHide){
			this.tagId=tagId;
			this.classShow=classShow;
			this.classHide=classHide;
			this.useImg = true;
			if (this.state=='hide') this.changeImg('show');
			else this.changeImg('hide');
		}else{
			this.useImg = false;
		}
	}

	menu_vc.prototype.changeImg = function(a){
		if ((a=='hide' && typeof a!='undefined')){
			document.getElementById(this.tagId).className = this.classHide;
		}else if ((a=='show' && typeof a!='undefined')){
			document.getElementById(this.tagId).className = this.classShow;
		}else if (this.state=='hide'){
			document.getElementById(this.tagId).className = this.classHide;
		}else if (this.state=='show'){
			document.getElementById(this.tagId).className = this.classShow;
		}
	}

	menu_vc.prototype.curState = function(){
		if ($('#'+this.divSlide).is(":hidden")) {
			this.state = 'hide';
		}
		else {
			this.state = 'show';
		}
	}

	menu_vc.prototype.setCookie = function(name,value,path){
		var p;
		if(typeof path != 'undefined') p=";path="+path;
		else p=";path=/";
		document.cookie = name+"="+value+p;

	}

	menu_vc.prototype.getCookie = function(name){
		var re=new RegExp(name+"=[^;]+", "i"); //construct RE to search for target name/value pair
		if (document.cookie.match(re)) //if cookie found
			return document.cookie.match(re)[0].split("=")[1]; //return its value
		return "";
	}

