//General Common Variables
var cookiePrefix= 'eeas_';
var hiddClName	= 'hidden';
var dispClName	= 'displayed';


//	Language selection variables
var divIdLang	= 'lgg';
var ulIdLang	= 'language_selector';
var optionLang	= 'lang_option_';
var pageRunning	= document.location.href;

var globalCookiePrefix= 'eeas_';

document.write('<style>#lgg{display:none;}</style>');
document.write('<style>#related_links_list{display:none;}</style>');
document.write('<style>#select_country_list{display:none;}</style>');
document.write('<style>#select_country_list_int{display:none;}</style>');
document.write('<style>#select_year_list_int{display:none;}</style>');


window.addEvent('domready', function(){
									 
	$('lgg').setStyle('display', 'inline');
	if($('select_country_list')){$('select_country_list').setStyle('display', 'inline');}
	
	//	Language selection
	//	Hide The Language Div Box
	$$('#'+divIdLang).each(function(el){
		el.className	= hiddClName;						
		});
	//	Look for the current language in the URL
	var runningInformation	= lookForRunningInfo(pageRunning);
	//	Writing of the select tag
	makeSelectLang(runningInformation,ulIdLang,divIdLang,optionLang);
	//	Display The Language Div Box
	$$('#'+divIdLang).each(function(el){
		el.className	= dispClName;							
		});
	
	
	buildTagSelect('related_links_list','','related_links');
	buildTagSelect('select_country_list','','select_country');
	buildTagSelect('select_country_list_int', 'select_country_action_button', 'droplist_left');
	buildTagSelect('select_year_list_int', 'select_year_action_button', 'droplist_right');

	gen_accordion('box_about_us', 'h3.hp_toggler_left', 'div.hp_element_left');
	gen_accordion('box_know_more', 'h3.hp_toggler_right', 'div.hp_element_right');
	})










