function hide(id) { document.getElementById(id).style.display = 'none'; }
function show(id) {	document.getElementById(id).style.display = ''; }
function ClimberList(id) {
	if(document.getElementById(id).style.display == 'none') {
		show(id);
		show(id+'_top_binder');
		show(id+'_top');
		show(id+'_down');
		show(id+'_down_binder');
		hide('climber_Close');
		show('climber_Expanded');
	}else {
		hide(id);
		hide(id+'_top');
		hide(id+'_top_binder');
		hide(id+'_down');
		hide(id+'_down_binder');
		hide('climber_Expanded');
		show('climber_Close');
	}
}
function PathList(id) {
	if(document.getElementById(id).style.display == 'none') {
		show(id);
		show(id+'_top_binder');
		show(id+'_top');
		show(id+'_down');
		show(id+'_down_binder');
		hide('path_Close');
		show('path_Expanded');
	}else {
		hide(id);
		hide(id+'_top');
		hide(id+'_top_binder');
		hide(id+'_down');
		hide(id+'_down_binder');
		hide('path_Expanded');
		show('path_Close');
	}
}
function MountainList(id) {
	if(document.getElementById(id).style.display == 'none') {
		show(id);
		show(id+'_top_binder');
		show(id+'_top');
		show(id+'_down');
		show(id+'_down_binder');
		hide('mountain_Close');
		show('mountain_Expanded');
	}else {
		hide(id);
		hide(id+'_top');
		hide(id+'_top_binder');
		hide(id+'_down');
		hide(id+'_down_binder');
		hide('mountain_Expanded');
		show('mountain_Close');
	}
}
function ClubList(id) {
	if(document.getElementById(id).style.display == 'none') {
		show(id);
		show(id+'_top_binder');
		show(id+'_top');
		show(id+'_down');
		show(id+'_down_binder');
		hide('club_Close');
		show('club_Expanded');
	}else {
		hide(id);
		hide(id+'_top');
		hide(id+'_top_binder');
		hide(id+'_down');
		hide(id+'_down_binder');
		hide('club_Expanded');
		show('club_Close');
	}
}
function DateSearch(id) {
	if(document.getElementById(id).style.display == 'none') {
		show(id);
		show(id+'_top_binder');
		show(id+'_top');
		show(id+'_down');
		show(id+'_down_binder');
		hide('date_Close');
		show('date_Expanded');
	}else {
		hide(id);
		hide(id+'_top');
		hide(id+'_top_binder');
		hide(id+'_down');
		hide(id+'_down_binder');
		hide('date_Expanded');
		show('date_Close');
	}
}
function ResetDesultCropper() {
	var name = 'ISCC_GMO';
	document.cookie = name + "=;expires=Thu, 01-Jan-05 00:00:01 GMT";
	document.getElementById('MOP_SwitchStatus').innerHTML = 'خاموش';
}

function SaveGMO() {
	
	var name = 'ISCC_GMO';
	document.cookie = name + "=;expires=Thu, 01-Jan-05 00:00:01 GMT";
	
	var SOVConfiguration = new Array(6);
	SOVConfiguration[0] = document.getElementById('SortName_Date').checked;
	SOVConfiguration[1] = document.getElementById('SortName_ND').checked;
	SOVConfiguration[2] = document.getElementById('SortName_NI').checked;
	SOVConfiguration[3] = document.getElementById('Cropper_SE').checked;
	SOVConfiguration[4] = document.getElementById('Cropper_SELECT').checked;
	SOVConfiguration[5] = document.getElementById('Cropper_SDate').value;
	SOVConfiguration[6] = document.getElementById('Cropper_EDate').value;
	document.cookie = "ISCC_GMO="+SOVConfiguration.join('.');
	
	document.getElementById('MOP_SwitchStatus').innerHTML = 'روشن';
}
