/*function init_page(){
	document.getElementById('aperitif_home').onmouseover=function() {
		homeDisp(0, 'out');	
	}
	document.getElementById('tushe_home').onmouseover=function() {
		homeDisp(1, 'out');	
	}
}*/
function buyIt(formNum){
	if(formNum==null){
		formNum="";	
	}
	var purchInfo=document.forms['product'+formNum];
	var sendVars="id="+purchInfo.id.value+"&name="+purchInfo.name.value+"&size="+purchInfo.size.value+"&price="+purchInfo.price.value+"&qty="+purchInfo.qty.value;
	request("/addCart", "cart", sendVars);
	document.getElementById("submit"+formNum).innerHTML="Item has been added to your cart!<br /><a href='/cart.php'>Click to view your cart!</a><br /><input type=\"submit\" value=\"Add to Cart\" /><br /><br />";
}
function viewProd(prodID){
	//fadeIn("products", 100, 0);
	new Effect.Appear("products", { from:1.0, to:0.0 })
	setTimeout('showProd("products", '+prodID+')', 1000);
}
function showProd(target, prodID){
	resizeDiv("products", 700, "px");
	resizeDiv("content", 100, "%");
	var targetDiv=document.getElementById(target);
	targetDiv.innerHTML='';
	sendVars="id="+prodID;
	//setTimeout('fadeIn("'+target+'", 0, 100)', 500);
	setTimeout('Effect.Appear("'+target+'")', 500);
	request("/showProd", target, sendVars);
}
var preloaded = new Array();
function preload_images() {
    for (var i = 0; i < arguments.length; i++){
        preloaded[i] = document.createElement('img');
        preloaded[i].setAttribute('src',arguments[i]);
    };
}