
function onItemHide( obj )
{
	obj.className = (obj.className=='item2'?'item':'item last');
	
}

function onItemReset( obj )
{
	obj.className = (obj.className=='item'?'item2':'item2 last');
}

function maxSizeWindow()
{
	
	if ( document.documentElement.clientWidth  < 1000 )
		$( '#main' ).css( 'width', '1000px' );
		
	if ( document.documentElement.clientWidth  > 1000 )
		$( '#main' ).css( 'width', '100%' );
		
	setTimeout("maxSizeWindow()", 5);
}

function overMenu( obj, background )
{
	var text =  $(obj).html();
	if ( $( 'li.ipod_menu', text ).html() == null ){
		 $( 'ul', $(obj) ).css('display', 'none');
		 $( 'ul', $(obj) ).css('z-index', '1');
	}else{
		$( 'ul', $(obj) ).css('display', 'block');
		$( 'ul', $(obj) ).css('z-index', '100');
	}
}

function outMenu( obj, background )
{
	/*obj.className = background;*/
	$( 'ul', $(obj) ).css('display', 'none');
	$( 'ul', $(obj) ).css('z-index', '1');
}
