$(document).ready(function() {
  
/* CACHE IMAGES
 var images = [ 'image1.jpg', 'image2.png', 'image3.gif' ];
  jQuery.each(images, function(i) {
    images[i] = new Image();
    images[i].src = this;
  });
*/
 // find the pay by check link and assign it the lnkBlank class
  $('#jsddm li ul li a').each(function(){
       if ($(this).html() == "Pay by Check")
      $(this).addClass('lnkBlank');
  });
  
   // Links - pop up in new window / tab:
  $("a.lnkBlank").click(function() {
    window.open($(this).attr("href"), 'window2', '');
    return false;
  });
  
  
//SLIDE-DOWN-PANEL
  $("#open").click(function(){
    $("div#panel").slideDown("slow");
  });  
  $("#close").click(function(){
    $("div#panel").slideUp("slow");  
  });    
  $("#toggle a").click(function () {
    $("#toggle a").toggle();
  });
  $('#slideshow').cycle({ fx: 'fade', random: 1 });
});




