<!--


function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0

  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}



function ChangeCountry(iLang)
{
var strURL=document.URL;
strURL=strURL.toLowerCase()
strLang=(iLang==0)? "=en":(iLang==1)? "=ge":(iLang==2)? "=it":"=sp";

//to make sure that we're  searching after .asp for en,ge,it,sp
var strASP=".asp"
var iStart=strURL.indexOf(strASP);
var strStartURL=strURL.substr(0,(iStart+4));
var strSearchStr=strURL.substr(iStart+4);

var strSearchSpain="=sp";
var iIndexSpain=strSearchStr.indexOf(strSearchSpain);
var strSearchItaly="=it";
var iIndexItaly=strSearchStr.indexOf(strSearchItaly);
var strSearchGerman="=ge";
var iIndexGerman=strSearchStr.indexOf(strSearchGerman);
var strSearchEnglish="=en";
var iIndexEnglish=strSearchStr.indexOf(strSearchEnglish);

strURL = (iIndexSpain>0)? strSearchStr.replace(strSearchSpain,strLang):(iIndexItaly>0)? strSearchStr.replace(strSearchItaly,strLang):(iIndexGerman>0)? strSearchStr.replace(strSearchGerman,strLang):strSearchStr.replace(strSearchEnglish,strLang);
strURL =strStartURL + strURL; 
location =strURL
}

function changeMode(bEdit)
{
var strURL=document.URL;
strURL=strURL.toLowerCase()

strURL=(bEdit==1)? strURL.replace("editmode=0","editmode=1"):strURL.replace("editmode=1","editmode=0");
strURL=(bEdit==1)? strURL.replace("viewpage","editpage"):strURL.replace("editpage","viewpage");
location=strURL
} 	
function ShowInfo(iKeyword,iCount)
{	 
		for(var i=0;i<=iCount;i++)
		{
		var strHideDiv="Info"+i
		document.getElementById(strHideDiv).style.display='none';	
		}
	var strShowDiv="Info"+iKeyword
	document.getElementById(strShowDiv).style.display='';	
}
function HideInfo(iCount)
	{
		for(var i=0;i<=iCount;i++)
		{
 		var strHideDiv="Info"+i
		document.getElementById(strHideDiv).style.display='none';	
		}
	}
function DisplayPublished(iPageID,Lang)
	{ 	 
	
	var filename='/imd1/displaypage.asp?PageID='+ iPageID +'&lang='+ Lang
		var winName='NewWindow';
 	 	var lcStr='width=800,height=600,top=0,left=0,menubar=0,toolbar=0,location=0,directories=0,status=0,resizable=1,scrollbars=1;'
		window.open(filename,winName,lcStr);
	}	
function setHighlightImage(iPageID)
{	
	var strURL=document.URL
	var strURL=strURL.toLowerCase()
	var iIndexBack=strURL.indexOf("cms2002")
	var strImagePath=(iIndexBack >0)? '../images':'images';
	
	if ((iPageID==26)||(iPageID==29)){
	newsbut.src= strImagePath+'/news_on.gif';
	}
	if (iPageID==30){
	aguidebut.src=strImagePath+'/aguide_on.gif';
	}
	if (iPageID==31){
	poolsbut.src=strImagePath+'/pools_on.gif';
	}
	if ((iPageID==32)||(iPageID==33)||(iPageID==34)||(iPageID==35)||(iPageID==36)||(iPageID==37)||(iPageID==38)){
	fondsbut.src=strImagePath+'/fonds_on.gif';
	}
	if ((iPageID==39)||(iPageID==40)||(iPageID==41)||(iPageID==42)){
	prodbut.src=strImagePath+'/produkt_on.gif';
	}
	if ((iPageID==45)||(iPageID==46)||(iPageID==44)||(iPageID==43)){
	verkbut.src=strImagePath+'/verk_on.gif';
	}
	if (iPageID==48){
	verkbut.src=strImagePath+'/soft_on.gif';
	}

}

function setHighlight(iPageID)
{	
	if ((iPageID==103))
	{
	document.getElementById('topmenu0').style.color="#003366";
	document.getElementById('topmenu0').style.background="#E8ECF1";
	}
	if ((iPageID==111)){
	document.getElementById('topmenu1').style.color="#003366";
	document.getElementById('topmenu1').style.background="#E8ECF1";
	}
	if ((iPageID==104)){
	document.getElementById('topmenu2').style.color="#003366";
	document.getElementById('topmenu2').style.background="#E8ECF1";
	}
	if ((iPageID==110)){
	document.getElementById('topmenu3').style.color="#003366";
	document.getElementById('topmenu3').style.background="#E8ECF1";
	}
	if ((iPageID==106)){
	document.getElementById('topmenu4').style.color="#003366";
	document.getElementById('topmenu4').style.background="#E8ECF1";
	}
	if ((iPageID==107)){
	document.getElementById('topmenu4').style.color="#003366";
	document.getElementById('topmenu4').style.background="E8ECF1";
	}
}
function ChangeSite(iLang)
{
	var dElement=document.getElementById('ChangeCountry').style
	dElement.visibility=(dElement.visibility == 'visible')? 'hidden':'visible';
	dElement.left=(iLang==0)? '252px':(iLang==1)? '318px':'306px'
	//the above positions the menu to the left 0-Englidh,1-Flemish,2-French
}
function HideSubMenu(strDiv)
{document.getElementById(strDiv).style.visibility = 'hidden';
}
function ShowSubMenu(strDiv){document.getElementById(strDiv).style.visibility = 'visible';}

function DisplaySubMenu(strDivName,iSubMenu)
{
var strURL=document.URL;
var iCMSIndex=strURL.indexOf("cms2002")
var aPositions=(navigator.userAgent.indexOf("6/6") >=1)?  new Array(50,116,138,160,182,125):new Array(50,116,138,160,182,125) ;	
	
		var iInt = 5
		var strDiv="SubMenu"
		for(var i=0;i<=iInt;i++)
		{
		strImage="arrow"+i
		strDiv="SubMenu"
		strDiv=strDiv+i
		if (strDiv == strDivName)
			{
			if(iSubMenu==1)
						   {
				document.getElementById(strDiv).style.visibility = 'visible';
				document.getElementById(strDiv).style.top = aPositions[i];
				document.images[strImage].src=(iCMSIndex>0)? '../images/redarrow.gif':'images/redarrow.gif';
						   }
				}
			else
				{
			document.getElementById(strDiv).style.visibility = 'hidden';
			document.images[strImage].src=(iCMSIndex>0)? '../images/1x1.gif':'images/1x1.gif';
				}
			}
			
}

var swidth=550
var sheight=20

var sspeed=1
//wholemessage='<nobr class="footnote">New product for Belgium.&nbsp;<img src="images/arrow.gif">&nbsp;<a href="#" class="footnote">click here for further information.</a></nobr>'
//'<a class=tabb href="#" onClick=\'window.top.location.href="http://forums.webdeveloper.com"\'><u>Check out WebDeveloper Forums. The place where your questions get answered!</u></a></nobr>';
var resumesspeed=sspeed;
var sizeup=0;var broper=navigator.userAgent.toLowerCase().indexOf('opera');

function start(){
if (document.all) iemarquee(slider);
else if (document.getElementById)
ns6marquee(document.getElementById('slider'));
else if(document.layers)
ns4marquee(document.slider1.document.slider2);
}
function iemarquee(whichdiv){
iediv=eval(whichdiv)
iediv.style.pixelLeft=swidth
//iediv.innerHTML='<nobr>'+wholemessage+'</nobr>'
sizeup=iediv.offsetWidth
ieslide()
}
function ieslide(){
if (iediv.style.pixelLeft>=sizeup*(-1)){
iediv.style.pixelLeft-=sspeed
setTimeout("ieslide()",20)
}
else{
iediv.style.pixelLeft=swidth
ieslide()
}
}

function ns6marquee(whichdiv){
ns6div=eval(whichdiv)
ns6div.style.left=swidth
//ns6div.innerHTML='<nobr>'+wholemessage+'</nobr>'
sizeup=ns6div.offsetWidth
ns6slide()
}
function ns6slide(){
if (parseInt(ns6div.style.left)>=sizeup*(-1)){
ns6div.style.left=parseInt(ns6div.style.left)-sspeed
setTimeout("ns6slide()",20)
}
else{
ns6div.style.left=swidth
ns6slide()
}
}
function LinkWord(iKeyword,iTableType)
{ 	 
	var filename='Aguidesearchform.asp<%=sp%>&iSearchID='+iKeyword+'&SearchType='+ iTableType
	//popup option below is commented out	
 	// 	var winName='NewWindow';
 	// 	var lcStr='width=500,height=500,top=0,left=500,menubar=0,toolbar=0,location=0,directories=0,status=0,resizable=1,scrollbars=1;'
	//	window.open(filename,winName,lcStr);
 	location=filename;	
}
function GetDate(iLang)
{
today=new Date();
var time=today.getDay();
var time2=today.getMonth();
var pagedate=today.getDate();
var year=today.getFullYear();
var weekday=new Array(2)
weekday[0]= new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat")
weekday[1]= new Array("Sonn","Mon","Dien","Mitt","Don","Frei","Sam")
weekday[2]= new Array("domienica","lundì","martedì","mercoledì","giovedì","venerdì","sabato");
wday=weekday[iLang][time]

var month=new Array(2)
month[0]= new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
month[1]= new Array("Janu","Feb","März","Apr","Mai","Juni","Juli","Aug","Sept","Okt","Nov","Dez")
month[2]= new Array("gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre");

months=month[iLang][time2]
var strURL=document.URL
var strURL=strURL.toLowerCase()
var iIndexBack=strURL.indexOf("cms2002")
document.getElementById("Today").innerHTML=(iIndexBack<0)? wday + ", " + pagedate + " " + months + " " + year:"";
}



//-->
