﻿$(document).ready( function() {

    // Capture right click
    $("#visual").rightClick( function(e) {
        alert("You do not have permission to copy images from this website, all images are paid for and under licence by premier male massage.com copyright(c)2009");
    });
    
    // Capture right mouse down
    $("#visual").rightMouseDown( function(e) {
        alert("You do not have permission to copy images from this website, all images are paid for and under licence by premier male massage.com copyright(c)2009");
    });
    
    // Capture right mouseup
    $("#visual").rightMouseUp( function(e) {
        alert("You do not have permission to copy images from this website, all images are paid for and under licence by premier male massage.com copyright(c)2009");
    });
    
    // Disable context menu on an element
    $("#visual").noContext();
	// Capture right click
    $("#sidebar").rightClick( function(e) {
        alert("You do not have permission to copy images from this website, all images are paid for and under licence by premier male massage.com copyright(c)2009");
    });
    
    // Capture right mouse down
    $("#sidebar").rightMouseDown( function(e) {
        alert("You do not have permission to copy images from this website, all images are paid for and under licence by premier male massage.com copyright(c)2009");
    });
    
    // Capture right mouseup
    $("#sidebar").rightMouseUp( function(e) {
        alert("You do not have permission to copy images from this website, all images are paid for and under licence by premier male massage.com copyright(c)2009");
    });
    
    // Disable context menu on an element
    $("#sidebar").noContext();
	
	
	//handle the ajax call for the review popup and make sure you get a nice looking box
	function test(e){

	// we want to store the values from the form input box, then send via ajax below
	var fname     = $('#name').attr('value');
	var myemail     = $('#email').attr('value'); 
	var mycomments     = $('#comments').attr('value');
 
		$.ajax({type: "POST",url: "ajaxmail.php",data: 'fname='+ fname + '& email=' + myemail+'& comments=' + mycomments,success: function(del){
				if (e == false) {return true;}																						
				$('div.success').fadeIn();
				$('form#testform').fadeOut();
				return true;
				
			} 
		});
		if (e == false) {return true;}
		return true; 
	
	
}




	var txt='<div class="success" style="display:none; color: #001100;">Thank you Your Email Has Been Sent</div><div class="error" style="display:none;">There was an error sending the data</div><h1 style="border-bottom: 1px dotted #cccccc;padding-bottom: 10px; color:#845663;">Contact Form</h1><form id="testform" name="testform" action><p><label>Name:</label><br /><input type="text" name="name" id="name" class="name" /></p><p><label>Your Email:</label><br /> <input type="text" name="email" id="email" class="contact_number" /><br /><label>Comments:</label><br /><textarea name="comments" id="comments" cols="45" rows="5" class="review">Please Enter Your Comments Here</textarea></p></form>';
	
$("#review").click(function () {
							 
	$.prompt(txt,{submit: test,

      buttons: { submit:true,Cancel:false}
});
});
	

});
