<!--

// wdg function library
function id(id) {return document.getElementById(id);}
function addClass(t,c){var p=new RegExp("(^| )"+c+"( |$)");if(!p.test(t.className)){if(t.className =="")t.className=c;else t.className+=" "+c;}return true;}
function removeClass(t,c){var r=t.className;var p=new RegExp("(^| )"+c+"( |$)");r=r.replace(p,"$1");r=r.replace(/ $/,"");t.className=r;return true;}
function hasClass(t,c){var p=new RegExp("(^| )"+c+"( |$)");return p.test(t.className);}
function ieVersion(){ieVersion=-1;if(navigator.appVersion.indexOf("MSIE")!=-1){var tempNavigatorString=navigator.appVersion.split("MSIE");ieVersion=parseFloat(tempNavigatorString[1]);}	return ieVersion;}

	/* START: -- Macromedia Functions -----------------------------------------------------------*/
	function MM_openBrWindow(theURL,winName,features) 
	{ //v2.0
	  window.open(theURL,winName,features);
	}
	
	function MM_preloadImages() 
	{ //v3.0
		var d=document; 
		if (d.images)
		{ 
			if (!d.MM_p) 
				d.MM_p=new Array();
				
		 	var i
			var j = d.MM_p.length
			var a = MM_preloadImages.arguments; 
			for (i=0; i < a.length; i++)
			{
		 		if ( a[i].indexOf("#") != 0)
				{ 
					d.MM_p[j] = new Image; 
					d.MM_p[j++].src = a[i];
				}
			}
		}
	}
	
	function MM_findObj (n, d) 
	{ //v4.01
	  var p, i, x;  
	  
	  if (!d) 
	  	d = document; 
		if ((p = n.indexOf("?")) > 0 && parent.frames.length) 
		{
			d = parent.frames[n.substring(p + 1)].document; 
			n = n.substring(0, p);
		}
	  	if (!(x = d[n]) && d.all) 
			x = d.all[n]; 
			
		for (i = 0; !x && i < d.forms.length; i++) 
			x = d.forms[i][n];
			
	  	for (i = 0; !x && d.layers && i < d.layers.length; i++) 
			x = MM_findObj(n, d.layers[i].document);
			
	  	if (!x && d.getElementById) 
			x = d.getElementById(n); 
			
		return x;
	}
	
	function MM_swapImage() 
	{ //v3.0
		var i
		var j = 0
		var x
		var a = MM_swapImage.arguments; 
		document.MM_sr = new Array; 
		
		for (i = 0; i < (a.length - 2); i += 3)
		{
			if ((x = MM_findObj(a[i])) != null)
			{
				document.MM_sr[j++] = x; 
				if (!x.oSrc) 
					x.oSrc = x.src; 
				
				x.src = a[i + 2];
			}
		}		
	}
	
	function swapImage(id, src)
	{
		document.getElementById(id).childNodes[0].src = src;
		
		//document.getElementById(id).innerHTML = src;
		
		return false;
	}		
	/* END: -- Macromedia Functions -------------------------------------------------------------*/

	var win= null;
	
	function NewWindow(mypage,myname,w,h,scroll)
	{
		var winl = (screen.width-w)/2;
		var wint = (screen.height-h)/2;
		var settings ='height='+h+',';
		settings +='width='+w+',';
		settings +='top='+wint+',';
		settings +='left='+winl+',';
		settings +='scrollbars='+scroll+',';
		settings +='resizable=yes';
		win=window.open(mypage,myname,settings);
		if(parseInt(navigator.appVersion) >= 4)
		{
			win.window.focus();
		}
    
    if (pagePath) {
      pageTracker._trackPageview(pagePath + '/' + myname);
    }
	}

	function getStyle(el, style) 
	{
   	if (!document.getElementById) 
		{
			return;
		}

     	var value = el.style[toCamelCase(style)];
    
	 	if (!value)
		{
      	if(document.defaultView)
			{
         	value = document.defaultView.getComputedStyle(el, "").getPropertyValue(style);
			}
        	else if(el.currentStyle)
			{
				value = el.currentStyle[toCamelCase(style)];
			}
		}

		return value;
	}

	function setStyle(objId, style, value) 
	{
		document.getElementById(objId).style[style] = value;
	}

	function toCamelCase(sInput) 
	{
		var oStringList = sInput.split('-');

    	if (oStringList.length == 1)   
		{
	      return oStringList[0];
		}
	   
		var ret = sInput.indexOf("-") == 0 ? oStringList[0].charAt(0).toUpperCase() + oStringList[0].substring(1) : oStringList[0];

    	for (var i = 1, len = oStringList.length; i < len; i++)
		{
        var s = oStringList[i];
        ret += s.charAt(0).toUpperCase() + s.substring(1)
    	}

    	return ret;
	}

	function increaseWidth (addToWidth, whichDiv)
	{
		 var theDiv = document.getElementById(whichDiv);
		 var currWidth = parseInt(getStyle(theDiv, "width"));
		 var newWidth = currWidth + parseInt(addToWidth);
	
		 setStyle(whichDiv, "width", newWidth + "px");
	}	
	
	function getBrowserSize(dim) 
	{
		var myWidth = 0, myHeight = 0;
		if( typeof( window.innerWidth ) == 'number' ) 
		{
			//Non-IE
			myWidth = window.innerWidth;
			myHeight = window.innerHeight;
		} 
		else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) 
		{
			//IE 6+ in 'standards compliant mode'
			myWidth = document.documentElement.clientWidth;
			myHeight = document.documentElement.clientHeight;
		} 
		else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) 
		{
			//IE 4 compatible
			myWidth = document.body.clientWidth;
			myHeight = document.body.clientHeight;
		}
		
		if (dim == "width")
			return myWidth;
		else
			return myHeight	
	}	
	
	
	
	/* START: -- Custom Function: Image Changer -------------------------------------------------*/	
	
	/* 
	
	Code to control + - controls on venue info pages not currently active.
	
	*/

	var currentImage = 1;
	
	function nextImage()
	{
		var display = document.getElementById("right");
		
		if (currentImage == 1)
		{
			//MM_swapImage("big", '', MM_findObj("thumb2").src,1)
			swapImage("image", document.getElementById("thb2").childNodes[0].src)
			currentImage = 2;
			display.innerHTML = "2 / 3";
			
		}
		else if (currentImage == 2)
		{
			//MM_swapImage("big", '', MM_findObj("thumb3").src,1)
			swapImage("image", document.getElementById("thb3").childNodes[0].src)
			currentImage = 3;
			display.innerHTML = "3 / 3";
		}
		else 
		{
			//MM_swapImage("big", '', MM_findObj("thumb1").src,1)
			swapImage("image", document.getElementById("thb1").childNodes[0].src)
			currentImage = 1;
			display.innerHTML = "1 / 3";
		}	
	}
	
	function prevImage()
	{
		var display = document.getElementById("right");
		
		if (currentImage == 1)
		{
			//MM_swapImage("big", '', MM_findObj("thumb3").src,1)
			swapImage("image" , document.getElementById("thb3").childNodes[0].src)		
			currentImage = 3;
			display.innerHTML = "3 / 3";
		}
		else if (currentImage == 2)
		{
			//MM_swapImage("big", '', MM_findObj("thumb1").src,1)
			swapImage("image", document.getElementById("thb1").childNodes[0].src)
			currentImage = 1;
			display.innerHTML = "1 / 3";
		}
		else 
		{
			//MM_swapImage("big", '', MM_findObj("thumb2").src,1)		
			swapImage("image", document.getElementById("thb2").childNodes[0].src)		
			currentImage = 2;
			display.innerHTML = "2 / 3";
		}
	}	
	
	/* END: -- Custom Function: Image Changer ---------------------------------------------------*/	
  
/* allow mutliple onload functions added dynamically without worrying about what else has been added. src: http://www.webreference.com/programming/javascript/onloads/ */
	function addLoadEvent(func) { 
	  var oldonload = window.onload; 
	  if (typeof window.onload != 'function') { 
	    window.onload = func; 
	  } else { 
	    window.onload = function() { 
	      if (oldonload) { 
	        oldonload(); 
	      } 
	      func(); 
	    } 
	  } 
	}
  
/* function for dynamic hiding and showing of an element based on its id */
function showOrHide(id) {
  var ele = document.getElementById(id);
  if (ele != undefined) {
    ele.style.display = (ele.style.display == 'none') ? 'block' : 'none';
  }
}
	
	
//-->