
var previousOnload = window.onload;
window.onload = function () { 
	if(previousOnload) previousOnload(); 
	addReflections(); 
	onLoad();
}

function onLoad(){
var sPath = window.location.pathname;
//var sPath = document.location.pathname;

//var sPage = sPath.substring(sPath.lastIndexOf('\\') + 1);
var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
	//alert(sPage);
onLoadPage(sPage);
}

function onLoadPage(sPage){
	if( sPage == 'posters.html' ) {
		onLoadPoster();
	} else if (sPage == 'audio.html') {
		onLoadAudio();
	} else if (sPage == 'index.html') {
		onLoadIndex();
	} else {
		//alert('undefined');
	}
}


