if (document.getElementById){
document.write('<style type="text/css">')
document.write('.switchcontent{display:none;}')
document.write('</style>')
}

if (window.addEventListener)
window.addEventListener("load", do_onload, false)
else if (window.attachEvent)
window.attachEvent("onload", do_onload)
else if (document.getElementById)
window.onload=do_onload

function getElementbyClass(classname){
ccollect=new Array()
var inc=0
var alltags=document.all? document.all : document.getElementsByTagName("*")
for (i=0; i<alltags.length; i++){
if (alltags[i].className==classname)
ccollect[inc++]=alltags[i]
}
}

function contractcontent(omit){
var inc=0
while (ccollect[inc]){
if (ccollect[inc].id!=omit)
ccollect[inc].style.display="none"
inc++
}
}

function expandcontent(cid){
if (typeof ccollect!="undefined"){
contractcontent(cid)
document.getElementById(cid).style.display=(document.getElementById(cid).style.display!="block")? "block" : "none"
selectedItem=cid+"|"+document.getElementById(cid).style.display
}
}

function do_onload(){
getElementbyClass("switchcontent")
}


function NewWindow(mypage,myname,w,h,tool,scroll,pos,resize)
	{
	if(pos=="center"){
		LeftPosition=(screen.width)?(screen.width-w)/2:100;
		TopPosition=(screen.height)?(screen.height-h)/2:100;}
	else if((pos!="center") || pos==null){
		LeftPosition=20;
		TopPosition=20}

	settings='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',toolbar='+tool+',scrollbars='+scroll+',resizable='+resize;
	win=window.open(mypage,myname,settings);
	if(win.focus){win.focus();}
	return false;
}

function NewNewsWindow(mypage)
	{
	win=window.open(mypage,'Article','toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=640,height=480,top=50,left=0'); 
	if(win.focus){win.focus();}
}

function NewBlankWindow(mypage)
	{
	win=window.open(mypage,'Article','toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=700,height=500,top=50,left=0'); 
	if(win.focus){win.focus();}
}