function toggleLang(flag,gl_logo,german_lsp)
{	
	if (flag=='open')
	{
	
	    document.getElementById('d1-9-1').style.display = 'block';
	    document.getElementById('langOpen').style.display='none';
		if(german_lsp)
			document.getElementById('d1-main').style.height='916px';
		else if(gl_logo)
			document.getElementById('d1-main').style.height='873px';
		else
			document.getElementById('d1-main').style.height='803px';
	}
     if (flag=='close')
	 {   
	    document.getElementById('d1-9-1').style.display='none';
	    document.getElementById('langOpen').style.display='block';
		if(german_lsp)
			document.getElementById('d1-main').style.height='715px';
		else if(gl_logo)
			document.getElementById('d1-main').style.height='673px';
		else
			document.getElementById('d1-main').style.height='604px';
			
	  }  
}

/** Query Lib **/
var gl_query = this.location.href;
var gl_inq = gl_query.indexOf('?');
gl_query = gl_query.substring(gl_inq + 1);

/**
* Return the values of the requested parameter from the URL
* @param param_name string
* @author Lee Eden
**/
function find_url_param(param_name) {
	var param_loc = gl_query.indexOf(param_name+"=");
	if(param_loc > -1) {
		var param_val = gl_query.substring(param_loc+param_name.length+1);
		if(param_val.indexOf('&') > -1) {
			param_val = param_val.substring(0,param_val.indexOf('&'));
		}
		param_val = unescape(param_val);
		return param_val;
	} else {
		return false;
	}
}

/** End Query Lib **/