
function popupCards(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=1,statusbar=0,menubar=0,resizable=1,width=800,height=800,left = 470,top = 200');");
}

/*
function resizeLayout(){
	// this extends the left and right hand gutter backgrounds to 100% document height

	var leftcontentBG = document.getElementById("leftcontentBG");
	var rightcontentBG = document.getElementById("rightcontentBG");
	var htmlheight = document.body.parentNode.scrollHeight;
	var windowheight = window.innerHeight;
	if ( htmlheight < windowheight )
	{
		document.body.style.height = windowheight + "px";
		document.body.style.height = windowheight + "px";
		leftcontentBG.style.height = windowheight + "px";
		rightcontentBG.style.height = windowheight + "px";
	}
	else
	{
		document.body.style.height = htmlheight + "px";
		leftcontentBG.style.height = htmlheight + "px";
		rightcontentBG.style.height = htmlheight + "px";
	}
}
*/

function updateGrandTotal(obj,amount) {

	if(obj.options[obj.selectedIndex].value=='standard') {

		document.getElementById('grandTotal').innerHTML = (parseInt(document.getElementById('grandTotal').innerHTML) - parseInt(amount)).toFixed(2);

	} else {

		document.getElementById('grandTotal').innerHTML = (parseInt(document.getElementById('grandTotal').innerHTML) + parseInt(amount)).toFixed(2);

	}

}

$(document).ready(function(){
	$("#slideshow > img").remove();
	$("#slideshow").dynamicSlideshow({duration: 6000});
});
