
var about = new Image(98,94)
about.src = "wp/imageicons/doll1a.gif"
var abouttext = new Image(98,94)
abouttext.src = "wp/imageicons/doll1b.gif"

var texts = new Image(98,94)
texts.src = "wp/imageicons/doll2a.gif"
var textstext = new Image(98,94)
textstext.src  = "wp/imageicons/doll2b.gif" 

var idiomorphs = new Image(98,94)
idiomorphs.src = "wp/imageicons/doll3a.gif"
var idiomorphstext = new Image(98,94)
idiomorphstext.src = "wp/imageicons/doll3b.gif"

var software = new Image(98,94)
software.src = "wp/imageicons/doll4a.gif"
var softwaretext = new Image(98,94)
softwaretext.src = "wp/imageicons/doll4b.gif"

var misc = new Image(98,94)
misc.src = "wp/imageicons/doll5a.gif"
var misctext = new Image(84,94)
misctext.src = "wp/imageicons/doll5b.gif"

var currentPage;

function identifyPage(thisPage){
	currentPage = thisPage;
	if(currentPage == "about.php"){
	document.aboutroll.src=abouttext.src;
	}else
	if(currentPage == "texts.php"){
	document.textsroll.src=textstext.src;
	}else
	if(currentPage == "idiomorphs.php"){
	document.idiomorphsroll.src=idiomorphstext.src;
	}else
	if(currentPage == "downloads.php"){
	document.softwareroll.src=softwaretext.src;
	}else
	if(currentPage == "misc.php"){
	document.miscroll.src=misctext.src;
	}
}

function unloadBttnTxt(){
	document.aboutroll.src=about.src;
	document.textsroll.src=texts.src;
	document.idiomorphsroll.src=idiomorphs.src;
	document.softwareroll.src=software.src;
	document.miscroll.src=misc.src;
	
}


// HANDLE ABOUT MENU ICON
function getAbout(){
	document.aboutroll.src=abouttext.src;
}
function backToAboutIcon(){
	if (currentPage != "about.php"){
	//if (thisname != "aboutroll"){
		document.aboutroll.src=about.src;
	}
 }
// HANDLE TEXTS MENU ICON
 
 function getTexts(){
	document.textsroll.src=textstext.src;
}
function backToTextsIcon(){
	if (currentPage != "texts.php"){
		document.textsroll.src=texts.src;
	}
 } 
 
// HANDLE IDIOMORPHS MENU ICON
 
 function getIdiomorphs(){
	document.idiomorphsroll.src=idiomorphstext.src;
}
function backToIdiomorphsIcon(thisname){
	if (currentPage != "idiomorphs.php"){
		document.idiomorphsroll.src=idiomorphs.src;
	}
 }
 
// HANDLE DOWNLOADS MENU ICON
 
 function getDownloads(){
	document.softwareroll.src=softwaretext.src;
}
function backToDownloadsIcon(thisname){
	if (currentPage != "downloads.php"){
		document.softwareroll.src=software.src;
	}
 }	
 
 // HANDLE LINKS MENU ICON
 
 function getMisc(){
	document.miscroll.src=misctext.src;
}
function backToMiscIcon(thisname){
	if (currentPage != "misc.php"){
		document.miscroll.src=misc.src;
	}
 }	



