/*-------------------------------------------------------------------------------
Copyright 1998/2002 Statistics Belgium (http://statbel.fgov.be) 
Authors : Martin JACOBS, web consultant (martin.jacobs@skynet.be) 
          Frédéric SCHOLER, web builder (frederic.scholer@statbel.mineco.fgov.be) 
=================================================================================*/ 
descr_txt= [ 

/* Main entrypage */ 
["De grootste statistische overheidsorganisatie in Belgi&euml; geeft u een uitgebreide keuze aan gegevens. Kom eens grasduinen...", 
"Le principal acteur de la statistique officielle en Belgique met &agrave; votre disposition un large &eacute;ventail de donn&eacute;es. Plongez-vous dans les chiffres...", 
"Die gr&ouml;&szlig;te &ouml;ffentliche statistische Einrichtung Belgiens bietet Ihnen eine gro&szlig;e Auswahl von Zahlen. Sehen Sie sich einmal um...", 
"The main official statistical institution in Belgium offers you a large choice of figures. Have a closer look..."], 

/* Indicators entrypage */ 
["Het officieel contactpunt en de belangrijkste bron voor conjunctuurindicatoren van Belgi&euml; biedt u een globaal en recent overzicht van de conjunctuur", 
"Le point de contact officiel et la principale source d'indicateurs conjoncturels en Belgique vous offre une vue globale et r&eacute;cente de la conjoncture", 
"Der offizielle Kontaktpunkt und die wichtigste Quelle f&uuml;r Konjunkturindikatoren Belgiens bietet Ihnen einen &Uuml;berblick &uuml;ber die Konjunktur", 
"The official contact point and main source of short term indicators in Belgium offers a global and recent overview of business trends"], 

/* Census entrypage */ 
["De Algemene socio-economische enqu&ecirc;te vervangt de vroegere tienjaarlijkse volks- en woningtellingen. Ze is gestart in oktober 2001", 
"L'Enqu&ecirc;te socio-&eacute;conomique g&eacute;n&eacute;rale succ&egrave;de aux pr&eacute;c&eacute;dents Recensements d&eacute;cennaux de la population et des logements. Elle a d&eacute;but&eacute; en octobre 2001", 
"Die Allgemeine sozial&ouml;konomische Erhebung ersetzt die fr&uuml;herenzehnj&auml;hrlichen Volks- und Wohnungsz&auml;hlungen. Sie ist im Oktober 2001 angelaufen", 
"The General Socio-Economic Survey, which has started in October 2001, replaces the previous decennial censuses"], 

/* TUS entrypage */ 
["Een project van TOR onderzoeksgroep -<br>Vrije Universiteit Brussel<br><br>Algemene Directie Statistiek en Economische Informatie.", 
"Un projet de TOR onderzoeksgroep -<br>Vrije Universiteit Brussel<br><br>Direction Générale Statistique et Information économique.", 
"A project by TOR onderzoeksgroep -<br>Vrije Universiteit Brussel<br><br>Directorate-General Statistics and Economic Information."]]; 

d= document; 
NN4= d.layers?true:false; 
IE= d.all?true:false; 
OP= window.opera?true:false; 
br56= d.getElementById?true:false; 
NN6= br56&&!IE?true:false; 
brOK= IE||NN4||NN6; 

if(NN4) with(d.ids){ pos.position= "relative"; descr.position= "absolute"; 
			descr.visibility= "hide" } 

function divabs(xt){ var i, 
	tag=['<DIV id="descr', '" style="position:absolute;visibility:hidden;' + 
		'width:255px;font-weight:bold;color:white;">', '<\/div>']; 
	for(i=0;i< 4;i++) d.writeln(tag[0] +i +tag[1] +descr_txt[xt][i] +tag[2]) 
} 
function id(p){ return br56?d.getElementById(p):eval("d.all." +p) } 

function tp_lf(tl){ var elm= id("descr"), ps= 0; 
	while(elm){ ps+= (tl==1)?elm.offsetTop:elm.offsetLeft; elm= elm.offsetParent } 
	return ps 
} 
function lpos(){ 
	if(NN4) with(d.descr){ moveTo(d.pos.pageX, 
			d.pos.pageY +d.pos.document.height -document.height); visibility= "show" } 
	else for(var i=0;i< 4;i++) id("descr" +i).style.left= tp_lf(0) +"px" 
} 
function hex(cl,sw){ var rgb= [], i; 
	if(sw==1) for(i=0;i< 3;i++) rgb[i]= 1*("0X"+cl.substr(i*2+1,2)); 
	else rgb= eval("[" +cl.substring(4,cl.length-1) +"]"); 
	return rgb 
} 
fc= []; 
function steps(){ var tp= [], i; 
	if(NN4){ tp[0]= d.ids.cell.backgroundColor; tp[1]= d.ids.descr.color } 
	else{ tp[0]= id("cell").style.backgroundColor; tp[1]= id("descr").style.color; lpos() } 
	for(i=0;i< 2;i++) fc[i]= hex(tp[i],tp[i].length>7?0:1) 
	for(i=0;i< 3;i++) fc[1][i]= (fc[0][i]-fc[1][i])/25 
} 
function chgcol(m,j){ var RGB="#", i, x; 
	for(i=0;i< 3;i++){ x= fc[0][i] -Math.round(ct*fc[1][i]); 
		RGB+= Math.floor(x/16).toString(16) +(x%16).toString(16) } 
	if(NN4){ with(d.descr.document){ 
		write('<FONT color=\"' +RGB +'\"><B>' +descr_txt[m][j] +'<\/b><\/font>'); close() } 
		if(ct==0) lpos() } 
	else elt.style.color= RGB; 
	if(ct< 25){ ct++; timer= setTimeout("chgcol("+m+","+j+")", ct==1?300:NN4?35:50) } 
	else ct= 0 
} 
ct= old= -1; wh= ht= timer= timer2= elt= null; 
function OPrsz(){ if(wh!=innerWidth||ht!=innerHeight) location.reload() } 
function flip(m,j){ 
	if(!brOK||j==old) return; 
	else{ 
		clearTimeout(timer); ct= 0; 
		if(old< 0){ steps(); old= ""; 
			if(OP){ wh= innerWidth; ht= innerHeight; timer2= setInterval("OPrsz()",500) } 
			else onresize= lpos } 
		if(!NN4){ 
			id("descr" +old).style.visibility= "hidden"; 
			elt= id("descr" +j); 
			with(elt.style){ visibility= "visible";
				top= tp_lf(1) -elt.offsetHeight +id("descr").offsetHeight +"px" } } 
		old= j; 
		chgcol(m,j) } 
} 
