//precache all portal  & poster images.

imgportal01 = new Image(40,40)
imgportal01.src = "charimages/earchar.gif"
imgportal02 = new Image(40,40)
imgportal02.src = "charimages/earthchar.gif"
imgportal03 = new Image(40,40)
imgportal03.src = "charimages/heartchar.gif"
imgportal04 = new Image(40,40)
imgportal04.src = "charimages/mindchar01.gif"
imgportal05 = new Image(40,40)
imgportal05.src = "charimages/null.gif"
imgportal06 = new Image(40,40)
imgportal06.src = "charimages/musicchar.gif"
imgportal07 = new Image(40,40)
imgportal07.src = "charimages/artchar.gif"
imgportal08 = new Image(40,40)
imgportal08.src = "charimages/structurechar.gif"
imgportal09 = new Image(40,40)
imgportal09.src = "charimages/structurechar.gif"

imgposter01 = new Image(518,318)
imgposter01.src = "MindAssets/VermontBarn.jpg"

function setPortal(imgSwapIn) {
document.images["PortalView"].src = eval(imgSwapIn + ".src")
}


function setPoster(imgSwapIn) {

var remotePage = this.parent.frames[2];	
var myNode = remotePage.document.getElementById("Poster");
while (myNode.firstChild){
	myNode.removeChild(myNode.firstChild)
	}
var newPic = remotePage.document.createElement('img');
newPic.src = eval(imgSwapIn + ".src");
myNode.appendChild(newPic);
}

function setIndexFrame(pageone,pagetwo) {

var remotePage = this.parent.frames[2];
var indexPage = this;
remotePage.location.href=pagetwo;
this.location.href=pageone;
}
function setIndexFrameNew(pageone,pagetwo) {

this.location.href=pageone;
window.open(pagetwo);
}

function swapTranslation(textPlate){
var myNode1 = this.document.getElementById("dante_1");
var myNode2 = this.document.getElementById("dante_2");
var subinEnglish = this.document.getElementById("dante_English");

	myNode1.removeChild(myNode1.firstChild);
	myNode1.appendChild(subinEnglish);



}