function popup(url, width, height, scrollbars) {
	var x = (screen.availWidth/2)-(width/2);
	var y = (screen.availHeight/2)-(height/2);
	newwindow = window.open(url, "name", "width="+width+", height="+height+", left="+x+", top="+y+", scrollbars="+scrollbars);
	if (window.focus) {
		newwindow.focus();
	}
	return false;
}

function sizeText() {
	var content = document.getElementById("content");
	if(content){
		if(content.style.fontSize == "" || content.style.fontSize == "10px") {
			content.style.fontSize = "12px";
		} else if(content.style.fontSize == "12px") {
			content.style.fontSize = "13px";
		} else if(content.style.fontSize == "13px") {
			content.style.fontSize = "10px";
		}
	}
	return false;
}

function sizeCard(size) {
	var tab = document.getElementById("recipe_tab");
	var card = document.getElementById("recipe_card");
	if(tab && card){
		if(size == 5 || size == "#5") {
			tab.style.width = "5in";
			card.style.width = "5in";
		} else if(size == 6 || size == "#6") {
			tab.style.width = "6in";
			card.style.width = "6in";
		} else if(size == 8 || size == "#8") {
			tab.style.width = "8in";
			card.style.width = "8in";
		}
	}
	return false;
}

over = function() {
	if(document.getElementById("site_nav")){
		var lis = document.getElementById("site_nav").getElementsByTagName("li");
		for (var i = 0; i< lis.length; i++) {
			lis[i].onmouseover = function() {
				this.className += " over";
			}
			lis[i].onmouseout = function() {
				this.className = this.className.replace(new RegExp(" over\\b"), "");
			}
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", over);
