	    var jsonURL = "/api/";
	
	    function emailThis(url, venueId)
	    {
	        to     = document.getElementById('emailThisTo').value;
	        from   = document.getElementById('emailThisFrom').value;
	        msg    = document.getElementById('emailThisMsg').value;
	
	        qString = "callback=emailSent&method=EmailThis.Send&to="+encodeURI(to)+"&from="+encodeURI(from)+"&msg="+encodeURI(msg)+"&venueId="+encodeURI(venueId)+"&url="+encodeURI(url);
	        loadJSON(jsonURL, qString, 'script');
	    }

	    function contactEmailThis()
	    {
	        to     = document.getElementById('emailThisTo').value;
	        from   = document.getElementById('emailThisFrom').value;
	        subject   = document.getElementById('emailThisSubject').value;
	        msg    = document.getElementById('emailThisMsg').value;
	
	        qString = "callback=emailSent&method=EmailThis.Send&to="+encodeURI(to)+"&from="+encodeURI(from)+"&subject="+encodeURI(subject)+"&msg="+encodeURI(msg);
	        loadJSON(jsonURL, qString, 'script');

	    }
	
	    function emailSent(data)
	    {
	        if(data.success == 1){
	            $('#emailResponse').html("Your email has been sent.");
	            $('#emailForm').addClass("hide");
	        }else{
	            $('#emailResponse').html(data.result.message);
	        }
	    }

