
function close_tag(tag)
{
  $("#popupref").fadeOut("fast");
  $("#popupref-content").html("");
}

function load_content(url)
{
  $("#popupref").fadeOut("fast");
  $("#popupref").fadeIn("fast");
  $("#popupref-content").load(url);
}

$(document).ready(function(){
  $("#email").change(function(){
    $("#email_to_send").attr("value", $("#email").attr("value"));
  }),
  $("#phone").change(function(){
    $("#phone_to_send").attr("value", $("#phone").attr("value"));
  })
});


$(function()
{
	$('#news').jScrollPane({scrollbarWidth:6, dragMaxHeight:15});
});


$(document).keyup(function(event){
    if (event.keyCode == 27) {
        close_tag();	
    }
});

