// when file loaded, change class show to hide
window.onload = function expand_main() {
	var e = document.getElementsByTagName('*');
	
	for(var i=0; i<e.length; i++) {
		if(e[i].getAttribute('class') == 'show' || e[i].getAttribute('className') == 'show') { // after "||" is for IE bug
			e[i].className = 'hide';
		}
	}
}

// when clicked the trigger, change class to show/hide 
function expand(t) {
	for (var i=0; i<3; i++) {	
		var t = t.parentNode;
		
		if      (t.className=='hide') { t.className = 'show' }
		else if (t.className=='show') { t.className = 'hide' }
	}
}



