function nospam(user,domain) {
	locationstring = "mailto:" + user + "@" + domain + '?subject=I have a question about Snippet';
	window.location = locationstring;
}

$(document).ready(function()  {
  $("#show_help").click(function(){
    $("#help").slideDown("fast",function(){
      $("body").click(function(){
        $("#help").slideUp("fast");
        $(this).unbind("click");
      });
    });
  });
  swapValues = [];
  $(".swap_value").each(function(i){
    swapValues[i] = $(this).val();
    $(this).focus(function(){
      if ($(this).val() == swapValues[i]) {
        $(this).val("").css({ color: "#FFF"});
      }
    }).blur(function(){
      if ($.trim($(this).val()) == "") {
        $(this).val(swapValues[i]).css({ color: "#444"});
      }
    });
  });
  // Pop up - Download
  $('#download').qtip({
     content: "<ul id='download_info'>\
     <li><strong>System</strong> OS X 10.5 or Later</li>\
     <li><strong>Size</strong> 1.2 MB</li>\
     <li><strong>Version</strong> 1.4.5</li>\
     </ul>",
     show: 'mouseover',
     hide: 'mouseout',
     position: {
           corner: {
              target: 'topMiddle',
              tooltip: 'bottomMiddle'
           }
        },
    style: {
      background: "transparent url('images/snippet/black_arrow.png') 0 0 no-repeat",
      color: '#FFF',
      width: 210,
      height: 85,
      border: 'none'
    }
  });
});