function gotoPage(spage) {
	document.frmlist.spage.value=spage;
	document.frmlist.submit();
	//page(spage);
}		

function sort(key){
	document.frmlist.sort.value=key;
	document.frmlist.spage.value=1;
	document.frmlist.submit();
}

function changeText(thefield,thevalue){
if (thefield.defaultValue==thefield.value)
	{
		thefield.value = "";
	}
else if (thefield.value=="")
	{
		thefield.value = thevalue;
	}
}

function getBigImage(theimage)
{
	d_id = window.showModalDialog('images/movies/' + theimage, '','status:no;center:yes;dialogWidth:420px;dialogHeight:575px;resizable:yes;scrollbars:no');	
	return d_id;
}

function getMap(theimage)
{
	d_id = window.showModalDialog('images/' + theimage, '','status:no;center:yes;dialogWidth:770px;dialogHeight:575px;resizable:yes;scrollbars:no');	
	return d_id;
}

function setStatus(themovie)
{
	d_id = window.showModalDialog('index.cfm?name=admin_moviestatus&movie_id=' + themovie, '','status:no;center:yes;dialogWidth:450px;dialogHeight:300px;resizable:yes;scrollbars:no');	
	return d_id;
}

function messageFavourite()
{
	m_id = window.open('index.cfm?name=messagefavourite', '','status=yes,Width=480px,Height=360px');	
	return m_id;
}

function EmptyBasket(txt)
{
	var b = confirm(txt);
	if (b==true) {
	document.location = "index.cfm?name=cart&action=emptycart";
	}
}

function UpdateBasket()
{
	document.shoppingcart.submit();
}

$(document).ready(function() {
	/*
	$("#sideBoxAnim").accordion({
		alwaysOpen: false,
		autoheight: false,
		active: '.selected',
		selectedClass: 'active',
		header: 'h3',
		clearStyle: true
	});
	*/
	//$("a.fancyImg").fancybox({ 'hideOnContentClick': true });
	
	// $('##myList').listnav();
	var pageWidth = $("#page").width();
	$("#menu").css('width',pageWidth+'px');
	
	/*
	$("#menu").corner("top");
	$("#col3_content INPUT.button").corner();
	$("input.addtocart").corner();
	$(".btnLight").corner();
	*/
	
});

