
dt = document.title;	
lastspace = dt.lastIndexOf(" ") + 1;
title=dt.substring(lastspace);
a='<img src="images/';
b= "ttl_" + title;
b= b.toLowerCase();
c='.gif" />';
imgtag= a + b + c ;
window.status=dt;
window.onresize = findWindowDim;
window.onload = start;
function PopupPic(sPicURL) { 
     window.open( "pop_up.htm?"+sPicURL, "",  
     "resizable=1,HEIGHT=600,WIDTH=600"); 
   } 

function findWindowDim(){

var pghght = findPageHeight ();

var winhght= findInnerDimensions();

var containerHeight = document.getElementById('container').offsetHeight;
var content = document.getElementById('content').offsetHeight;
var leftpanel = document.getElementById('left_panel').offsetHeight;

if (leftpanel > content) {
document.getElementById('content').style.height = -10 + left_panel + "px";
document.getElementById('container').style.height = leftpanel + 280 + "px";
}


if (leftpanel < content) {
document.getElementById('left_panel').style.height = content + 10 + "px";
document.getElementById('container').style.height = content + 280 + "px";
}

document.getElementById('footer').style.visibility="visible";
}

function findInnerDimensions () {

var x,y;
if (self.innerHeight) // all except Explorer
{
	x = self.innerWidth;
	y = self.innerHeight;
return y;

}
else if (document.documentElement && document.documentElement.clientHeight)
	// Explorer 6 Strict Mode
{
	x = document.documentElement.clientWidth;
	y = document.documentElement.clientHeight;
return y;

}
else if (document.body) // other Explorers
{
	x = document.body.clientWidth;
	y = document.body.clientHeight;
return y;
}
}


function findScroll () {

var x,y;
if (self.pageYOffset) // all except Explorer
{

x = self.pageXOffset;
	y = self.pageYOffset;
}
else if (document.documentElement && document.documentElement.scrollTop)
	// Explorer 6 Strict
{
		
x = document.documentElement.scrollLeft;
	y = document.documentElement.scrollTop;

}
else if (document.body) // all other Explorers
{

	x = document.body.scrollLeft;
	y = document.body.scrollTop;

}

}

function findPageHeight () {

var x,y;
var test1 = document.body.scrollHeight;
var test2 = document.body.offsetHeight
if (test1 > test2) // all but Explorer Mac
{
	x = document.body.scrollWidth;
	y = document.body.scrollHeight;
return y;
}
else // Explorer Mac;
     //would also work in Explorer 6 Strict, Mozilla and Safari
{
	x = document.body.offsetWidth;
	y = document.body.offsetHeight;
return y;
}


}

function mseover(n, m)
{
n.src=m
}
function mseout(n, m)
{
n.src=m
}
function start() {
        // get the reference for the body
findWindowDim ();
    }







