var ShSettings={
  "shvDB":"scrapbook",
  "storeURL":"store.scrapbook.com",
  "yahooID":"scrapbook-dot-com",
  "cartURL":"http://order.store.yahoo.net/cgi-bin/wg-order?scrapbook-dot-com",
  "ywa_tid":"10001674609528",
  "detailScript":"http://store.scrapbook.com/shoptivate_view.php",
  "clogoLink":"javascript:endSchMode()",
  "wishURL":"http://www.scrapbook.com/wishlist/",
  "allowSpellCorr":true,
  "allowFilters":true,
  "autoShowFilters":true,
  "permFilter":"Rating",
  "sortBy":[['Bestselling',-1],['Newest',9],['Rating',1],['Price',0],['Alphabetical',10]],
  "dontCenterInput":true,
  "wndwiden":140,
  "bottomElt":null,
  "callback":"_2",
  "lbItemHeight":215,
  "lbItemWidth":200,
  "lbItemPadding":15,
  "lbRowCount":6 };
ShSettings.helpdiv = function() {
  return '<div id="helptxt"><h1>You are searching the store</h1>'+
          '<a href="http://www.scrapbook.com/gallery/search/0/1.html">Search Gallery Images</a>'+
          '<a href="http://www.scrapbook.com/videos/?m=search">Search Videos</a>'+
          '<a href="http://www.scrapbook.com/articles.php">Search Articles</a>'+
          '<a href="http://www.scrapbook.com/forums/search.php">Search Forums</a>'+
         '</div>';
};
function quickATC(id) {
	var f = document.getElementById('quick_order');
	if (f && f.vwitem0 && window.quicksubmit) {
		f.vwitem0.value = id;
		quicksubmit(f, shvHandler);
	}
	return false;
}
ShSettings.customPrice = function(item, o) {
    var button = o('a', {'href':'#', 'onclick':function(e) {return quickATC(item['id']);}},
                   o('img.shvvsbtn', {"src":"http://crfte.com/sb_images/tiny-addtocart.gif"}));
    if (item['rprice']!=item['sprice']) {
      return o('div', o('span.shvoprice', '$'+item['rprice']), ' - ', o('span.shvsprice', 'Sale: ', o('b', '$'+item['sprice'])), ' ', button);
    } else {
      return o('div.shvsprice', o('b', '$'+item['sprice']), ' ', button);
    }
};
ShSettings.postProcessProd = function() {
	if (window.quicklookSetup) quicklookSetup();
};
document.write('<link rel="stylesheet" href="http://shoptivate.com/shared/shoptivate-d3.css" />');
document.write('<link rel="stylesheet" href="http://crfte.com/sb_css/shoptivateV2.css" />');
document.write('<div id="shvshade"></div>');
document.write('<div id="shscont" style="display:none"><input id="shstate" style="display:none"/></div>');
document.write('<div id="shcontent"></div>');
document.write('<script src="http://shoptivate.com/shared/shv-d-code16.js" ></script>');
