/* Created by Kerry of Studio98 */

window.addEventListener?window.addEventListener("load",so_init,false):window.attachEvent("onload",so_init);

var d=document, fields = new Array(),a = new Array();

function so_init() {
	if(!d.getElementById) return;

	fields = d.getElementsByTagName('ul');
	for(i = 1; i < fields.length; i++) {
		if(fields[i].className == "subnav") {
			cID = fields[i].id.replace('sub', '');
			a[i] = d.getElementById('nav' + cID);
			a[i].href = "#";
			a[i].onclick = function(){cID=this.id.replace('nav','');sn=document.getElementById("sub" + cID);if(sn.style.display==""){sn.style.display="block";}else{sn.style.display="";}}; 
		}
	}
}		