// JavaScript Document
if ((navigator.appVersion.indexOf("MSIE 7.")!=-1)) {
		var hWidth = "530";
		var hHeight = "557";
		var vWidth = "370";
		var vHeight = "710";
} else {
		var hWidth = "525";
		var hHeight = "520";
		var vWidth = "365";
		var vHeight = "680";
	
}

function photoPopup(photoURL, orientation) {
	var PhotoViewer = null;
	if (orientation == 'horz') {
		PhotoViewer = window.open(photoURL, "LargeView", "width="+hWidth+",height="+hHeight+",scrollbars=no,left=10,top=50");
		PhotoViewer.resizeTo(hWidth,hHeight);
	} else {
		PhotoViewer = window.open(photoURL, "LargeView", "width="+vWidth+",height="+vHeight+",scrollbars=no,left=10,top=50");
		PhotoViewer.resizeTo(vWidth, vHeight);
	}
	PhotoViewer.focus();
}


function inArtPhotoPopup(photoURL) {
	var vPhotoViewer = window.open(photoURL, "LargeViewHoriz", "left=300,top=50,width=360,height=680,scrollbars=no,left=10,top=50");
	vPhotoViewer.focus();
}

function resizeFrame(orientation) {
	if (orientation == 'vert') {
		window.resizeTo(vWidth, vHeight);
	} else {
		window.resizeTo(hWidth,hHeight);
	}	
}

function videoPopup(videoURL) {
	var videoWindow = window.open(videoURL, 'Conversion',
									'resize=true,toolbar=false,width=520,height=420');
	videoWindow.focus();
}

function audioPopup(videoURL) {
	var audioWindow = window.open(videoURL,
									'Conversion',
									'resize=true,toolbar=false,width=520,height=420');
}
function makeFastFacts(ffURL) {
	var ffViewer = window.open(ffURL, "ffVert", "width=520,height=700,scrollbars=yes,left=10,top=50");
	ffViewer.focus();
}

function makeRangerRick(rrURL) {
	var rrViewer = window.open(rrURL, "rrPopup", "width=600,height=400,scrollbars=yes,left=10,top=50");
	rrViewer.focus();
}

function makeEmailPopup(emailURL) {
	var emailPopup = window.open(emailURL, "emailPopup", "width=600,height=430,scrollbars=yes,left=10,top=50");
	emailPopup.focus();
}

function makeParentWindow(ParentURL){
	if (ParentURL!="") {
		var ParentViewer = window.open(ParentURL, "ParentViewer", "width=620,height=420,scrollbars=yes,left=10,top=50");
		ParentViewer.focus();
	}
}
function closeMeOpenNew(newURL) {
	var newSizableWindow = window.open(newURL, "newSizableWindow", "location=1,resizable=1,width=790,height=500,scrollbars=yes,left=100,top=50");    
	self.close();
}