var Site = {

  start: function() {

	if($('text')) {
       
		$('sensorium').set('tween', { duration: 300 }).fade('in'); 
		$('sensorium').set('tween', { duration: 4000 }).fade('out');        
		$('sensorium').fade('out');
	}

  },    

}

window.addEvent('domready', Site.start);

//  Force getElementById to work

if(!document.getElementById) {
	if(document.all) {
		document.getElementById = function() {
			if(typeof document.all[arguments[0]] != "undefined") {
				return document.all[arguments[0]];
			} else {
				return null;
			}
		}
	} else if(document.layers) {
		document.getElementById = function() {
			if(typeof document[arguments[0]] != "undefined") {
				return document[arguments[0]];
			} else {
				return null;
			}
		}
	}
}




//  Popup windows

function windowPop(url, id, width, height) {
	//var x = ((screen.width / 2) - ((width) / 2));
	//var y = ((screen.height / 2) - ((height) / 2));
	var x = (screen.width - width-30);
	var y = (screen.height - height-50);
	windowNew = window.open(url,id,"width="+ width +",height="+ height +",scrollbars=no,resizable=no,left="+ x +",top="+ y);
	windowNew.focus();
}

