jQuery(document).ready(function($){
  //Footer toogle function
  $(".newsBox h1 a").click(function(e){
    e.preventDefault();
    $(this).parent().parent().children(".externaltext").toggle();
  });
//alert("Test1");
  //internal links opens fancybox with content. Need ajax=true to get content
  $("a.internalLink").fancybox({"showCloseButton": true,
    "titlePosition"  : "inside",
    "autoDimensions" : false,
    "width"          : 400,
    "ajax" : {
        "type" : "GET",
        "data" : "ajax=true&template=master_new"
    }}); 
//alert("Test2");
  //$("#fancybox-outer").css({background:'#f3f5fa'});

});
