function popUp(winURL) { window.open(winURL,"popup","width=490, height=365, resizable=no, scrollbars=0"); }	
function popUpLobster(winURL) { window.open(winURL,"popup","width=755, height=380, resizable=no, scrollbars=0"); }	
function switchContent(page) { $("#content").load(page); }
function switchContentMain(page) { $("#contentMain").load(page); }

function ShowHide(t,obj,i, bool) {
	var div = document.getElementById(obj);
	var image = document.getElementById(i);
	if (div.style.display == 'none') {
		div.style.display = 'block';
		image.src = 'images/arrow_down.jpg';
	} else {
		div.style.display = 'none';
		image.src = 'images/arrow_def.jpg';
	}
}

/* meet people link & polaroid sync */

function updatePerson(person) {
	thisMovie("main").updatePerson(person);
}

function updatePosition(position) {
	thisMovie("main").updatePosition(position);
}

function updatePlace(place) {
	thisMovie("main").updatePlace(place);
}
	
function thisMovie(movieName) {
	if (navigator.appName.indexOf("Microsoft") != -1) {
		return window[movieName]
	}
	else {
		return document[movieName]
	}
}

/* map popups 

function popupmain(mylink, Campus)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, Campus, 'width=794,height=1050,scrollbars=yes');
return false;
}	

function popupwest(mylink, Campus)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, Campus, 'width=657,height=734,scrollbars=yes');
return false;
}

function popupmill(mylink, Campus)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, Campus, 'width=794,height=765,scrollbars=yes');
return false;
}

function popupnorth(mylink, Campus)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, Campus, 'width=661,height=743,scrollbars=yes');
return false;
}

*/