
/*
Script by RoBorg
RoBorg@geniusbug.com
http://javascript.geniusbug.com | http://www.roborg.co.uk
Please do not remove or edit this message
Please link to this website if you use this script!
*/



c.setExpires(new Date(new Date().getTime() + 604800000));


toggle2 = toggle;
toggle = new Function("obj", "newToggle(obj);");

function newToggle(obj)
{
	var value = (obj.className == 'button')?"1":"0";
	c.setValue(obj.id, value)
	toggle2(obj);
}



initMenus2 = initMenus;
initMenus = new Function("newInitMenus()");

function newInitMenus()
{
	if(!document.getElementsByTagName) return;
	
	initMenus2();
	
	var divs = document.getElementsByTagName('div');
	
	for(var x=0; x<divs.length; x++)
	{
		if(divs[x].className != 'button') continue;
		
		divs[x].id = "d_" + x;
			
		if(c.getValue('d_' + x) == "1")
			toggle(divs[x]);
	}

}
