//////////////////////////ONLOAD SECTION START////////////////////////////////////////////////////////
//sth run_onload() bazoume oti 8eloume na treksei sto onload tou body                               //
//h run_onload() prepei na orizetai se ka8e style, giati thn kalei to geniko content.scr            //
//////////////////////////////////////////////////////////////////////////////////////////////////////
hide_theme=0;
var xxx=0;
window.onresize=function (){ document.location.href=document.location.href };
function run_onload() {
//EDITABLE AREA START>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
	copyright.style.visibility="visible";
	if (typeof(search_form)!="undefined") {
		//search_form.style.top=logo.offsetTop+logo.offsetHeight;
		//search_form.style.display="block";
		search_form.style.visibility="visible";
	}
	if (typeof(search_text_form)!="undefined") {
		search_text_form.style.visibility="visible";
	}
	if (typeof(paragraphs.length)=="number") { var ps=paragraphs[0]; } else { var ps=paragraphs; }
	if (typeof(search_list)=="object") {
		ps.innerHTML=search_list.innerHTML;
		search_list.innerHTML="";
	}
	ps.style.visibility="visible";
	if (typeof(paragraphs.length)=="number") {
		for (i=0; i<paragraphs.length; i++) {
			paragraphs[i].style.visibility="visible";
		}
	}
	mainTD.innerHTML=ps.innerHTML;
	ps.innerHTML="";
	ps.style.display="none";
	
	//logo	
	//logoTD.innerHTML=logo.innerHTML;
	
	if (hide_theme==1) themeTD.innerHTML="";
	
	
	
	//copyright
	copyTD.innerHTML = copyright.innerHTML;
	
	//MenuHolder in the td !!!
	menuTD.innerHTML = MenuHolder.children[2].innerHTML;
	
	//MenuHolder in the td !!!
	//menuTD2.innerHTML = Menu2Holder.children[2].innerHTML;
		
	//slogan
	slgnTD.innerHTML = slogan.innerHTML;
	
	//Theme
	themeTD.innerHTML = theme.innerHTML;
	
	//MenuHolder height of the td !!!
	
	//MenuHolder.children[2].offsetHeight;
	//aaa=MenuHolder.children[2].offsetHeight;
	//menuTD.height=aaa;
	
	//big banner
	//bannerbig.innerHTML = TD1.innerHTML;

	//comapny
	companyTD.innerHTML = company.innerHTML;
	
	
	 //The oficial way....
	 //document.getElementById("menuTD").height=document.getElementById("MenuHolder").children[2].offsetHeight;
	 
	//banners
	//banner1.innerHTML = Small0.innerHTML;
	//banner2.innerHTML = Small1.innerHTML;
	
	//flags take one one ....
	//flags.innerHTML = languagebar.children[0].children[0].children[0].children[1].innerHTML;
	
	//flags take all
	flag.innerHTML = languagebar.innerHTML;
	
	
//EDITABLE AREA END<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<	
}
//////////////////////////ONLOAD SECTION END//////////////////////////////////////////////////////////

//////////////////////////TREE MENU SECTION START/////////////////////////////////////////////////////
//h getParams() pairnei post variables apo to url kai epistrefei to array params
function getParams() {
var idx = document.URL.indexOf('?');
var params = new Array();
if (idx != -1) {
	var pairs = document.URL.substring(idx+1, document.URL.length).split('&');
	for (var i=0; i<pairs.length; i++) {
		nameVal = pairs[i].split('=');
		params[nameVal[0]] = nameVal[1];
	}
}
return params;
}
function blocking(nr)
{
	if (document.layers)
	{
		current = (document.layers[nr].display == 'none') ? 'block' : 'none';
		document.layers[nr].display = current;
	}
	else if (document.all)
	{
		//current = (document.all[nr].style.display == 'none') ? 'block' : 'none';
		//document.all[nr].style.display = block;
	}
	else if (document.getElementById)
	{
		vista = (document.getElementById(nr).style.display == 'none') ? 'block' : 'none';
		document.getElementById(nr).style.display = vista;
	}
}

function reverse(nr)
{
//	current = (document.all[nr].style.visibility == 'hidden') ? 'visible' : 'hidden';
//	document.all[nr].style.visibility = current;
}

function ChangeClass(nr,cls)
{
	var j=0;
	name = nr + j;
	while (typeof(document.all[name]) == "object")
	{
		for (i=0; i< document.all[name].length; i++)
			document.all[name][i].className = cls + j;
		name = nr + ++j;
	}
}

function check_block(block,num,obj) {
	if (block==num) { return "block"; }
	else {  return "none"; }
}

params = getParams();

//oi metablhtes block* xreiazontai gia ta tree menu
//gia ka8e tree menou pou pros8etoume prepei na orizoume kai thn antistoixh metablith 

//EDITABLE AREA START>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
block  = unescape(params["block"]);			//gia to 1o menu
blockMenu3  = unescape(params["blockMenu3"]);		//gia to 3o menu
//EDITABLE AREA END<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
//////////////////////////TREE MENU SECTION END///////////////////////////////////////////////////////

//////////////////////////SITE JAVASCRIPT START///////////////////////////////////////////////////////
//Edw mpainei o kwdikas javascript pou xrhsimopoioun oi selides tou site
//EDITABLE AREA START>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


function calculate_box_positions() {
	if (typeof(paragraphs.length)=="number") { var p=paragraphs[0]; } else { var p=paragraphs; }
	var h = p.offsetHeight + p.offsetTop;
	if ( h > leftDIV.offsetHeight) {
		leftDIV.style.height  = h + copyright.offsetHeight+ "px";
		rightDIV.style.height = h + copyright.offsetHeight+ "px";
	}
	copyright.style.position="absolute";
	copyright.style.left=p.offsetLeft;
	copyright.style.top=h;
	//copyright.style.top
	/*
	tmp=bdy.offsetHeight-paragraphs.offsetTop-copyright.offsetTop
	if (tmp>0) {
		copyright.style.position="relative";
		copyright.style.top=tmp-copyright.offsetHeight-15;
	}*/
}

//EDITABLE AREA END<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
//////////////////////////SITE JAVASCRIPT END/////////////////////////////////////////////////////////


//////////////////////////GIA MELLONTIKH XRHSH////////////////////////////////////////////////////////
/*
var a_bullet= new Array();

function set_separator() {
	separator_flag=0;
	all_items_num=document.all.length;
	for (i=0; i<all_items_num; i++)
	{
		if (separator_flag==0)
		{
			if (document.all[i].className=="itemText")
			{
				separator_flag=1;
				document.all[i].style.borderLeft="1px solid #CCCCCC";
			}
		}
	}
}
function set_bullet() {
	set_separator();
	s=document.location.href
	max=document.all.tags('A').length
	for (i=0; i<max; i++)
	{
		a=document.all.tags('A')[i];
		if (a.href==s)
		{
			if (a.parentElement.id!="")
			{
				a_bullet[i]=a.bullet;
				a.style.color ="#C00000";
			}
			else
			{
				a_bullet[i]=a.bullet;
				a.style.color ="#E8FFB9";
			}
		}
		
	}
	
	max_d=document.all.tags('DIV').length
	for (i=0; i<max_d; i++)
	{
		if (document.all.tags('DIV')[i].bullet) { //psaxnw gia divs me argument bullet
			for (j=0; j<a_bullet.length; j++)
			{
				if(document.all.tags('DIV')[i].bullet == a_bullet[j]) { document.all.tags('DIV')[i].style.visibility="visible"; }
				else { document.all.tags('DIV')[i].style.visibility="hidden"; }
			}
		}
	}
}
*/