		$(document).ready(function(){
		
			var freshBuild = '0';
			var curSection = '00';
			
			if(freshBuild != '1') {
				loadXMLFromFile();
				freshBuild = '1';
			}

			// Hide DIV			
			$("div[id=header-intro]").hide();
			$("div[id=intro]").hide();
			$("div[id=intro-btn]").hide();
			$("div[class=section_layout]").hide();
			$("div[id$=items]").hide();
			$("div[id$=section_]").hide();
			$("div[id=header]").hide();
			$("div[id=quick]").hide();
			$("div[id=toc]").hide();
			
			// Animate Intro
			$("div[id=header-intro]").show('fold', 1200);
			$("div[id=intro]").delay(2000).show('slide', 1200);
			$("div[id=intro-btn]").delay(3200).show('slide', 1200);
			
			$("#intro-btn-01").hover(btn_enter_hover_on, btn_enter_hover_off);
			$("#intro-btn-02").hover(btn_enter_hover_on, btn_enter_hover_off);
			$("#intro-btn-03").hover(btn_enter_hover_on, btn_enter_hover_off);
			
			$('#intro-btn-01').live('click', function() {
				if(freshBuild = '1'){
					$("div[id=header-intro]").hide('fold', 600);
					$("div[id=header]").delay(600).show('fold', 1000);
					$("div[id=intro-btn]").hide('slide', 600);
					$("div[id=intro]").delay(800).hide('drop', 600);
					$("div[id=quick]").delay(1200).show('slide', 750);
					$("div[id=toc]").delay(1800).show('slide', 750);
					curSection = '01';
					$("div[id$=items]").delay(2400).animate({height:"310px"}, 0).show('slide', 750);
					$("div[id$=section_01_title]").delay(2400).show();
					$("div[id$=section_01]").delay(2400).show();
					
				}
			});
			
			// CUSTOMIZE PANEL HEIGHTS
			
			$('#btn_items_01').live('click', function() {
				if(curSection != '01'){
					if(curSection != '00') { $("div[id$=items]").hide('slide', 300).delay(500); $("div[id^=section_]:not(div[id^=01])").hide();	}
					curSection = '01';
					$("div[id$=items]").animate({height:"310px"}, 0).show('slide', 750);
					$("div[id$=section_01_title]").delay(500).show();
					$("div[id$=section_01]").delay(500).show();
				}
			});
			
			$('#btn_items_02').live('click', function() {
				if(curSection != '02'){
					if(curSection != '00') { $("div[id$=items]").hide('slide', 300).delay(500); $("div[id^=section_]:not(div[id^=02])").hide();	}
					curSection = '02';
					$("div[id$=items]").animate({height:"215px"}, 0).show('slide', 750);
					$("div[id$=section_02_title]").delay(500).show();
					$("div[id$=section_02]").delay(500).show();
				}
			});
			
			$('#btn_items_03').live('click', function() {
				if(curSection != '03'){
					if(curSection != '00') { $("div[id$=items]").hide('slide', 300).delay(500); $("div[id^=section_]:not(div[id^=03])").hide();	}
					curSection = '03';
					$("div[id$=items]").animate({height:"150px"}, 0).show('slide', 750);
					$("div[id$=section_03_title]").delay(500).show();
					$("div[id$=section_03]").delay(500).show();
				}
			});
			
			$('#btn_items_04').live('click', function() {
				if(curSection != '04'){
					if(curSection != '00') { $("div[id$=items]").hide('slide', 300).delay(500); $("div[id^=section_]:not(div[id^=04])").hide();	}
					curSection = '04';
					$("div[id$=items]").animate({height:"340px"}, 0).show('slide', 750);
					$("div[id$=section_04_title]").delay(500).show();
					$("div[id$=section_04]").delay(500).show();
				}
			});
			
			$('#btn_items_05').live('click', function() {
				if(curSection != '05'){
					if(curSection != '00') { $("div[id$=items]").hide('slide', 300).delay(500); $("div[id^=section_]:not(div[id^=05])").hide();	}
					curSection = '05';
					$("div[id$=items]").animate({height:"530px"}, 0).show('slide', 750);
					$("div[id$=section_05_title]").delay(500).show();
					$("div[id$=section_05]").delay(500).show();
				}
			});
			
			$('#btn_items_06').live('click', function() {
				if(curSection != '06'){
					if(curSection != '00') { $("div[id$=items]").hide('slide', 300).delay(500); $("div[id^=section_]:not(div[id^=06])").hide();	}
					curSection = '06';
					$("div[id$=items]").animate({height:"275px"}, 0).show('slide', 750);
					$("div[id$=section_06_title]").delay(500).show();
					$("div[id$=section_06]").delay(500).show();
				}
			});
			
			$('#btn_items_07').live('click', function() {
				if(curSection != '07'){
					if(curSection != '00') { $("div[id$=items]").hide('slide', 300).delay(500); $("div[id^=section_]:not(div[id^=07])").hide();	}
					curSection = '07';
					$("div[id$=items]").animate({height:"275px"}, 0).show('slide', 750);
					$("div[id$=section_07_title]").delay(500).show();
					$("div[id$=section_07]").delay(500).show();
				}
			});
			
			$('#btn_items_08').live('click', function() {
				if(curSection != '08'){
					if(curSection != '00') { $("div[id$=items]").hide('slide', 300).delay(500); $("div[id^=section_]:not(div[id^=08])").hide();	}
					curSection = '08';
					$("div[id$=items]").animate({height:"200px"}, 0).show('slide', 750);
					$("div[id$=section_08_title]").delay(500).show();
					$("div[id$=section_08]").delay(500).show();
				}
			});

		});
		
		function loadXMLFromFile() {
				// READ XML FILE
				$.ajax({ 
					url: "xml/oem.xml", 
					dataType: ($.browser.msie) ? "text" : "xml", 
					success: function(data){ 
						var xml; 
						if (typeof data == "string") { 
							xml = new ActiveXObject("Microsoft.XMLDOM"); 
							xml.async = false; 
							xml.loadXML(data); 
						} else { 
							xml = data; 
						} 
						
						$(xml).find('show').each(function(){
							var name = $(this).find('name').text(); $(document).attr('title', name+' | GES Online Exhibitor Manual'); 
							document.getElementById('header-intro-welcome').innerHTML = 'Welcome to the Online Exhibitor Manual for<br><b>'+name+'</b>';
							var dates = $(this).find('dates').text();
							var venue = $(this).find('venue').text();
							var city = $(this).find('city').text();
							document.getElementById('intro-event-info').innerHTML = ''+dates+'<br>'+venue+'<br>'+city+'';							
						});
						
						// QUICK LINKS
						$(xml).find('quick').each(function(){
							var id = $(this).attr('id');
							$(this).find('title').each(function(){ var curTitle = $(this).find('en').text(); document.getElementById('nav-quick-title').innerHTML = curTitle; });
							$(this).find('item').each(function(){
								var id = $(this).find('id').text();
								var url = $(this).find('url').text();
								var label = $(this).find('label').text(); document.getElementById(id).innerHTML = '<a href='+url+' target="_blank">'+label+'</a>';
							});
						});
						
						// TABLE OF CONTENTS
						$(xml).find('section').each(function(){
							var id = $(this).attr('id');
							$(this).find('title').each(function(){ var curTitle = $(this).find('en').text(); document.getElementById('toc_'+id).innerHTML = '<a href="#" id="btn_items_'+id+'">'+curTitle+'</a>'; });
						});
						
						// SECTIONS
						$(xml).find('section').each(function(){
							var id = $(this).attr('id');
							$(this).find('title').each(function(){ var curTitle = $(this).find('en').text(); document.getElementById('section_'+id+'_title').innerHTML = curTitle; });
							$(this).find('item').each(function(){
								var id = $(this).find('id').text();
								var url = $(this).find('url').text();
								var label = $(this).find('label').text(); document.getElementById(id).innerHTML = '<a href='+url+' target="_blank">'+label+'</a>';
							});
						});
					} 
					
				});
			}
			
			function btn_enter_hover_on(evt){
				$(this).animate({ left: "50px" });
			}
	
			function btn_enter_hover_off(evt){
				$(this).animate({ left: "0px" });
			}
