$(document).ready(function(){

//line
$('.j_line td').css({'border-bottom':'#CCC 1px solid'});
$('.j_line').mouseover(function(){
	$(this).css({'background-color':'#FFFFE1'});
});
$('.j_line').mouseout(function(){
	$(this).css({'background-color':'#FFF'});
});

//quote
$('div[id=box_mess]').mouseover(function(){
	$('.mess_quote', this).show();
});
$('div[id=box_mess]').mouseout(function(){
	$('.mess_quote', this).hide();
});

//nav
if( $('.p').height() > $('.n').height() )
{
	$('.n').css('height',$('.p').height());
}
else{
	$('.p').css('height',$('.n').height());
}
$('.j_menu1').html('Загрузка меню <img src="/img/load.gif" width="20" height="20" />');  
$('.j_menu2').html('Загрузка меню <img src="/img/load.gif" width="20" height="20" />');  
$('.j_menu3').html('Загрузка меню <img src="/img/load.gif" width="20" height="20" />');  

	$.ajax({  
		type: 'POST',  
		url: '/load/menu1.php',  
		data: 'submit=1&url='+document.location,  
		cache: false,  
		success: function(menu1){  
			$('.j_menu1').html(menu1); 
		}  
	});

	$.ajax({  
		type: 'POST',  
		url: '/load/menu2.php',  
		data: 'submit=1',  
		cache: false,  
		success: function(html2){  
			$('.j_menu2').html(html2);  
		}  
	});
	
	$.ajax({  
		type: 'POST',  
		url: '/load/menu3.php',  
		data: 'submit=1',  
		cache: false,  
		success: function(html3){  
			$('.j_menu3').html(html3);  
		}  
	});
/*
//img
$('img').mouseover(function(){
	
	if( $(this).width() > 468 && $(this).height() > 300 )
	{
		$(this).before('<div class="google_links" style="width:'+$(this).width()+'px; height:22px; position:absolute; padding:10px; background-color:#FFF"></div>');
		$('div[class=google_links]').html( $('#google_links').html() ).fadeTo(0, 0.5);
	}	
});

$('img').mouseout(function(){
	
	if( $(this).width() > 468 && $(this).height() > 300)
	{
		$('div[class=google_links]').mouseover(function(){
			return false;						
		});

		$('div[class=google_links]').remove();;
	}	
});
*/

});//ready

/* меню */
function showmenu(elmnt)
{
	document.getElementById(elmnt).style.visibility="visible"
}
function hidemenu(elmnt)
{
	document.getElementById(elmnt).style.visibility="hidden"
}
