﻿
// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 3000;
// Duration of crossfade (seconds)
var crossFadeDuration = 10;
// Specify the image files
var Pic = new Array();
// to add more images, just continue
// the pattern, adding to the array below

Pic[0] = 'Images/arcadi_raw-house-01.jpg';
Pic[1] = 'Images/photo_serve.jpg';
Pic[2] = 'Images/slide2.jpg';
Pic[3] = 'Images/pragati_heights.gif';
Pic[4] = 'Images/674353_20090112521_large.jpg'
// do not edit anything below this line
var t;
var j = 0;
var p = Pic.length;
var preLoad = new Array();
for (i = 0; i < p; i++) {
preLoad[i] = new Image();
preLoad[i].src = Pic[i];
}
function runSlideShow() {
    if (document.all) 
    {
    document.images.SlideShow.style.filter="blendTrans(duration=2)";
    document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
    document.images.SlideShow.filters.blendTrans.Apply();
    }
    document.images.SlideShow.src = preLoad[j].src;
    if (document.all) {
    document.images.SlideShow.filters.blendTrans.Play();
    }
    j = j + 1;
    if (j > (p - 1)) j = 0;
    t = setTimeout('runSlideShow()', slideShowSpeed);
}
var xmlHttp;
function GetXmlHttpObject() {

    var xmlHttp = null;
    try {
        // Firefox, Opera 8.0+, Safari
        xmlHttp = new XMLHttpRequest();
    }
    catch (e) {
        // Internet Explorer
        try {
            xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
        }
        catch (e) {
            xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
        }
    }
    return xmlHttp;
}
function xmlhttpPost(url) 
{ 
    xmlHttp = GetXmlHttpObject()
    if (xmlHttp == null) {
        alert("Your browser does not support AJAX!");
        return;
    }

    if (document.all) {
        xmlHttp.onreadystatechange = stateChanged;
    }
    else {
        xmlHttp.onload = stateChanged;
        xmlHttp.onerror = stateChanged;
    }
    xmlHttp.open("GET", url, false);
    xmlHttp.send(null);

}
function stateChanged() 
{
    if (xmlHttp.readyState == 4 || xmlHttp.readyState == "complete") {
        document.getElementById("ctl00_lblResults").innerHTML = xmlHttp.responseText;
    }
}
function Trim(objValue) {
    // Trims the blank space from the start and end of string

    var lRegExp = /^\s*/;
    var rRegExp = /\s*$/;
    objValue = objValue.replace(lRegExp, ""); //Perform LTRim
    objValue = objValue.replace(rRegExp, ""); //perform RTrim
    return objValue;
}

