/*--------------------------------------------------------------------------*
 * 
 * Volusion(C) PowerReviews(C) Integration (Dakota)
 * 
 * Version 1.0.6
 * 
 * Copyright (C) 2009 Brand Labs LLC
 * 
 *--------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------*
 * PowerReviews Configuration
 *--------------------------------------------------------------------------*/
DakotaSettings.MERCHANT_ID = 12144;
DakotaSettings.OVERRIDE_STYLE_SHEET_HTML = '<link type="text/css" rel="stylesheet" href="http://www.lightingbylux.com/v/dakota/css/powerreviews_express.css"/>';
/*--------------------------------------------------------------------------*/


/*--------------------------------------------------------------------------*
 * Custom
 *--------------------------------------------------------------------------*/
var WithinProductPriceBoxDocument = Class.create(BelowProductPhotoDocument, {
	addElementToFixedLocation: function($super, element) {
		var container = $$('table.colors_pricebox tr td table tr td table tr td').first();		
		
		if(container == undefined || container == null) {
			$super(element);		
			return;
		}
		
		//Add element after container
		container.insert(element);
	}
});
/*--------------------------------------------------------------------------*/


/*--------------------------------------------------------------------------*
 * PowerReviews Configuration
 *--------------------------------------------------------------------------*/
DakotaSettings.ENABLED = true;

DakotaSettings.REVIEW_SNIPPET_DOCUMENT = new WithinProductPriceBoxDocument('dakota_review_snippet');
DakotaSettings.REVIEW_DOCUMENT = new BelowProductDescriptionDocument('dakota_review');
DakotaSettings.CATEGORY_REVIEW_SNIPPET_DOCUMENT = BelowAnonymousLocationDocument;
DakotaSettings.CATEGORY_REVIEW_SNIPPET_CSS_CLASS = 'dakota_review_snippet_category';
DakotaSettings.CATEGORY_MINIMUM_REVIEWS_TO_DISPLAY = 1;
/*--------------------------------------------------------------------------*/


/*--------------------------------------------------------------------------*
 * Start up the module
 *--------------------------------------------------------------------------*/
try {
	Dakota.load();
}
catch(e) {/*No-op*/}
/*--------------------------------------------------------------------------*/