/*
this site is designed, constructed and hosted by the people's valley
-------------------- www.thepeoplesvalley.nl --------------------
stekkenbergweg 4, 1105 aj amsterdam, the netherlands
t +31 20 4 51 51 51, f +31 20 3 63 06 30 
(c)2007, the people's valley
*/


// Function to hide the banner
function dclk_hide(){
	document.getElementById('bannerOverlay').style.visibility = 'hidden'; 
}
function alignCenter() {
  var myWidth = 0, myHeight = 0;
    
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) 		) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
  	//window.alert( 'Width = ' + myWidth );
	//window.alert( 'Height = ' + myHeight );
	var desiredHeight = (myHeight - 400)/2;
	var desiredWidth = (myWidth - 500)/2;
}
window.onload = alignCenter;
window.onresize = alignCenter;
//-----------------

function swapImage(obj,img)
{
	if ( obj.tagName == "DIV" )
		obj.style.backgroundImage = "url(" + img + ")";
	else if ( obj.tagName == "IMG" )
		obj.src = img;
}

var _fontsize = 11;
function ChangeStylesheet()
{
    if (_fontsize == 11)
    {
        _fontsize = 16;
        document.getElementById('textgrootte').src = '/images/icon_txt1.jpg';
    }
    else
    {
        _fontsize = 11;
        document.getElementById('textgrootte').src = '/images/icon_txt3.jpg';
    }
    //Specify affected tags. Add or remove from list:
    var tgs = new Array( 'div','td','tr','a','p');
    var trgt = 'divTextResize';
    
    if (!document.getElementById) return
    var d = document,cEl = null,i,j,cTags;
		
    if ( !( cEl = d.getElementById( trgt ) ) ) cEl = d.getElementsByTagName( trgt )[ 0 ];
    
    cEl.style.fontSize = _fontsize;

    for ( i = 0 ; i < tgs.length ; i++ ) 
    {
        cTags = cEl.getElementsByTagName( tgs[ i ] );
        for ( j = 0 ; j < cTags.length ; j++ ) 
        {
            cTags[ j ].style.fontSize = _fontsize + 'px';
            cTags[ j ].style.lineHeight = _fontsize + 4 + 'px';
        }
    }
}