﻿// JScript File
<!--
   
        $(function() {

            var theWindow = $(window),
			    $bg = $("#bg"),
			    aspectRatio = $bg.width() / $bg.height();

            function resizeBg() {

                if ((theWindow.width() / theWindow.height()) < aspectRatio) {
                    $bg
				    	.removeClass()
				    	.addClass('bgheight');
                } else {
                    $bg
				    	.removeClass()
				    	.addClass('bgwidth');
                }

            }

            theWindow.resize(function() {
                resizeBg();
            }).trigger("resize");

        });




function toggleDiv(id,flagit) {
if (flagit=="1"){
if (document.layers) document.layers[''+id+''].visibility = "show"
else if (document.all) document.all[''+id+''].style.visibility = "visible"
else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "visible"
}
else
if (flagit=="0"){
if (document.layers) document.layers[''+id+''].visibility = "hide"
else if (document.all) document.all[''+id+''].style.visibility = "hidden"
else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "hidden"
}
}
//-->
