function show(divs){
element = document.getElementById(divs);
if(element.style.display == "none"){
if(navigator.appName == "Microsoft Internet Explorer"){
element.style.display = "inline";
}
else{
element.style.display = "table-row";
}
element.style.visibility = "visible";
}
else{
element.style.display = "none";
element.style.visibility = "hidden";
}
}

function bookmarksite(url, title){
if (document.all){
window.external.AddFavorite(url, title);
} else {
try{
window.sidebar.addPanel(title, url, "");
}
catch(e){
alert('You will have to manually add the site to your FF bookmarks. Just press Ctrl + D.');
}
}
}

function setHomePage(url){
try{
document.body.style.behavior='url(#default#homepage)';
document.body.setHomePage(url);
}
catch(e){
alert('We are sorry but you will have to manually change your home page.');
}
}

function printPage()
{
	window.print();
}

function openWindow(w, h, t, l, d)
{
var url = window.location.href;
if(url.indexOf('#') != -1)
{
	var url1 = url.substring(0, url.indexOf('#'));
	url1 += url1.indexOf('?') == -1 ? '?' : '&';
	url = url1 + 'email=yes' + url.substring(url.indexOf('#'))
}
else
{
	url += url.indexOf('?') == -1 ? '?' : '&';
	url += 'email=yes';
}
var param = 'width=' + w + ',height=' + h;
param += ',toolbar=' + (t == 1 ? 'yes' : 'no');
param += ',location=' + (l == 1 ? 'yes' : 'no');
param += ',directories=' + (d == 1 ? 'yes' : 'no');
param += ',status=yes';
param += ',menubar=yes';
param += ',copyhistory=no';
window.open(url, 'email_page', param);
}

window.onload = function() {
	var main = document.getElementById('main').getElementsByTagName('div');
	var nav = main[0];
	var content = main[1]; 
	var panels = document.getElementById('panels');
	//nav.style.height = (panels.offsetHeight - 20) + 'px';
	//content.style.height = panels.offsetHeight + 'px';
}