// JavaScript Document

function PopUpWindow(url, hWind, nWidth, nHeight, nScroll, nResize) { return (EkTbWebMenuPopUpWindow (url, hWind, nWidth, nHeight, nScroll, nResize));}
function ecmPopUpWindow (url, hWind, nWidth, nHeight, nScroll, nResize) { 
 PopUpWindow(url, hWind, nWidth, nHeight, nScroll, nResize) ; 
 } 


function MM_openBrWindow(theURL,winName,features) { //v2.0  window.open(theURL,winName,features);
  return false; 
  
   
}
function PopLanguage(url) {
	var windowX = (screen.width/2)-(280/2);
	var windowY = (screen.height/2)-(290/2);

	window.open(url, "Language", "left="+windowX+",top="+windowY+",width=520,height=400,top=0,scrollbars=yes,resize=no");

}

function openWin(theURL,winName,features) { 
  window.open(theURL,winName,features);
}






// Original:  Mike Canonigo (mike@canonigo.com)
// Web Site:  http://www.munkeehead.com

// This script and many more are available free online at
// The JavaScript Source!! http://javascript.internet.com

// Begin
NewImg = new Array (
"/ul/images/images/A.jpg",
"/ul/images/images/A32.jpg",
"/ul/images/images/C.jpg",
"/ul/images/images/ter.jpg",
"/ul/images/images/food1.jpg",
"/ul/images/images/food22.jpg",
"/ul/images/images/ban.jpg",
"/ul/images/images/2concourse.jpg",
"/ul/images/images/ban2.jpg",
"/ul/images/images/ballr.jpg",
"/ul/images/images/pre.jpg"
);
var ImgNum = 0;
var ImgLength = NewImg.length - 1;

//Time delay between Slides in milliseconds
var delay = 3000;

var lock = false;
var run;
function chgImg(direction) {
if (document.images) {
ImgNum = ImgNum + direction;
if (ImgNum > ImgLength) {
ImgNum = 0;
}
if (ImgNum < 0) {
ImgNum = ImgLength;
}
document.slideshow.src = NewImg[ImgNum];
   }
}
function auto() {
if (lock == true) {
lock = false;
window.clearInterval(run);
}
else if (lock == false) {
lock = true;
run = setInterval("chgImg(1)", delay);
   }
}






function hidediv(theID) {
	if (document.getElementById) { // DOM3 = IE5, NS6 
		document.getElementById(theID).style.visibility = 'hidden'; 
	} 
} 

function showdiv(theID) { 
	if (document.getElementById) { // DOM3 = IE5, NS6 
		document.getElementById(theID).style.visibility = 'visible'; 
	} 
} 



// IE Update
var ieupdateonload = window.onload;
window.onload = function() {
	if (ieupdateonload) ieupdateonload;
	
	theobjects = document.getElementsByTagName("object"); 
	for (var i = 0; i < theobjects.length; i++) { 
		theobjects[i].outerHTML = theobjects[i].outerHTML; 
	} 
}
