// This file was automatically generated from shop.soy.
// Please don't edit this file by hand.

if (typeof gameslave == 'undefined') { var gameslave = {}; }
if (typeof gameslave.views == 'undefined') { gameslave.views = {}; }


gameslave.views.about = function(opt_data, opt_sb) {
  var output = opt_sb || new soy.StringBuilder();
  output.append('\t<h1>About Us</h1><p>GameSlave.com is an experienced company that is here to provide the consumer with integrity, speed of service, and excellent pricing. From our state of the art offices in downtown Atlanta, GA we provide a 100% secure delivery network for our buyers. Our team made up of trained professionals who spend months learning to provide you with superb service. Several game developers are also part of our team which makes us uniquely qualified to serve your needs in the most efficient way possible. We absolutely guarantee you will be happy with any order you place with us!</p>');
  if (!opt_sb) return output.toString();
};


gameslave.views.faq = function(opt_data, opt_sb) {
  var output = opt_sb || new soy.StringBuilder();
  output.append('\t<h1>Frequently Asked Questions</h1><h2>How fast can I receive the item I purchase from GameSlave.com?</h2><p>We stand by our delivery time of 20 minutes. So, at maximum you should have the item you ordered delivered before 20 minutes.</p><h2>How do I receive the game currency I purchased from GameSlave.com?</h2><p>We will meet your character in The Guild Lobby nearly immediately after we receive your payment.</p>');
  if (!opt_sb) return output.toString();
};


gameslave.views.contact = function(opt_data, opt_sb) {
  var output = opt_sb || new soy.StringBuilder();
  output.append('\t<h1>Contact Us</h1><p>Do not hesitate to contact us if you encounter any difficulties during your order or if you wish to ask us a question! Our Live Chat is the best method to reach us and it can be found on the right side of this page. Regardless of the question, we?ll be able to help you immediately. We are committed to your satisfaction.</p>');
  if (!opt_sb) return output.toString();
};


gameslave.views.done = function(opt_data, opt_sb) {
  var output = opt_sb || new soy.StringBuilder();
  output.append('\t<h1>Order Confirmation</h1><p>Thank you!  Your order has been created and your payment received.  Your delivery will take place shortly.  Please don\'t hesitate to contact us via Live Chat should you have any questions regarding your order.</p>');
  if (!opt_sb) return output.toString();
};


gameslave.views.market = function(opt_data, opt_sb) {
  var output = opt_sb || new soy.StringBuilder();
  output.append('\t<h1>', soy.$$escapeHtml(opt_data.market), '</h1>');
  var marketList14 = opt_data.markets;
  var marketListLen14 = marketList14.length;
  if (marketListLen14 > 0) {
    for (var marketIndex14 = 0; marketIndex14 < marketListLen14; marketIndex14++) {
      var marketData14 = marketList14[marketIndex14];
      output.append((marketIndex14 == 0) ? '<h3>To get started, select a market from the list below.</h3><ul class="markets">' : '', '<li><a href="#/shop/browse:', soy.$$escapeHtml(marketData14.Id), '">', soy.$$escapeHtml(marketData14.Name), '</a></li>', (marketIndex14 == marketListLen14 - 1) ? '</ul>' : '');
    }
  } else {
    var productList27 = opt_data.products;
    var productListLen27 = productList27.length;
    if (productListLen27 > 0) {
      for (var productIndex27 = 0; productIndex27 < productListLen27; productIndex27++) {
        var productData27 = productList27[productIndex27];
        output.append((productIndex27 == 0) ? '<h3>Select a product from the list below, and click the Buy Now button for an instant check out!</h3><ul class="products">' : '', '<li><span class="title">', soy.$$escapeHtml(productData27.title), '</span><span class="price">', soy.$$escapeHtml(productData27.price), '</span><img class="buy" product="', soy.$$escapeHtml(productData27.id), '" src="/asset/img/paypal.gif" /></li>', (productIndex27 == productListLen27 - 1) ? '</ul>' : '');
      }
    } else {
      output.append('<h3>We are currently out of stock here; please try back later.</h3>');
    }
  }
  if (!opt_sb) return output.toString();
};


gameslave.views.checkout = function(opt_data, opt_sb) {
  var output = opt_sb || new soy.StringBuilder();
  output.append('\t<div id="checkout"><h3>Quick Checkout</h3><label for="character">Character\'s Name:</label><input type="text" id="character" maxlength="50" /><div><button id="order">Place Order</button><button id="cancel">Cancel</button></div></div>');
  if (!opt_sb) return output.toString();
};

