﻿// JScript File
function pageLoad() {
    ret = WSHome.LoadPhotocator(OnPhotocator, OnTimeOut, OnError);
    ret = WSHome.LoadWebmag(OnWebmag, OnTimeOut, OnError);
    ret = WSHome.LoadWeblog(OnWeblog, OnTimeOut, OnError);
    ret = WSHome.LoadInterview(OnInterview, OnTimeOut, OnError);    
    ret = WSHome.LoadHomePic(OnHomePic, OnTimeOut, OnError);   
    ret = WSHome.LoadPublish(OnPublish, OnTimeOut, OnError);  
    ret = WSHome.LoadWelcome(OnWelcome, OnTimeOut, OnError); 
//    ret = WSHome.LoadNews(OnNews, OnTimeOut, OnError);
    ret = WSHome.LoadGuest(OnGuest, OnTimeOut, OnError);
    ret = WSHome.LoadKashkool(OnKashkool, OnTimeOut, OnError);
    ret = WSHome.LoadNokhodi(OnNokhodi, OnTimeOut, OnError);
    ret = WSHome.LoadThisWeek(OnThisWeek, OnTimeOut, OnError);
    ret = WSHome.LoadColleague(OnColleague, OnTimeOut, OnError);
    ret = WSHome.LoadLibrary(OnLibrary, OnTimeOut, OnError);
    ret = WSHome.LoadAmplifier(OnAmplifier, OnTimeOut, OnError);
    ret = WSHome.LoadVideo(OnVideo, OnTimeOut, OnError);
    
}
function OnPhotocator(result) {
    $get('PhotocatorDiv').innerHTML = result;
}
function OnWebmag(result) {
    $get('WebmagDiv').innerHTML = result;
}
function OnWeblog(result) {
    $get('WeblogDiv').innerHTML = result;
}
function OnInterview(result) {
    $get('InterviewDiv').innerHTML = result;
}
function OnHomePic(result) {
    $get('HomePicDiv').innerHTML = result;
}
function OnPublish(result) {
    $get('PublishDiv').innerHTML = result;
}
function OnWelcome(result) {
    $get('WelcomeDiv').innerHTML = result;
}
//function OnNews(result) {
//    $get('NewsDiv').innerHTML = result;
//}
function OnGuest(result) {
    $get('GuestDiv').innerHTML = result;
}
function OnKashkool(result) {
    $get('KashkoolDiv').innerHTML = result;
}
function OnNokhodi(result) {
    $get('NokhodiDiv').innerHTML = result;
}
function OnThisWeek(result) {
    $get('ThisWeekDiv').innerHTML = result;
}
function OnColleague(result) {
    $get('ColleagueDiv').innerHTML = result;
}
function OnLibrary(result) {
    $get('LibraryDiv').innerHTML = result;
}
function OnAmplifier(result) {
    $get('AmplifierDiv').innerHTML = result;
}
function OnVideo(result) {
    $get('VideosDiv').innerHTML = result;
}
function OnTimeOut(result) {
}

function OnError(result)  {
}

