function flashCheck() {



	if (navigator.plugins){

		if (navigator.plugins["Shockwave Flash"]){

			installed = parseInt(navigator.plugins["Shockwave Flash"].description.charAt(navigator.plugins["Shockwave Flash"].description.indexOf(".") - 1));

		}

	}

    

	if (installed < needed) {



        document.location = errorPage;



    }

    

    //alert("You have Flash Player " + installed + " installed on your computer");

}



function getSearchParameter(ParameterName) {



    ParameterValue = 0;



    QuerySearchString = new String (unescape(location.search));

    

    SearchParametersString = QuerySearchString.slice(1,QuerySearchString.length);

    SearchParametersArray = SearchParametersString.split("&");

    

    for (var Idx = 0; Idx < SearchParametersArray.length; Idx++) {

        SearchParameterPair = new String (SearchParametersArray[Idx]);

        SearchParameterArray = SearchParameterPair.split("=");

        

        if (SearchParameterArray[0] == ParameterName) {

            ParameterValue = SearchParameterArray[1];

            break;

        }

    }

    

    return ParameterValue;

}



var errorPage = "noflash/noflash.html";



var highVersion = 9;

var needed = 5;

var installed = 0;



var IE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;

var win = (navigator.appVersion.indexOf("Windows") != -1) ? true : false;



if(IE && win) {

    document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');

    document.write('on error resume next \n');

    document.write('For i = highVersion To 1 Step -1 \n');

    document.write('  x = IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & i)) \n');

    document.write('  If x Then \n');

    document.write('    installed = i \n');

    document.write('    Exit For \n');

    document.write('  End If \n');

    document.write('Next \n');

    document.write('</SCR' + 'IPT\> \n');

}



/*

var ScreenHeight = screen.availHeight;

var ScreenWidth = screen.availWidth;



if (IE) {

    var CurrentHeight = 553;

    var CurrentWidth = 784;

} else {

    var CurrentHeight = window.outerHeight;

    var CurrentWidth = window.outerWidth;

}

var NewY = ScreenHeight - CurrentHeight;

var NewX = ScreenWidth - CurrentWidth;



window.moveTo(NewX,NewY);

*/
