
// -- Sites's variable required statements -- //

var selectVersion = "0";
var mainSite = "2"
var midi = "anniesong.mid";
var midiname = "Annie's Song";
var playnum = "1";
var imageCache = new Array();
var ie4 = (navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) >= 4);
var ns4 = (navigator.appName == "Netscape" && (parseInt(navigator.appVersion) >= 4 && parseInt(navigator.appVersion) < 5));
var ns6 = (navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 5);           
var dbrowser = (ie4 || ns4 || ns6);
var message="These Images and Informations belongs to Xue Ying. \n"+"     Thank You! \n"+"       Copyright: Xue Ying, 2000";
var idcounter="0";

// -- Completed variable statements --// 




// -- Browser detection and long download message -- //

if (dbrowser) {
window.status=parent.document.title;
}
else {
alert("This site is best view with \n"+"Microsoft Internet Explorer 4.0 or Navigator 4.0 \n"+"And Above, with Resolution of \n"+"1024 X 768 with at least 16 bit color");
popup = window.open("dlbrowser.htm","dlbrowser","height=130,width=600,toolbar=0,directories=0,menubar=0,status=0,resizable=0,location=0,scrollbars=0,copyhistory=0");
parent.location="http://homex.coolconnect.com"
 }

// -- Completed detection of Browser -- //



window.moveTo(0,0);
if (ie4) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (ns4 || ns6) {
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}




// -- Begin to Preload Images Here -- //

function cacheImages() {
 if (document.images) {
  for (var p = 0; p < cacheImages.arguments.length; p++) {
    cI = cacheImages.arguments[p];
    imageCache[p] = new Image();
    imageCache[p].src = 'common/' + cI + '.gif';
    }
  }
}


 if (document.images && dbrowser) {
  cacheImages('tri','tridown','trileft','spacer','led-red',
              'next','next1','previous','previous1');
       }

// -- Completed Preloading of Images -- //



function myemail() {
window.location.href = "mailto:xue19@hotmail.com";
}

function feedback() {
window.location.href = "mailto:xue19@hotmail.com?subject=Feedback and comments on Xue Ying's Home";
}

function signGuest() {
popup = window.open("http://books.dreambook.com/esthersam/guestbook.sign.html");
}

function viewGuest() {
popup = window.open("http://books.dreambook.com/esthersam/guestbook.html");
}

// -- Site's Definetions Ends -- //

