var browserName=navigator.appName;var browserVer=parseInt(navigator.appVersion);var version="";var msie4=(browserName=="Microsoft Internet Explorer"&&browserVer>=4);if((browserName=="Netscape"&&browserVer>=3)||msie4||browserName=="Konqueror"||browserName=="Opera"){version="n3";}else{version="n2";}
function blurLink(theObject){if(msie4){theObject.blur();}}

var bh = 0;
var last = $('sc2');
var current = $('sc');
var inh = '';
function init () {
	bh = document.getElementById('siteblock').clientHeight;
	setDocHeight ();
}
function setDocHeight () {

	el = $('sc');
	if (document.body) {
		h = document.body.clientHeight;
		w = document.body.clientWidth;
	}
	
	sb = $('siteblock');
	sb2 = $('siteblock2');
	m = $('music');
	l = ((w - 962) / 2);
	sb.style.left = l + 'px';
	sb2.style.left = l + 'px';
	m.style.left = (l+20) + 'px';
	
	sb2.style.height = 'auto';
	sb.style.height = 'auto';
	if (sb.clientHeight < h) {
		sb.style.height = h + 'px';
	}
	if (sb2.clientHeight < h) {
		sb2.style.height = h + 'px';
	}
}
		
function c (url) {
	eval ("var callback = function (result) { setContent(result); };");
	HTML_AJAX.grab(url, callback);
}

function setContent(result) {
	if (last == $('sc')) {
		current = $('sc');
		last = $('sc2');
		sb = $('siteblock');
	} else {
		current = $('sc2');
		last = $('sc');
		sb = $('siteblock2');
	}
	window.setTimeout ('$(\'siteblock\').className = \'siteblock\';',600);
	
	new Effect.Opacity(current, { from: 1, to: 0, duration: 0 });
	current.display = 'none';
	
	inh = result;
	//new Effect.BlindDown(current, { scaleFrom: 0, scaleFrom: 100, duration: 0.5 });
	window.setTimeout ('setContent2();',100);
}
function setContent2 (result) {
	if (current == $('sc')) {
		sb = $('siteblock');
	} else {
		sb = $('siteblock2');
	}
	current.style.zIndex = 20;
	last.style.zIndex = 10;
	sb.innerHTML = inh;
	new Effect.Appear(current, { from: 0, to: 1, duration: 0.5 });
	init();
}