
(function($){
       
// ajax submit from ts-e4m-form
$(function() {
  $(".button").click(function() {
		
		var email = $("input#email").val();			
		var dataString = 'email=' + email;
		//alert (dataString);return false;
		
  $.ajax({
    type: "POST",
    url: "send.php",
    data: dataString,
      success: function() {
        $('#ts-e4m').html("<div id='message'></div>");
        $('#message').html("<h1 style='margin-bottom:1em;'><span>Thanks!</span> Check Your Inbox To Download</h1>")
        .hide()
        .fadeIn(1500, function() {
          $('#message');
        });
      }
    });
return false;
	});	
});

// placeholder text
$('input[placeholder], textarea[placeholder]').placeholder();


Shadowbox.init();
	  	

})(this.jQuery);




window.log = function(){
  log.history = log.history || [];   
  log.history.push(arguments);
  if(this.console){
    console.log( Array.prototype.slice.call(arguments) );
  }
};
(function(doc){
  var write = doc.write;
  doc.write = function(q){ 
    log('document.write(): ',arguments); 
    if (/docwriteregexwhitelist/.test(q)) write.apply(doc,arguments);  
  };
})(document);



