function QuietError(){
	return true;
}
window.onerror=QuietError;
function hidestatus(){
	window.status='';
	return true;
}
var current=null;
function playVideo(a,v){
	if (current!==null){
		if (current.style) current.style.color="#7498A7";
	}
	if (a.style) a.style.color="#CC0000";
	v="flash/videoplayer.swf?file="+v+"&autoStart=true";
	writeLayer('flashVideo',createFlash(320,260,v,7));
	current=a;
}
if (document.layers) document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT);
document.onmouseover=hidestatus;
document.onmouseout=hidestatus;
function popupWindow(location,width,height,fullscreen,resizable,scrollbars,status){
	if (width==null||width==undefined) width=780;
	if (height==null||height==undefined) height=570;
	if (fullscreen==null||fullscreen==undefined) fullscreen='no';
	if (resizable==null||resizable==undefined) resizable='yes';
	if (scrollbars==null||scrollbars==undefined) scrollbars='yes';
	if (status==null||status==undefined) status='yes';
	var rndStr = randomString();
	new_window=window.open(location,rndStr,"fullscreen="+fullscreen+",width="+width+",height="+height+",top="+Math.round((screen.availHeight/2)-(height/2))+",left="+Math.round((screen.availWidth/2)-(width/2))+",resizable="+resizable+",scrollbars="+scrollbars+",status="+status+",location=no,toolbar=no,menubar=no,directories=no,titlebar=no,personalbar=no");
	if (new_window) return false;
}
function randomString() {
	var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";
	var string_length = 8;
	var randomstr = '';
	for (var i=0; i<string_length; i++) {
		var rnum = Math.floor(Math.random() * chars.length);
		randomstr += chars.substring(rnum,rnum+1);
	}
	return randomstr;
}
function backToTop(){
	d=document;
	dW=d.body.clientWidth;
	dH=d.body.clientHeight;
	sH=d.body.scrollHeight;
	sP=d.body.scrollTop;
	docWidth=(dW!==null&&dW!=='undefined')?dW:innerWidth;
	docHeight=(dH!==null&&dH!=='undefined')?dH:innerHeight;
	docScroll=(sH!==null&&sH!=='undefined')?sH:d.body.offsetHeight;
	scrollPos=(sP!==null&&sP!=='undefined')?sP:pageYOffset;
	n=findElement('menu');
	fromTop=n.offsetHeight+44;
	b=findElement('backtotop');
	pos=posY(b)-posY(n)-fromTop;
	edgeStart=docHeight-posY(n)-fromTop;
	edge=scrollPos+edgeStart-b.offsetHeight;
	dn=Math.round((edge-pos-2)/4);
	up=Math.round((pos-edge+2)/4);
	fromBottom=docScroll-b.offsetHeight-(posY(n)+fromTop)-123;
	if (edge<0) moveLayer('backtotop',0,0);
	else if (edge<edgeStart) moveLayer('backtotop',0,edgeStart);
	else if (edge>(posY(n)-fromTop<fromTop)&&fromBottom>edge) moveLayer('backtotop',0,pos+dn);
	else if (fromBottom<=edge) moveLayer('backtotop',0,fromBottom);
	else if (edge+edgeStart<pos&&posY(b)-posY(n)-fromTop>fromTop) moveLayer('backtotop',0,pos-up);
}
function initBackToTop(){
	if (findElement('content').offsetHeight>1000){
		showLayer('backtotop');
		window.setInterval("backToTop()",1);
	}
}
add_onload('initBackToTop()');