//textsize
function cFont(toValue){
    var allDivs=document.getElementsByTagName("DIV");
    for (i=0;i<allDivs.length;i++){
        allDivs[i].className=toValue;
    }
    
}

//stretcher
//the main function, call to the effect object
	function init(){
		
		var stretchers = document.getElementsByClassName('stretcher'); //div that stretches
		var toggles = document.getElementsByClassName('display'); //h3s where I click on

		//accordion effect
		var myAccordion = new fx.Accordion(
			toggles, stretchers, {opacity: true, duration: 400}
		);

		//hash functions
		var found = false;
		toggles.each(function(h3, i){
			var div = Element.find(h3, 'nextSibling'); //element.find is located in prototype.lite
			if (window.location.href.indexOf(h3.title) > 0) {
				myAccordion.showThisHideOpen(div);
				found = true;
			}
		});
		if (!found) myAccordion.showThisHideOpen(stretchers[0]);
	}
	//toggle style
	
function toggleCSS() {
 d=document
	if (d) {
  ds=d.styleSheets
		if (ds) {
 		for (i=0;i<ds.length;i++) {
    ds[i].disabled=!ds[i].disabled
			}
   return false
  }
 }
 return true
}
