function switchCloud(viewType){
	
	if(viewType == "alpha"){
		document.getElementById('apha').style.display = "block";
		document.getElementById('popular').style.display = "none";
		
		document.getElementById('displayApha').style.display = "none";		
		document.getElementById('displayPopular').style.display = "block";		
	}else{
		document.getElementById('apha').style.display = "none";
		document.getElementById('popular').style.display = "block";
		
		document.getElementById('displayApha').style.display = "block";		
		document.getElementById('displayPopular').style.display = "none";		
	}
}

function switchOrder(mode, searchValue){
		
	var sortValue = ""
	
	if((mode.length > 0 && searchValue.length > 0) || mode == "fullRecent" ){
		sortValue = document.getElementById("sortBy").value;
		
		location.href = URLPREFIX+"explore?m="+mode+"&v="+searchValue+"&s="+sortValue;
	}
}

function expandCategory(batch, action){
	
	var displayValue = "";
	if(action == "expand"){
		//displayValue = "inline";
		document.getElementById('expandCat').style.display = "none" ;
		document.getElementById('hideCat').style.display = "inline";
		
		//document.getElementById('categoryExtra').style.display = "inline";
	}else{
		//displayValue = "none";
		document.getElementById('hideCat').style.display = "none";
		document.getElementById('expandCat').style.display = "inline";
		//document.getElementById('categoryExtra').style.display = "none";
	}
	
/*	for(var i=2; i<=batch; i++){
		if(document.getElementById('batch'+i)){
			document.getElementById('batch'+i).style.display=displayValue;
		}
	}*/
	
}


function categoryMouseHover(actionMethod, index){
	if(actionMethod == 0){		
		document.getElementById("catTable"+index).style.background="white";
	}else{		
		document.getElementById("catTable"+index).style.background="#EFEFEF";
	}
}