function switchClass(myElement, className1,className2){

if (myElement.className == className1){
	myElement.className = className2;
	}else{
	myElement.className = className1;
	}
}


// mailto:
function mailTo(nameVar, domainVar) {
    document.write('<a href=\"mailto:' + nameVar + '@' + domainVar + '\">');
    document.write(nameVar + '@' + domainVar + '</a>'); 
}

/*Dropdown*/
function DropDown(el){
	this.timer = null;
	this.dropDownElement = el;
	this.isOpened = false;
	this.timeoutString = "document.getElementById('"+el+"').style.display='none';";
}

DropDown.prototype.Open  = function(){
	//clearTimeout(this.timer);
	
	if(this.timer){
		clearTimeout(this.timer);
	}
	document.getElementById(this.dropDownElement).style.display='block';
	
	//var thisObj = this;
	//setTimeout(function(thisObj) { thisObj.Hide(); },10000,this);
}
DropDown.prototype.KeepOpened = function(){
	if(this.timer){
		clearTimeout(this.timer);
	}
}

DropDown.prototype.Close = function(){
	
	ts=this.timeoutString;
	this.timer = setTimeout(ts,1000);
}


WebsiteDropDown = new DropDown('vicreaWebsites');
