function init_panelnav(){
	var bar_login = document.getElementById("bar_login");
	var bar_register = document.getElementById("bar_register");
	var block_login_title = document.getElementById("block_login_title");
	var block_login_content = document.getElementById("block_login_content");
	var block_register_title = document.getElementById("block_register_title");
	var block_register_content = document.getElementById("block_register_content");
	
	bar_register.onmouseover = function(){
		block_register_title.style.display = "block";
		block_register_content.style.display = "block";
	}
	
	bar_register.onmouseout = function(){
		block_register_content.style.display = "none";
		block_register_title.style.display = "none";
	}
	
	bar_login.onmouseover = function(){
		block_login_title.style.display = "block";
		block_login_content.style.display = "block";
	}
	
	bar_login.onmouseout = function(){
		block_login_title.style.display = "none";
		block_login_content.style.display = "none";
	}
	
	//replace_png();
	
}

/*function replace_png(){
	var personal = document.getElementById('title-holder-personal');
	var private = document.getElementById('title-holder-private');
	var business = document.getElementById('title-holder-business');
	if(personal){
		OpacityObject('title-holder-personal', 'img/css/personal-tools-title-bg');
	}
	else if(private){
		OpacityObject('title-holder-private', 'img/css/private-tools-title-bg');
	}
	else if(business){
		OpacityObject('title-holder-business', 'img/css/business-tools-title-bg');
	}
}*/

//*****************************************************************************************
//
// Common_OpenWin.js
// =================
// This file contains the universal javascript code that will be used for all window
// opening procedures. This file will eventually fully replace Common_GlobalVigJS.js
// as the only way to open windows, via the CDA generated pages. None of the code in
// here should be accessed manually. All variables passed to it, should be passed in
// lower case.
// Two new variables added (var Y and var N) to cater for the way CMA builds these functions
//  These additions should now allow the recognition of Y,y,N,n in the globalWindowOpen
// javascript function.
//
//
// Created:
// --------
// 1.00 - 16/10/2001 - RdF
//
// Modified:
// ---------
// 1.01 - 17/01/2002 - EL - Added 2 variables Y and N.
// v.vv - dd/mm/yyyy - XXX - Explination...
// v.vv - dd/mm/yyyy - XXX - Explination...
//
//*****************************************************************************************

//*****************************************************************************************
// Global Variables (if any)
//*****************************************************************************************

var yes = 1;
var Y = 1;
var no = 0;
var N = 0;

//*****************************************************************************************
// Main piece(s) of code
//*****************************************************************************************

function globalWindowOpen(targetURL, windowName, windowWidth, windowHeight, scrollBars,
	menuBar, toolbar, resizable, status, directories, location, leftPix, topPix)
{
	//*********************************************************************************
	// Local Variables (if any)
	//*********************************************************************************
	var strFeatures;
	var strCheckDefinition;

	//*********************************************************************************
	// Validate the "windowName" variable. If the windowName has not been passed
	// through to this function, then it will assign a date/time stamp as the
	// window name. This will allow the same link to spawn off many child windows.
	//*********************************************************************************
	strCheckDefinition = typeof windowName;
	if (strCheckDefinition == "undefined")
	{
		windowName = new Date();
		windowName = windowName.getTime();
		windowName = windowName.toString();
	}

	//*********************************************************************************
	// Build strFeatures list depending on what variables have been passed into this
	// function.
	//*********************************************************************************
	if ((isNaN(parseInt(windowWidth))) || (parseInt(windowWidth) == 0))
	{
		windowWidth = "700";
	}
	strFeatures = "width=" + parseInt(windowWidth);
	if ((isNaN(parseInt(windowHeight))) || (parseInt(windowHeight) == 0))
	{
		windowHeight = "500";
	}
	strFeatures += ",height=" + parseInt(windowHeight);
	if ((scrollBars == "no") || (scrollBars == "n") || (parseInt(scrollBars) == 0))
	{
		strFeatures += ",scrollbars=no";
	}
	else
	{
		strFeatures += ",scrollbars=yes";
	}
	if ((menuBar == "no") || (menuBar == "n") || (parseInt(menuBar) == 0))
	{
		strFeatures += ",menubar=no";
	}
	else
	{
		strFeatures += ",menubar=yes";
	}
	if ((toolbar == "no") || (toolbar == "n") || (parseInt(toolbar) == 0))
	{
		strFeatures += ",toolbar=no";
	}
	else
	{
		strFeatures += ",toolbar=yes";
	}
	if ((resizable == "no") || (resizable == "n") || (parseInt(resizable) == 0))
	{
		strFeatures += ",resizable=no";
	}
	else
	{
		strFeatures += ",resizable=yes";
	}
	if ((status == "no") || (status == "n") || (parseInt(status) == 0))
	{
		strFeatures += ",status=no";
	}
	else
	{
		strFeatures += ",status=yes";
	}
	if ((directories == "no") || (directories == "n") || (parseInt(directories) == 0))
	{
		strFeatures += ",directories=no";
	}
	else
	{
		strFeatures += ",directories=yes";
	}
	if ((location == "no") || (location == "n") || (parseInt(location) == 0))
	{
		strFeatures += ",location=no";
	}
	else
	{
		strFeatures += ",location=yes";
	}
	if (isNaN(parseInt(leftPix)))
	{
		strFeatures += ",left=" + (screen.width/2 - parseInt(windowWidth)/2);
	}
	else
	{
		strFeatures += ",left=" + parseInt(leftPix);
	}
	if (isNaN(parseInt(topPix)))
	{
		strFeatures += ",top=" + (screen.height/2 - parseInt(windowHeight)/2);

	}
	else
	{
		strFeatures += ",top=" + parseInt(topPix);
	}
	strFeatures += ",channelmode=no";

	//*********************************************************************************
	// Open the new window
	//*********************************************************************************

	window.open(targetURL, windowName, strFeatures);
}
