﻿  arrAJAXQS_Coll = new Array();
  arrAJAXQS_PSku = new Array();
  arrAJAXQS_VSku = new Array();
  arrAJAXQS_PNm  = new Array();
  arrAJAXQS_VNm  = new Array();
  arrAJAXQS_Pri  = new Array();

  function InitializeAJAXProducts(strType) {
    for (var x=0;x<arrAJAXQS_PSku.length;x++){
      BuildAJAXElement_Product(strType, arrAJAXQS_PSku[x], arrAJAXQS_VSku[x], arrAJAXQS_PNm[x], arrAJAXQS_VNm[x], arrAJAXQS_Pri[x]);
    }
  }

  function InitializeAJAXCollections(strType) {
    for (var x=0;x<arrAJAXQS_PSku.length;x++){
      BuildAJAXElement_Collection(strType, arrAJAXQS_Coll[x], arrAJAXQS_PSku[x], arrAJAXQS_VSku[x], arrAJAXQS_PNm[x], arrAJAXQS_VNm[x], arrAJAXQS_Pri[x]);
    }
  }

  function BuildAJAXElement_Product(strType, strPSKU, strVSKU, strPName, strVName, strPrice) {
    document.write('<div id="' + strVSKU + '_' + strType + 'ShoppingCartBubbleProduct_AddedDisplay_DIV"  style="display:none; visibility:hidden;">\n');
    document.write(' <div style="width:120px;margin-top:30px;" class="float_L">\n');
    document.write('  <table border="0" cellpadding="0" cellspacing="0">\n');
    document.write('   <tr><td style="padding-bottom:12px;">\n');
    document.write('    <img src="/img/product/65x70/' + strPSKU + '.jpg" class="" />\n');
    document.write('   </td></tr>\n');
    document.write('   <tr><td  style="padding-bottom:8px;" class="AMedGREY11_BTT LH_12">\n');
    document.write('    <span id="' + strVSKU + '_ShoppingCartBubble_ProductName">' + strPName + '</span>\n');
    document.write('   </td></tr>\n');
    document.write('   <tr><td class="AMedGREY12_B padding10_R">\n');
    document.write('    <span id="' + strVSKU + '_ShoppingCartBubble_VariantName">' + strVName + '</span>\n');
    document.write('    <br />Qty <span id="' + strVSKU + '_ShoppingCartBubble_ItemQuantity" >1</span> - <span id="' + strVSKU + '_ShoppingCartBubble_ItemPrice">' + strPrice + '</span>\n');
    document.write('   </td></tr>\n');
    document.write('  </table>\n');
    document.write(' </div>\n');
    document.write('</div>\n');
    if (strType == 'Multi') {
      document.write('<div id="' + strVSKU + '_line_divider" style="width:1px; height:165px; background-color:#575757; display:none; visibility:hidden; margin-top:40px; margin-right: 10px" class="float_L"></div>\n');
    }
    if (strType == 'Single') {
      shoppingcartbubble_variants_list[shoppingcartbubble_varItemIndex++]= strVSKU;
    }
  }

  function BuildAJAXElement_Collection(strType, strCollection, strPSKU, strVSKU, strPName, strVName, strPrice) {
    document.write('<div id="' + strVSKU + '_' + strType + 'ShoppingCartBubbleProduct_CollectionDisplay_DIV"  style="display:none; visibility:hidden;">\n');
    document.write(' <div style="width:115px;margin-top:19px;" class="float_L">\n');
    document.write('  <table border="0" cellpadding="0" cellspacing="0">\n');
    document.write('   <tr><td style="padding-bottom:12px;">\n');
    document.write('    <img src="/img/product/65x70/' + strPSKU + '.jpg" class="" />\n');
    document.write('   </td></tr>\n');
    document.write('   <tr><td style="padding-bottom:8px;" class="AMedGREY11_BTT LH_12">\n');
    document.write('    ' + strPName + '\n');
    document.write('   </td></tr>\n');
    document.write('   <tr><td class="AMedGREY12_B padding30_R">\n');
    document.write('    ' + strVName + '<br />Qty 1 - ' + strPrice + '\n');
    document.write('   </td></tr>\n');
    document.write('   <tr><td style="padding-top:8px;">\n');
    document.write('    <div><a href="#" style="cursor:pointer" onclick="PSCInitializeOnPageLoad();PSCAddSelectedProductToBagFromCollection(\'' + strVSKU + '\', 1);"><img src="/IMG/BTN_AddToBg.gif" alt="Add To Bag" border="0" /></a></div>\n');
    document.write('   </td></tr>\n');
    document.write('  </table>\n');
    document.write(' </div>\n');
    document.write(' <div id="' + strVSKU + '_plus_seperator" style="display:none; visibility:hidden; margin-right:20px; margin-top:40px; margin-left:0px;color:White;" class="float_L AMedGREY20_B">+</div>\n');
    document.write('</div>\n');
  }
  
  function BuildStylingProductInfo() {
  
  }
