﻿// 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);Prize89
    ret = WSHome.LoadBestStores(OnCompeleteBestStores);    
    
}
function OnCompeleteRecProducts(result) {
    $get('DVMostSaleProducts').innerHTML = result;
}
//Prize 89 Commented
//function OnCompeleteBestProducts(result) {
//    $get('DVBestProducts').innerHTML = result;
//}

function OnCompeleteBestStores(result) {
    $get('DVBestStores').innerHTML = result;
}
function OncompeleteCats(result) {
    $get('DVCats').innerHTML = result;
}
function OnTimeOut(result) {
}

function OnError(result)  {
}

