﻿// JScript File

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
//function showImage(){
// Begin
// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = '../img/200/1.jpg'
theImages[1] = '../img/200/2.jpg'
theImages[2] = '../img/200/3.jpg'
theImages[3] = '../img/200/4.jpg'
theImages[4] = '../img/200/5.jpg'
theImages[5] = '../img/200/6.jpg'
theImages[6] = '../img/200/7.jpg'
theImages[7] = '../img/200/8.jpg'
theImages[8] = '../img/200/9.jpg'
theImages[9] = '../img/200/10.jpg'
theImages[10] = '../img/200/11.jpg'
theImages[11] = '../img/200/12.jpg'
theImages[12] = '../img/200/13.jpg'
theImages[13] = '../img/200/14.jpg'
theImages[14] = '../img/200/15.jpg'
theImages[15] = '../img/200/16.jpg'
theImages[16] = '../img/200/17.jpg'
theImages[17] = '../img/200/18.jpg'
theImages[18] = '../img/200/19.jpg'
theImages[19] = '../img/200/20.jpg'
theImages[20] = '../img/200/21.jpg'
theImages[21] = '../img/200/22.jpg'
theImages[22] = '../img/200/23.jpg'
theImages[23] = '../img/200/24.jpg'
theImages[24] = '../img/200/25.jpg'
theImages[25] = '../img/200/26.jpg'
theImages[26] = '../img/200/27.jpg'
theImages[27] = '../img/200/28.jpg'
theImages[28] = '../img/200/29.jpg'
theImages[29] = '../img/200/30.jpg'

// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}

function showImage(){
var whichImage = Math.round(Math.random()*(p-1));
//alert(theImages[whichImage]);
document.write('<img src="'+theImages[whichImage]+'">');
}

function OpenPopUp(contentURL,windowName,windowWidth,windowHeight) {
var winOptions = 'height=' + windowHeight +'px,width=' + windowWidth +'px,toolbar=0,directories=0,status=0,menubar=0,location=0,titlebar=0,left=580,top=180,resizable=1,scrollbars=1';
newWin=window.open(contentURL,windowName,winOptions);

if (newWin == null){ window.alert('Please disable the popup blocker of your Browser'); }
newWin.focus();
return false;
}


function openPopupCentered(contentURL) {
    var width = 660;
    var height = 600;
    var left = parseInt((screen.availWidth/2) - (width/2));
    var top = parseInt((screen.availHeight/2) - (height/2));
    var windowFeatures = "width=" + width +  ",height=" + height + ",left=" + left + ",resizable=1,scrollbars=1,menubar=1,location=1,toolbar=1,status=0" +  "screenX=" + left + "screenY=" + top;
    var newWin = window.open(contentURL, "subWind", windowFeatures);
    if (newWin == null){ window.alert('Please disable the popup blocker of your Browser'); }
    newWin.focus();
    return false;
}


function printSpecial(strDivId) {

    if (document.getElementById != null) {
        var html = '<HTML>\n<HEAD>\n';

        if (document.getElementsByTagName != null) {
            var headTags = document.getElementsByTagName("head");
            if (headTags.length > 0)
                html += headTags[0].innerHTML;
        }

        html += '\n</HE' + 'AD>\n<BODY>\n';

        var printReadyElem = document.getElementById(strDivId);

        if (printReadyElem != null) {
            html += printReadyElem.innerHTML;
        }
        else {
            alert("Could not find the print div section in the HTML");
            return;
        }

        html += '\n</BO' + 'DY>\n</HT' + 'ML>';

        var printWin = window.open("", "printSpecial");
        printWin.document.open();
        printWin.document.write(html);
        printWin.document.close();
        printWin.print();
        printWin.close();
    }
    else {
        alert("Sorry, the print ready feature is only available in modern browsers.");
    }
}