Cufon.replace('h1,h2, .cufon', { fontFamily: 'LL Komma' });


$(function () {
  //
  // watermarks  
  //
  $(".txtsearch").waterMark();
  
  //
  // reference box link  
  //
   $('.box.ref').each(function() {   

    if($(this).find('.box').children().is('a') == true)
    {            
      $(this).click(function(){        
         window.location=$(this).find("a").attr("href"); return false;       
      }); //End Click
    } 
   }); //End each
  //
  // left box link  
  //
   $('.box.left').each(function() {   

    if($(this).find('.box').children().is('a') == true)
    {            
      $(this).click(function(){        
         window.location=$(this).find("a").attr("href"); return false;       
      }); //End Click
    } 
   }); //End each
  
  
  //
  // pink box link  
  //
   $('.box.right').each(function() {   
    if($(this).children().is('a') == true)
    {            
      $(this).click(function(){        
         window.location=$(this).find("a").attr("href"); return false;       
      }); //End Click
    } 
   }); //End each
  
  

  
  //
  //External click
  //
  $("a[rel='external']").click(function(){      
     window.open($(this).attr("href"));
     return false;      
    });
  
    //
    // EMail Spam 
    //
    if ($("span.mailme").length) {
        // variables, which will be replaced
        var at = / AT /;
        var dot = / DOT /g;

        // function, which replaces pre-made class
        $('span.mailme').each(function () {
            var addr = $(this).text().replace(at, '@').replace(dot, '.');
            $(this).after('<a href="mailto:' + addr + '">' + addr + '</a>');
            $(this).remove();
        });
    }
    // EMail Spam 
  
 });

