   function openZoom(sku) { //pass the sku that you want to open
    //var staging = 'qa.doversaddlery.com'
    var staging = 'test' //for testing purposes replace with your staging server when running on your site
    if (location.hostname.match(/.*\....$/) && location.href.indexOf(staging) < 0){
     // We are on live     
     var urlbase = 'http://zoomcc.richfx.com'
    }else{
     // We are on staging     
     var urlbase = 'http://testny.richfx.com'
    }
    var zoomURL = urlbase + '/zoomcc_dover/zoom_color_change.asp?style_id=' + sku;
    var height = 620
    var width = 370
    var newwin = window.open(zoomURL,'win','height='+height+',width='+width);
    newwin.focus();
   }
   
	var specialcase = ((navigator.userAgent.indexOf('Mac') != -1) || document.all)
	var flag = 0;
	//var msg = 'This image is protected by copyright.\nWe request that you do not attempt to copy our images.';
                     var msg = 'This image is protected by copyright.';

                     
                     	var x,y,x1,y1,copyAttempt;

	var hidethis = "none";

                    function click(e)
                    {
                         if (document.all) 
                            {
	          if (event.button == 2) 
                                  {
                                      alert(msg); 
	                 return false;
	              }
                               }
	            if (document.layers) 
                                    {
                                      if (e.which == 3) 
                                        {
                                           alert(msg); 
		 return false;
	                    }
                                       }
                         }
			                                                              

                                                                 

                   function toggle(e) {
	 	if ( document.getElementById(e).style.display=='none' ) {
			document.getElementById(e).style.display = '';
		 }
		else{
		   	document.getElementById(e).style.display = 'none';
		}
	}

	function init() {
		if (!(document.getElementById || document.all || document.layers)) return;
		if (specialcase && document.layers) {
			document.captureEvents(Event.MOUSEMOVE);
			document.onmousemove = special;
		}

		for (i=0;i<document.images.length;i++) {
			//document.images[i].onmousedown = checkIt;
                                                                 document.images[i].onmousedown = click;  
                                                                 document.images[i].onmouseup = function() {return false};

			if (specialcase) {
				//document.images[i].onmousemove = special;
				//document.images[i].onclick = clearIt;
			}
		}
	}

