function tendina_lang() {
	if(jQuery('#lingua').is(":visible")) {
		jQuery('#lingua').slideUp();
	}
	else {
		jQuery('#lingua').slideDown();
	}
}

function showWindowTellFriend(){
	if(jQuery('#dilloAmicoDropDown').is(":visible")) {
		jQuery('#dilloAmicoDropDown').slideUp();
	}
	else {
		jQuery('#dilloAmicoDropDown').slideDown();
	}
}

function aggiungiClasseAccordion(index){
  var index = index;
  obj = jQuery('a[headerindex=\''+index+'h\']');
  if(obj.hasClass('openpet')){
    obj.parent().addClass('accordionPatch');
  }else{
    obj.parent().removeClass('accordionPatch');
  }
}

/*
function divShow(idDiv){
	jQuery('#'+idDiv).show();
}

function divHide(idDiv){
	jQuery('#'+idDiv).hide();
}

function divShow(idDiv) {
	//divHideAll();
	//if (window.document.getElementById(idDiv)) {
	alert(idDiv);
	window.document.getElementById(idDiv).style.display='block';
	//}
	
}

function divHideAll() {
	//divHideAllSub();
	//window.clearTimeout(idTimer);
	var i;
	for (i=0; i<(ar.length); i++) {
	if (window.document.getElementById(ar[i])) {
		window.document.getElementById(ar[i]).style.display='none';
		}
	alert(i);
	}
}

function divOver() {
	window.clearTimeout(idTimer);
}

function divOut() {
	idTimer = window.setTimeout("divHideAll()",1);
}

function divShowSub(idDiv) {
	divHideAllSub(); 
	if (window.document.getElementById(idDiv)) {
	window.document.getElementById(idDiv).style.display='block';
	}
}

function divHideAllSub() {
	window.clearTimeout(idTimerSub);
	var i;
	for (i=0; i<(arsub.length); i++) {
		if (window.document.getElementById(arsub[i])) {
		window.document.getElementById(arsub[i]).style.display='none';
		}
	}
}

function divOverSub() {
	window.clearTimeout(idTimerSub);
}

function divOutSub() {
	idTimerSub = window.setTimeout("divHideAllSub()",500);
}
*/
