/**
 *
 * @access public
 * @return void
 **/
window.onload=function(){
var img=document.createElement('img');
img.src="images/WebMain/UpMenu/FondDARK.gif"
var img2=document.createElement('img');
img2.src="images/WebMain/UpMenu/LeftBorderDARK.gif";
var img3=document.createElement('img');
img3.src="images/WebMain/UpMenu/ukwhite.gif";
var img4=document.createElement('img');
img4.src="images/WebMain/UpMenu/spainwhite.gif";
var img5=document.createElement('img');
img5.src="images/WebMain/LeftBox/markwhite.gif";
var img6=document.createElement('img');
img6.src="images/WebMain/LeftBox/DownRightDark.gif";
}

function MenuMouseOver(element){
element.style.background="url('images/WebMain/UpMenu/FondDARK.gif') repeat-x top right";
element.style.color="#FFFFFF";
element.firstChild.style.color="#FFFFFF";
if (element.id=="portada") {
var border = document.getElementById('leftborder');
border.style.background="url('images/WebMain/UpMenu/LeftBorderDARK.gif') no-repeat top left";
}
if (element.id=="englishBORD") {
var img = document.getElementById('english');
img.src="images/WebMain/UpMenu/ukwhite.gif";
}
if (element.id=="spanishBORD") {
var img = document.getElementById('spanish');
img.src="images/WebMain/UpMenu/spainwhite.gif";
}
}

function MenuMouseOut(element){
element.style.background="url('images/WebMain/UpMenu/Fond.gif') repeat-x top right";
element.style.color="#002D5B";
element.firstChild.style.color="#002D5B";
if (element.id=="portada") {
var border = document.getElementById('leftborder');
border.style.background="url('images/WebMain/UpMenu/LeftBorder.gif') no-repeat top left";
}
if (element.id=="englishBORD") {
var img = document.getElementById('english');
img.src="images/WebMain/UpMenu/uk.gif";
}
if (element.id=="spanishBORD") {
var img = document.getElementById('spanish');
img.src="images/WebMain/UpMenu/spain.gif";
}
}

function LeftMenuMouseOver(element){
element.style.backgroundColor="#5F5F5F";
element.firstChild.style.color="#FFFFFF";
element.firstChild.firstChild.src="images/WebMain/LeftBox/markwhite.gif";
if (element.nextSibling.className=="LeftMDownFond") {
	element.nextSibling.firstChild.style.background="url('images/WebMain/LeftBox/DownLeftDark.gif') no-repeat bottom left";
	element.nextSibling.firstChild.firstChild.style.background="url('images/WebMain/LeftBox/DownRightDark.gif') no-repeat bottom right";
	element.nextSibling.style.backgroundColor="#5F5F5F";
}
}
function LeftMenuMouseOut(element){
element.style.backgroundColor="";
element.firstChild.style.color="#002D5B";
element.firstChild.firstChild.src="images/WebMain/LeftBox/mark.gif";
if (element.nextSibling.className=="LeftMDownFond") {
	element.nextSibling.firstChild.style.background="url('images/WebMain/LeftBox/DownLeft.gif') no-repeat bottom left";
	element.nextSibling.firstChild.firstChild.style.background="url('images/WebMain/LeftBox/DownRight.gif') no-repeat bottom right";
	element.nextSibling.style.backgroundColor="";
}
}

function NumerosMouseOver(element){
element.style.backgroundColor="#5F5F5F";
element.firstChild.style.color="#FFFFFF";
}
function NumerosMouseOut(element){
element.style.backgroundColor="#F4F4F4";
element.firstChild.style.color="#002D5B";
}

function NickNameMouseOver(element){
element.style.backgroundColor="#5F5F5F";
element.firstChild.style.color="#FFFFFF";
}
function NickNameMouseOut(element){
element.style.backgroundColor="#F4F4F4";
element.firstChild.style.color="#000000";
}

function GoTo(url){
window.location.href = url
}

function checkbox(element){
var me;
me = element;
}

function MakeSubmit(element,formid){
element.disabled=true;
var thisform = document.getElementById(formid);
thisform.submit();
}


function log_out(msgstring)
{
	if (confirm(msgstring))
	{
		return true;
	}
	else
	{
		return false;
	}
}
