function switchTo(idd) {	fileOnPage = 0;	for(x=0; x < parent.sections.chunks.length; x++ ){						var thisChunk = parent.sections.chunks[x];		var thisChunkLink = parent.sections.chunks[x] + '+link';		if(parent.file == thisChunk )			fileOnPage = 1;		//thisChunkLink.document.setAttribute('class','titleActive');		//		thisChunkLink.className=newClass;//		parent.sections.document.getElementById(thisChunk).style.display='none';		switchClass ( thisChunk, 'articleDiv' );		switchClass ( thisChunk+'+link' , 'title' );		//		parent.sections.document.getElementById(thisChunkLink).style.setAttribute('color', 'grey', 0);				}			if (fileOnPage == 1 ){				switchClass ( idd , 'articleDiv_on' );		switchClass ( idd+'+link' , 'title_on' );		//		parent.sections.document.getElementById(idd).style.display='block';//		parent.sections.document.getElementById(idd+'+link').style.setAttribute('color', 'white', 0);	}		}function mSelect( itm, state ){ // state = On/Off	if( state == 'On' ){		parent.randomImg.document.getElementById(itm+'On').style.display='block';		parent.randomImg.document.getElementById(itm+'Off').style.display='none';		}		else{		parent.randomImg.document.getElementById(itm+'On').style.display='none';		parent.randomImg.document.getElementById(itm+'Off').style.display='block';		}}function switchClass(idd, newClass) {	identity=document.getElementById(idd);if ( browser.isIE == false )	identity.setAttribute('class',newClass);else	identity.className=newClass;}function toggleClass(idd) {	var el = document.getElementById(idd);		if ( el.className != 'rootTitle' ) {		el.className = 'rootTitle';	}	else {		el.className = 'activeTitle';	}}function toggle(idd) {	var el = document.getElementById(idd);		if ( el.style.display != 'none' ) {		el.style.display = 'none';	}	else {		el.style.display = '';	}}
