// JavaScript Document

function homeswitch(id){
	// Variabls
	var x
	for (x in mytext){
		if(x==id){
			document.getElementById(x).className = "but sel";
			document.getElementById("changes").innerHTML = mytext[x];
			document.getElementById("switch").style.backgroundImage = "url(/img/custom/" + x +".jpg)";
		}else{
			document.getElementById(x).className = "but";
		}
	}
}
	
	
	

function editor_select_save(what,newvalue,side){
	if(what=="font"){
		myimg = "/img/editor/font.php?font=" + newvalue;
	}else{
		myimg = "/img/editor/" + what + "/" + newvalue;
	}	
	document.getElementById("img_" + what).src = myimg;
	document.getElementById("selector").style.display = "none";
	document.getElementById("selector").innerHTML = "Loading...";
	
	editor_update(what,newvalue,side);
}
function show_preview(page){
	document.getElementById("basket").style.display = "none";
	document.getElementById("popup").style.display = "block";
	siylc_ajax("/ajax/bigblade.php?id=" + page,"popup","<h3>Loading, Please Wait...</h3>");
	return false;
}


