
var flgallery;
var flheader;
//get the correct reference
function getID1(swfID) {
   if (navigator.appName.indexOf("Microsoft") > -1) {
      flgallery = window[swfID];
   } else {
      flgallery = document[swfID];
   }
}
function getID2(swfID) {
   if (navigator.appName.indexOf("Microsoft") > -1) {
      flheader = window[swfID];
   } else {
      flheader = document[swfID];
   }
}


function initfg(){
	//start the gallery loading
	flgallery.initfg();
}

function testfunc(){
	flgallery.testfunc();
}
function startTour(){
	flheader.startTour();	
}

function moveThumb(){
	//calls a flash function to restore th thumb
	flheader.restoreThumb();
}

//hide and show the div the gallery is contained in
function hideDiv(DivID) { 
	document.getElementById(DivID).style.visibility = 'hidden'; 
} 
function showDiv(DivID) { 
	document.getElementById(DivID).style.visibility = 'visible'; 
} 

function testAol(){
	alert ("running a script");	
}
