////////////////////////////////////////////////////////////////////////////////
// Info column Banner
////////////////////////////////////////////////////////////////////////////////

var sInfoBannerTarget = 'courses_language.html';
var sInfoBannerImage = '_language';
var sLastWindowDefaultStatus;
var sCurrPageName;
var sCurrLocationFolder;

function infoBanner_onload(thisElement)
{
	var iLastSlash = window.location.href.lastIndexOf('/');
	sCurrPageName = window.location.href.substr(iLastSlash+1);
	sCurrLocationFolder = window.location.href.substr(0,iLastSlash);
	
	thisElement.firstChild.src = 'info_banner' + sInfoBannerImage + '.gif';
	if (sCurrPageName == sInfoBannerTarget) 
		thisElement.firstChild.style.cssText = "-moz-opacity:0.5;filter:alpha(opacity=50)" ;
}

function infoBanner_onclick()
{
	if (sInfoBannerTarget == '') return;
	if (sCurrPageName == sInfoBannerTarget) return;

	window.location = sInfoBannerTarget;
}

function infoBanner_onmousedown(thisElement)
{
	if (sInfoBannerTarget == '') return;
	if (sCurrPageName == sInfoBannerTarget) return;

	thisElement.firstChild.src='info_banner' + sInfoBannerImage + '_down.gif';
}

function infoBanner_onmouseover(thisElement)
{
	if (sInfoBannerTarget == '') return;
	if (sCurrPageName == sInfoBannerTarget) return;

	thisElement.firstChild.src='info_banner' + sInfoBannerImage + '_hover.gif';
	thisElement.style.cursor = 'pointer';

	sLastWindowDefaultStatus = window.defaultStatus;
	window.defaultStatus =  sCurrLocationFolder + '/' + sInfoBannerTarget;
}

function infoBanner_onmouseout(thisElement)
{
	if (sInfoBannerTarget == '') return;
	if (sCurrPageName == sInfoBannerTarget) return;

	thisElement.firstChild.src='info_banner' + sInfoBannerImage + '.gif';
	window.defaultStatus = sLastWindowDefaultStatus;
}
