/*--------------------------------------------------------------------------*
 * 
 * Volusion(C) PowerReviews(C) Integration (Power Reviews)
 * 
/*--------------------------------------------------------------------------*
 * PowerReviews Configuration
 *--------------------------------------------------------------------------*/
PreviewsSettings.MERCHANT_ID = 14088;
PreviewsSettings.OVERRIDE_STYLE_SHEET_HTML = '<link type="text/css" rel="stylesheet" href="http://www.kidssocks.com/v/previews/css/powerreviews_express.css"/>';
/*--------------------------------------------------------------------------*/


/*--------------------------------------------------------------------------*
 * PowerReviews Configuration
 *--------------------------------------------------------------------------*/
PreviewsSettings.ENABLED = true;

PreviewsSettings.REVIEW_SNIPPET_DOCUMENT = new BelowProductPhotoDocument('previews_review_snippet');
PreviewsSettings.REVIEW_DOCUMENT = new BelowProductDescriptionDocument('previews_review');
PreviewsSettings.CATEGORY_REVIEW_SNIPPET_DOCUMENT = BelowAnonymousLocationDocument;
PreviewsSettings.CATEGORY_REVIEW_SNIPPET_CSS_CLASS = 'previews_review_snippet_category';
PreviewsSettings.CATEGORY_MINIMUM_REVIEWS_TO_DISPLAY = 1;
/*--------------------------------------------------------------------------*/

/*--------------------------------------------------------------------------*
 * Custom Product Detail Configuration
 *--------------------------------------------------------------------------*/
//var BelowProductPhotoAndButtonDocument = Class.create(FixedLocationDocument, {
//	IMAGE_ELEMENT_ID: 'product_photo',
//	ANCHOR_ELEMENT_ID: 'product_photo_zoom_url',
//	
//	addElementToFixedLocation: function(element) {
//		var container = $(this.ANCHOR_ELEMENT_ID);
//		
//		//Make sure something is available
//		if(container == null) {
//			container = $(this.IMAGE_ELEMENT_ID);
//		}
//		//If still do not have a container, exit
//		if(container == null) {
//			return;	
//		}		
//		
//		//Go to parent
//		container = container.up();
//		//Nothing exit
//		if(container == null) {
//			return;
//		}
//
//		//Add element after container
//		container.insert(element);
//	}
//});
//PreviewsSettings.REVIEW_SNIPPET_DOCUMENT = new BelowProductPhotoAndButtonDocument('Previews_review_snippet');


/*--------------------------------------------------------------------------*
 * Start up the module
 *--------------------------------------------------------------------------*/
try {
	Previews.load();
}
catch(e) {/*No-op*/}
/*--------------------------------------------------------------------------*/
