/**********************************
 * Meeting site - Javascript |
 **********************************
 * < JQuery >
 **/
$(function(){
	var browser = navigator.appName;
	// variables
	var showObj = {
	   'display' : 'inherit'
	}
	var hideObj = {
	   'display' :' none'
	}
	/**
	 *  widget effects 
	 *  Note:
	 *  If this is removed then the widgets, if you want to remove this effect 
	 *  delete display:none; from the following classes:  left-widget, and right-widget. 
	 **/
	// <main> 
	$('.left-widget').css(hideObj).fadeIn(4000);
	$('.right-widget').css(hideObj).fadeIn(4000);
	$('.reg_widget').css(hideObj).fadeIn(4000);
	/** </main>
	 *  < exhibitors > 
	 **/
	$(".ex-content").show('slide',2000);
	// </ exhibitors >
	
	// < contact us > 
	$('#method-1').css(hideObj).fadeIn(3000);
	
	$('#method-2').show('slide', 1500);
	
	$('.or_').show('slide',500);
	
	// referral page
	$('#referral').show('slide',2000);
	// </ contact >
	// < travel page >
	  $('#hotels').css(hideObj).fadeIn(3000);

	 $('#reserve_button').css(hideObj).fadeIn(3000);
	// </ travel page >
});
/** 
 * </JQuery>
 * <breadcrumb code>
 **/
function breadcrumbs(){
	mst= document.title;
	sURL = new String;
	bits = new Object;
	var x = 0;
	var stop = 0;
	var output = "<div class=\"breadcrumbs\"><a href=/>Home</a> &raquo; ";
	
	sURL = location.href;
	sURL = sURL.slice(8,sURL.length);
	chunkStart = sURL.indexOf("/");
	sURL = sURL.slice(chunkStart+1,sURL.length)
	
	while(!stop){
	  chunkStart = sURL.indexOf("/");
	  if (chunkStart != -1){
		bits[x] = sURL.slice(0,chunkStart)
		sURL = sURL.slice(chunkStart+1,sURL.length);
	  }else{
		stop = 1;
	  }
	  x++;
	}	
	for(var i in bits){
	  output += "<a href=\"";
	  for(y=1;y<x-i;y++){
		output += "../";
	  }
	  output += bits[i] + "/\">";
	  if(bits[i] == 'course%5Finfo' || bits[i] == 'course_info'){
	
		  bits[i] = ' Course Information';
	  }
	  if( bits[i] == 'jCourse_info'){
	
		  bits[i] = ' Orlando Course Information';
	  }
	  if( bits[i] == 'chCourse_info'){
		  
		  bits[i] = ' Chicago Course Information';
	  }	  
	   output += bits[i] + "</a> &raquo;";
	}
	document.write(output + mst.substring(mst.length));
	document.write("</div>");
	  }
/* </breadcrumb code> */
