	
	/* Modified by Alex Spooner, 2009-04-17 18:37:04 EST */
	/* Modified by Attila Pest, 2011-02-10 05:59:29 EST */

  function rightClickLock()
  {
		$("img").mousedown(function(e){
  		if(e.button==2) {
  			alert("This content is copyrighted and may not be reproduced or used in any way without the express written permission of CHAUVET.");
  			return false;
  		} else {
  			return true;
  		}
		});
		$("img").each( function() {
			$(this)[0].oncontextmenu = function() {
				return false;
			}
		});
  }

	
	$(document).ready(function(){
	 rightClickLock();
	  
    // INPUT PLACEHOLDERS    
    $("input,textarea").focus(function(){
      var v = $(this).attr("value");
      var t = $(this).attr("title");
      if (v==t) $(this).attr("value","");
    });
    $("input,textarea").blur(function(){
      var v = $(this).attr("value");
      var t = $(this).attr("title");
      if (v=="") $(this).attr("value",t);
    });
    
    $(".fancybox_catalog").fancybox({
  		'width': 840,
  		'height': 580,
      'autoScale'     	: false,
      'transitionIn'		: 'none',
  		'transitionOut'		: 'none',
  		'type'				: 'iframe',
  		'titleShow': false
  	});

  	
  	$("#StayConnectedForm").click(function(event){
  	   event.preventDefault();
  	   $.fancybox({
    		'width': 600,
    		'height': 300,
        'autoScale'     	: false,
        'transitionIn'		: 'none',
    		'transitionOut'		: 'none',
    		'type'				    : 'iframe',
    		'titleShow'       : false,
    		'href'            : 'http://www.chauvetlighting.com/newsletter.html'
    	});
  	 });
	});
	
