/*
** File contains page initialisation code an common functions.
*/

// Onload initialisation.
function init(marginalia,isHomepage){
	if(marginalia) {
		placeMarginalia();
		window.onresize = function(){
			placeMarginalia();
		};
	}
	initFlashCheckTimeOut(isHomepage);

}


/*
** Common functions.
*/

// Converts nodelists to arrays.
// (arrays are more flexible than nodelists allowing cat, etc.)
/*function convertNodeListToArray(nodeList){
	var tempAr = [];
	for (i=0;i<nodeList.length;i++){
		tempAr[i] = nodeList[i];
	}
	return tempAr;
}

function getWindowWidth() {
 	var myWidth = 0
  	if( typeof( window.innerWidth ) == 'number' ) {
    	//Non-IE
    	myWidth = window.innerWidth;
  	}else if( document.documentElement && document.documentElement.clientWidth ) {
    	//IE 6+ in 'standards compliant mode'
    	myWidth = document.documentElement.clientWidth;
  	} else if( document.body && document.body.clientWidth ) {
    	//IE 4 compatible
    	myWidth = document.body.clientWidth;
  	}
  	return myWidth;
}*/

