// JavaScript Document

function toggleDiv(divid){
	if(document.getElementById(divid.id).style.display == 'none'){
		document.getElementById(divid.id).style.display = 'block';
	}else{
		document.getElementById(divid.id).style.display = 'none';
	}
}

function showContent(divid){
	(aboutuscontent).style.display = 'none';
	(hookahcontent).style.display = 'none';
	(vapecontent).style.display = 'none';
	(glasscontent).style.display = 'none';
	(tobaccocontent).style.display = 'none';
	(evenmorecontent).style.display = 'none';

	document.getElementById(divid.id).style.display = 'block';
}

function changeStyle(themename){
	if( themename == 'pink' ){
		document.getElementById("theme").href="themes/senspink.css";
	}else if( themename == 'dolphins'){
		document.getElementById("theme").href="themes/dolphins.css";
	}else if( themename == 'heat'){
		document.getElementById("theme").href="themes/heat.css";
	}else if( themename =='UM'){
		document.getElementById("theme").href="themes/uofm.css";
	}else if( themename =='xmas'){
		document.getElementById("theme").href="themes/xmas.css";
	}else if( themename =='holidays'){
		document.getElementById("theme").href="themes/holidays.css";
	}else if( themename =='rasta'){
		document.getElementById("theme").href="themes/rasta.css";
	}else {
		if( themename == 'default' ){
			document.getElementById("theme").href="sensone.css";
		}
	}
	document.getElementById("preferences").style.display = 'none';
}

