<!--
// Create a global array that will hold the value of each variable,
// keyed by the name of the variable.
var GETDATA = new Array();

// Get the string that follows the "?" in the window's location.
var sGet = window.location.search;
if (sGet) // if has a value...
{
    // Drop the leading "?"
    sGet = sGet.substr(1);
    
    // Generate a string array of the name value pairs.
    // Each array element will have the form "foo=bar"
    var sNVPairs = sGet.split("&");
    
    // Now, for each name-value pair, we need to extract
    // the name and value.
    for (var i = 0; i < sNVPairs.length; i++)
    {
        // So, sNVPairs[i] contains the current element...
        // Split it at the equals sign.
        var sNV = sNVPairs[i].split("=");
        
        // Assign the pair to the GETDATA array.
        var sName = sNV[0];
        var sValue = sNV[1];
        GETDATA[sName] = sValue;
    }
}


function assign_func()
{
if (GETDATA["l"] != undefined)
if ((GETDATA["l"] == 'es')&&(GETDATA["logged"] == '1'))  {
set_logged ('281','67','120','91');
} else
if ((GETDATA["l"] == 'es')&&(GETDATA["logged"] == '0'))  {
set_notlogged ('95','104','91');
} else
if ((GETDATA["l"] == 'en')&&(GETDATA["logged"] == '1'))  {
set_logged ('241','67','160','91');
} else
if ((GETDATA["l"] == 'en')&&(GETDATA["logged"] == '0'))  {
set_notlogged ('75','144','91');
} 

}


function widthassignclass(theClass,k) { 
 //Populate the array with all the page tags 
 var allPageTags=document.getElementsByTagName("*"); 
 //Cycle through the tags using a for loop 
 for (i=0; i<allPageTags.length; i++) { 
 //Pick out the tags with our class name 
 if (allPageTags[i].className==theClass) { 
 //Manipulate this in whatever way you want 
allPageTags[i].style.width=k+"px";
} 
 } 
} 


function set_logged (a0,b0,c0,d0)
{
var a=parseInt(a0);
var b=parseInt(b0);
var c=parseInt(c0);
var d=parseInt(d0);

if ((a+b+c+d)!=559) 
{ alert('wrong parameters'); return 1; }
if ((a==0)|(b==0)|(c==0)|(d==0))
{ alert('wrong parameters'); return 1; }

  document.getElementById('l5').style.width='67px';

document.getElementById('l3').style.width=a+'px';
document.getElementById('l4').style.width=b+'px';
document.getElementById('l6').style.width=c+'px';
document.getElementById('l7').style.width=d+'px';
widthassignclass('lbutton',b);
return 0;
}




function set_notlogged (a0,c0,d0)
{
var a=parseInt(a0);
var b=parseInt(a0);
var c=parseInt(c0);
var d=parseInt(d0);
if ((a+b+c+d)!=385) 
{ alert('wrong parameters'); return 1; }
if ((a==0)| (b==0)| (c==0)| (d==0)) 
{ alert('wrong parameters'); return 1; }
  
document.getElementById('l3').style.width='241px';
document.getElementById('l4').style.width=a+'px';
document.getElementById('l5').style.width=b+'px';
document.getElementById('l6').style.width=c+'px';
document.getElementById('l7').style.width=d+'px';
widthassignclass('lbutton',a);
return 0;
}




