function collapse(t) {
	var ul = t.parentNode;
	for (var i=0; i<ul.childNodes.length; i++) {
		tag = ul.childNodes[i];			
		if (tag.nodeName == 'UL') {
			if (tag.style.display == 'block') {
				tag.style.display = 'none';				
                tag.parentNode.style.display = 'block';
			} else {			
				tag.style.display = 'block';               
			   tag.parentNode.style.display = 'block';
			}
			break;
		}
		
	}
}

function windowSize() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {//Non-IE
    myWidth = window.innerWidth;
  } else if( document.documentElement && document.documentElement.clientWidth) { //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
  } else if( document.body && document.body.clientWidth) { //IE 4 compatible
    myWidth = document.body.clientWidth;
  }
  return myWidth;
}


