function clearbg(obj) {
		   for(j=1;;j++)
		   {
			 myID = obj + j;
			 if(myObj = document.getElementById(myID))
			 {
			 		myObj.style.backgroundColor = 'white'; //use bgcolor of page
			 }
			 else
			 	break;
		   }
		}
		
		function setbg(x) {
		 document.getElementById(x).style.color = '#901414';
		}

function init(){
	jQuery().ready(function(){

		 $('#follow').scrollFollow();

// highly customized accordion
		jQuery('#list').accordion({
			autoheight: false,
			event: 'click',
			active: '.selected',
			selectedClass: 'active',
			animated: "bounceslide",
			header: "dt"
		}).bind("change.ui-accordion", function(event, ui) {
			jQuery('<div>' + ui.oldHeader.text() + ' hidden, ' + ui.newHeader.text() + ' shown</div>').appendTo('#log');
		});
		
		
		// bind to change event of select to control first and seconds accordion
		// similar to tab's plugin triggerTab(), without an extra method
		var accordions = jQuery('#list');
		
		jQuery('#switch select').change(function() {
			accordions.accordion("activate", this.selectedIndex-1 );
		});
		jQuery('#close').click(function() {
			accordions.accordion("activate", -1);
		});
		jQuery('#switch2').change(function() {
			accordions.accordion("activate", this.value);
		});
		jQuery('#enable').click(function() {
			accordions.accordion("enable");
		});
		jQuery('#disable').click(function() {
			accordions.accordion("disable");
		});
		jQuery('#remove').click(function() {
			accordions.accordion("destroy");
			wizardButtons.unbind("click");
		});	

		
		
		
});
}
