// --------------------------------------------------------------------------
// Mansion Productions javascript functions used with MAS and SmashPictures
// --------------------------------------------------------------------------

var LighboxURL = "http://www.smashcontent.com/lightbox/";
var LightBoxDefault = true;


function popImage(url) {
	if (url!='')
		window.open(url,'Smash_image','width=465,height=640,left='+(screen.availWidth-465)/2+',top='+(screen.availHeight-640)/2+',scrollbars=yes,resizable=yes');
	else
		alert('No image available.');
}

function ratePOTD(lid, rate) {
	wndRate = window.open('http://www.smashcontent.com/rate.php?lid='+lid+'&r='+rate,'MAS_rate','width=300,height=130,left='+(screen.availWidth-300)/2+',top='+(screen.availHeight-130)/2);
	wndRate.focus();
}

function jumpTo(where) {
	var selObj = where;
	var jumpLocation = selObj.options[selObj.selectedIndex].value;
	if (jumpLocation) {
		document.location = jumpLocation;
		return true;
	} else {
		return false;
	}
}

function jumpSubmit(selObj, formObj) {
	if (selObj.options[selObj.selectedIndex].value) {
		formObj.submit();
		return true;
	} else {
		return false;
	}
}
