/*--------------------------------------------------------------------------*
 * 
 * Category Zoom (Whitney)
 * 
 * Version 2.0.4
 * 
 * Copyright (C) 2008 Brand Labs LLC
 * 
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or any later version.
 * 
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  
 * 02110-1301  USA
 * 
 *--------------------------------------------------------------------------*/

/*--------------------------------------------------------------------------*
 * Category Zoom Configuration
 *--------------------------------------------------------------------------*/
WhitneyCategoryZoomSettings.ENABLED = true;
/*--------------------------------------------------------------------------*/

/*--------------------------------------------------------------------------*
 * Demonstration Purposes
 *--------------------------------------------------------------------------*/
WhitneyCategoryZoomSettings.PHOTOS_PATH = 'http://www.redhatsocietystore.com/v/vspfiles/photos'
WhitneyCategoryZoomSettings.ADD_TO_CART_URL_TEMPLATE = new Template('http://www.redhatsocietystore.com/ShoppingCart.asp?ProductCode=#{productCode}');
WhitneyCategoryZoomSettings.GET_PHOTOS_URL_TEMPLATE = new Template('/v/whitney/data.asp?productcode=#{productCode}');
WhitneyCategoryZoomSettings.ALLOW_CLICK_ON_VIEW_PORT = false;
Event.observe(window, 'load', function(){				
	zoom = new WhitneyCategoryZoom();	
	zoom.noPhotoFileName = WhitneyCategoryZoomSettings.NO_PHOTO_FILE_NAME;
	zoom.overlayOpacity = WhitneyCategoryZoomSettings.OVERLAY_OPACITY;
	zoom.allowClickOnViewPort = WhitneyCategoryZoomSettings.ALLOW_CLICK_ON_VIEW_PORT;
	zoom.displayZoomOnRight = WhitneyCategoryZoomSettings.DISPLAY_ZOOM_ON_RIGHT;
	zoom.displayZoomOnTop = WhitneyCategoryZoomSettings.DISPLAY_ZOOM_ON_TOP;
	zoom.getPhotosURLTemplate = WhitneyCategoryZoomSettings.GET_PHOTOS_URL_TEMPLATE;	
	zoom.productCode = 'AC2752';
	zoom.photosPath = WhitneyCategoryZoomSettings.PHOTOS_PATH;
	zoom.mainPhotoElement = $('productPhoto');
	zoom.mainPhotoAnchorElement = $('productPhotoAnchor');	
	zoom.load();
	
	//Override the click
	$('productPhotoAnchor').onclick = function() {		
		return false;
	};
});
/*--------------------------------------------------------------------------*/