var $pro_menu=$('.pro_menu').children('li'),
$bigUrl=$('.bigimg').children('a'),
$bigImg=$('.bigimg').find('img');
$bigUrl.attr('href',$pro_menu.eq(0).attr('data-url'));
$bigImg.attr('src',$pro_menu.eq(0).attr('data-src'));
$pro_menu.each(function(index) {
$(this).addClass('rota'+(index+1)).children('p').attr('id','rota'+(index+1));
$(this).hover(function(){
$(this).children('ul').toggle().children('li').each(function(index) {
$(this).css('margin-left',(5-Math.floor(index/2))*8*(1-index%2))
});
$bigUrl.attr('href',$(this).attr('data-url'));
$bigImg.attr('src',$(this).attr('data-src'));
})
});