$(document).ready(function(){

	$('html').css( { overflowY: 'scroll'});
	
	$( "div#header div.telno span:first" ).css({border: 'none'});

	$("ul.submenu li div.expander a").toggle(
		function(){
			toggleSubmenu( $(this).parent().parent() );
		},
		function(){
			toggleSubmenu( $(this).parent().parent() );
		}
	);
});

function toggleSubmenu( inoRow, insAction ) {
	var sStatus = $(inoRow).find( "div.expander:first a" ).html();
	
	if ( insAction == "open" ) {
		sStatus = "-";
	}
	else if ( insAction == "close" ) {
		sStatus = "+";
	}
	
	if ( sStatus == "+" ) {
		openMenuItem( inoRow );
	}
	else {
		closeMenuItem( inoRow );
	}
}

function openMenuItem( inoRow ) {
	var oSubmenu = $(inoRow).children("ul:first");
	var oExpander = $(inoRow).find( "div.expander:first a" );
	
	$(oExpander).html( "-" );
	$(oSubmenu).show();
}

function closeMenuItem( inoRow ) {
	var oSubmenu = $(inoRow).children("ul:first");
	var oExpander = $(inoRow).find( "div.expander:first a" );
	
	$(oExpander).html( "+" );
	$(oSubmenu).hide();
}
