﻿// for home page :) 
// in order to display parts incrementally faster
// I should change the name of some divs and also 
//remove the sleep before upload. (AliHa: 8,Ordibehesht) > Done! 10 Ordibehesht.
function pageLoad() {
    ret = WSHome.LoadBestProducts(OnCompeleteBestProducts, OnTimeOut, OnError);
    ret = WSHome.LoadBestStores(OnCompeleteBestStores);
    //ret = WSHome.LoadRecomendedProducts(OnCompeleteRecProducts);
    //ret = WSHome.LoadMenu(OnCompeleteMenu);
    
}
function OnCompeleteRecProducts(result) {
    $get('DVMostSaleProducts').innerHTML = result;
}

function OnCompeleteBestProducts(result) {
    $get('DVBestProducts').innerHTML = result;
}

function OnCompeleteBestStores(result) {
    $get('DVBestStores').innerHTML = result;
}

function OnTimeOut(result) {
}

function OnError(result)  {
}
