
$(function(){
  $(".about_menu a").hover(
    function () { $(this).parent("li").addClass("nobg");},
    function () {  $(this).parent("li").removeClass("nobg");  }
  );
  $(".status").click(function(){
    var src = "http://www.cabroker.info/cargo/";

    $.modal('<div id="iframe_status_loading" style="display:table-cell;text-align:center;vertical-align:middle;height:450px;width:830px;"><img src="/images/loader.gif" style="vertical-align:text-bottom"/>&nbsp;Загрузка...</div><iframe id="iframe_status" style="display:none" src="' + src + '" height="450" width="830" style="border:0" onload="$(\'#iframe_status_loading\').hide();$(\'#iframe_status\').show()">', {

    	containerCss:{
    		backgroundColor:"#fff",
    		height:450,
    		padding:0,
    		width:830,
    		border: "4px solid #444444"
    	},
    	opacity:80,
	    overlayCss: {
	     backgroundColor:"#000"
	    },
    	overlayClose:true
    });

    return false;
  });
});


function avia_map_over() { $(".avia_map").show(); $(".avia_mapl").addClass("avia_mapl_hover"); }
function avia_map_out() { $(".avia_map").hide(); $(".avia_mapl").removeClass("avia_mapl_hover"); }

function sklad_map_over() { $(".sklad_map").show(); $(".sklad_mapl").addClass("sklad_mapl_hover"); }
function sklad_map_out() { $(".sklad_map").hide(); $(".sklad_mapl").removeClass("sklad_mapl_hover"); }

function customs_map_over() { $(".customs_map").show(); $(".customs_mapl").addClass("customs_mapl_hover"); }
function customs_map_out() { $(".customs_map").hide(); $(".customs_mapl").removeClass("customs_mapl_hover"); }

function sea_map_over() { $(".sea_map").show(); $(".sea_mapl").addClass("sea_mapl_hover"); }
function sea_map_out() { $(".sea_map").hide(); $(".sea_mapl").removeClass("sea_mapl_hover"); }

function auto_map_over() { $(".auto_map").show(); $(".auto_mapl").addClass("auto_mapl_hover"); }
function auto_map_out() { $(".auto_map").hide(); $(".auto_mapl").removeClass("auto_mapl_hover"); }

function logist_map_over() { $(".logist_map").show(); $(".logist_mapl").addClass("logist_mapl_hover"); }
function logist_map_out() { $(".logist_map").hide(); $(".logist_mapl").removeClass("logist_mapl_hover"); }

  function open_wind(n){
    var h;
    h = document.getElementById('wrap').offsetHeight;
    document.getElementById('alles').style.height = h+ 'px';
    document.getElementById('alles').style.display = 'block';
    document.getElementById('popup').style.display = 'block';
    $(".po"+n).show();
  }

  function close_wind(){
    document.getElementById('alles').style.display = 'none';
    document.getElementById('popup').style.display = 'none';
    $(".po").hide();
  }


