  
/*-------------------------------------------
Load website in framesets
--------------------------------------------*/
  
//  if(parent.frames.length==0&&document.location.search.indexOf("frame=1")==-1) {
//    var l=window.location.href; document.write("<html><head><title>"+document
//    .title+"</title></head><frameset rows=\"*\"><frame src=\""+l
//    +(l.indexOf("?")==-1?"?":"&")+"frame=1\" name=main frameborder=0 marginwidt"
//    +"h=0 marginheight=0 noresize scrolling=no></frameset></html>");}
  
  
/*-------------------------------------------
Uncrypt an emailadress and run or write it
--------------------------------------------*/
  
  function MM_unCryptMail(a,r) { //v1.0
    var u=''; for(i=0;i<a.length;i++) u+=String.fromCharCode(a.charCodeAt(i)-5);
    if(r) document.location.href = u; else document.write(u);
  }
  
  
/*-------------------------------------------
Change layer content and restore it
--------------------------------------------*/
  
  function MM_swapContent() { //v1.0
    var d=document; var i,j,a=MM_swapContent.arguments; j=d.getElementById(a[1]);
    if(a[0]&&d.MM_c) {if(!d.MM_s) d.MM_s=j.innerHTML; j.innerHTML=d.MM_c[a[2]];}
    else if(d.MM_s) j.innerHTML=d.MM_s;
  }
  
  function MM_showContent() { //v1.0
    var d=document; var i,j,a=MM_showContent.arguments; j=d.getElementById(a[0]);
    if(!d.MM_aContent) {d.MM_aContent=a[1]; d.MM_dContent=a[1]} i=d.getElementById(d.MM_aContent);
    if(d.MM_aContent!=a[0]) {i.style.display='none'; j.style.display='inline';
      d.MM_aContent=a[0];} else {i.style.display='none'; d.MM_aContent=d.MM_dContent;
      d.getElementbyId(d.MM_dContent).style.display='inline';}
  }
  
  function MM_preloadContent() { //v1.0
    var d=document; var i,a=MM_preloadContent.arguments; if(!d.MM_c)
    d.MM_c=new Array(); for(i=0;i<a.length;i++) d.MM_c[d.MM_c.length]=a[i];
  }
  
  
/*-------------------------------------------
Open new browser window
--------------------------------------------*/
  
  function MM_openBrWindow(theURL,winName,features) {
    window.open(theURL,winName,features);
  }
  
  
/*-------------------------------------------
Change images and restore them
--------------------------------------------*/
  
  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_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_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_findObj(n, d) { //v4.01
    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 && d.getElementById) x=d.getElementById(n); return x;
  }
  
  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];}
  }
  
  
/*-------------------------------------------
Scroll the content of a div layer
--------------------------------------------*/
  
  function MM_scroll() { //v1.0
    var d=document,e,a=MM_scroll.arguments; if(isNaN(d.MM_sx)||isNaN(d.MM_sy)||isNaN(d.MM_sp))
    return; if(a[0]=='st'&&d.MM_si) {clearInterval(d.MM_si); d.MM_si=false; return;}
    if(!(e=d.getElementById(a[1]))) return; if(a[0]=='ms'&&(a[2]=event.wheelDelta))
      MM_scroll('mv',a[1],a[2]/-6); if(a[0]=='up'&&!d.MM_si)
      d.MM_si=setInterval("MM_scroll('mv','"+a[1]+"',-1)",10); if(a[0]=='dn'&&!d.MM_si)
      d.MM_si=setInterval("MM_scroll('mv','"+a[1]+"',1)",10);
    if(a[0]=='mv'&&a[2]!=0) { if(d.MM_sp+a[2]<0) d.MM_sp=0; else if(d.MM_sp+a[2]>d.MM_sy)
      d.MM_sp=d.MM_sy; else d.MM_sp+=a[2]; if(window.opera)
      d.getElementById(a[1]+'OP').style.top=-d.MM_sp; else e.scrollTop=d.MM_sp;}
    else if(a[0]=='mv') MM_scroll('st');
  }
  
  function MM_scrollKey(e) { //v1.0
    if(!e&&window.event) e=window.event; else if(!e&&top.event) e=top.event;
    if((e.which&&e.which==38)||e.keyCode==38) MM_scroll('mv',d.MM_sd,-10);
    else if((e.which&&e.which==40)||e.keyCode==40) MM_scroll('mv',d.MM_sd,10);
    else if((e.which&&e.which==33)||e.keyCode==33) MM_scroll('mv',d.MM_sd,-100);
    else if((e.which&&e.which==34)||e.keyCode==34) MM_scroll('mv',d.MM_sd,100);
  }
  
  function MM_scrollInit() { //v1.0
    var d=document,e,a=MM_scrollInit.arguments; if(!(e=d.getElementById(a[0]))) {
      setTimeout("MM_scrollInit('"+a[0]+"')",100); return;} d.MM_sd=a[0]; d.MM_sx=e.scrollTop;
    d.MM_sy=e.scrollHeight; d.MM_sp=d.MM_sx; d.MM_si=false; if(window.opera)
    d.MM_sy-=e.offsetHeight; if(navigator.userAgent.indexOf("MSIE")!=-1)
      top.document.onkeydown=MM_scrollKey; document.onkeydown=MM_scrollKey;
  }
  
  
/*-------------------------------------------
View media photo
--------------------------------------------*/
  
  function MM_openFoto() {
    var d=document,e,i,a=MM_openFoto.arguments; if(!(e=d.getElementById("media")))
    return false; if(!(i=d.images["foto"])) return false; MM_closeFoto(); MM_positionFoto();
    i.src=a[0]; i.height=a[1]; e.style.height=(a[1]+4)+"px"; e.style.display="block";
  }
  
  function MM_closeFoto() {
    var d=document,e; if(!(e=d.getElementById("media"))) return false;
    if(!(i=d.images["foto"])) return false; e.style.display="none"; i.height=300;
    i.src="./img/spacer.gif"; e.style.height="304px";
  }
  
  function MM_positionFoto() {
    var d=document,ua=navigator.userAgent,ie,e; ie=(ua.indexOf("MSIE")>-1);
    if(!(e=d.getElementById("media"))) return false; with(d.body) {
     maxX=(ie)?clientWidth:offsetWidth;} e.style.left=Math.floor(maxX/2);
  }
  
  function MM_openText() {
    var d=document,e,a=MM_openText.arguments; if(!(e=d.getElementById(a[0])))
    return false; e.style.display="block";
  }
  
  function MM_closeText() {
    var d=document,e,a=MM_closeText.arguments; if(!(e=d.getElementById(a[0])))
    return false; e.style.display="none";
  }
  
  function MM_positionText() {
    var d=document,a=MM_positionText.arguments,ua=navigator.userAgent,ie,e;
    ie=(ua.indexOf("MSIE")>-1); if(!(e=d.getElementById(a[0]))) return false;
    with(d.body){maxX=(ie)?clientWidth:offsetWidth;} e.style.left=Math.floor(maxX/2)+180;
  }
  
  
/*-------------------------------------------
Replaces all JavaScript Errors
--------------------------------------------*/
  
  window.onerror=MM_error;
  document.onerror=MM_error;
  
  function MM_error() { //v1.0
   return true;
  }