//var page_history = new Array();


// function load_page(url){
// 
// 	$.ajax({
// 		type: "GET",
// 		url: url,
// 		success: function(data){
// 			$('#content').html(data);
// 		}
// 	});
// 
// }

// function load_page(url){
// //	page_history.push(url);
// 	new Ajax.Request(url,{
// 		parameters: 'get',
// 		onSuccess: function(t){
// //			alert(page_history.length);
// 			$('content').update(t.responseText);
// /*			if(jQuery('#slider')){
// 				jQuery('#slider').nivoSlider({
// 					controlNavThumbs:false,
// 					controlNav:false
// 				});
// 			}
// */
// 
// 			init_slideshow();
// 
// 			load_nav();
// 		}
// 	});
// }


// var slideshowtimer = false;
// 
// function init_slideshow(){
// 	
// 	if($('slider')){
// 		clearInterval(slideshowtimer);
// 		slideshowtimer = setInterval(function(){
// 		  var imgs = $$('#slider img'), 
// 		   visible = imgs.findAll(function(img){ return img.visible(); });
// 		  if(visible.length>1) visible.last().fade({ duration: .6 });
// 		    else imgs.last().appear({ duration: .6, 
// 		      afterFinish: function(){ imgs.slice(0,imgs.length-1).invoke('show');  } });
// 		}, 4000);
// 	}
// 	
// }


// function load_nav(){
// 	$('.nav-item').each(function(index){
// 		console.log('test'+index);
// 		// $(this).removeClass('nav-item');
// 		// var href = '/pages/'+$(this).href.replace('http://www.taosmountainmusicfestival.com/','').replace('http://taosmountainmusicfestival.com/','');
// 		// $(this).href="javascript: load_page('"+ href +".php');";
// 	});
// }

// getTwitters('tweet', { 
//   id: 'tsvchamber', 
//   count: 5, 
//   enableLinks: true, 
//   ignoreReplies: true, 
//   clearContents: true,
//   template: '<div class="tweet_cont" style="display: none">%text%<br/><a href="http://twitter.com/%user_screen_name%/statuses/%id%/">%time%</a></div>'
// });
// 
// var cur_tweet = 0;
// 
// function rotate_tweets(){
// 	var i = 0;
// 	$$('.tweet_cont').each(function(s){
// 		if(cur_tweet == i){
// 			s.appear({
// 				beforeStart: function(){
// 					s.setOpacity(0);
// 					s.setStyle('display: block;');
// 				},
// 				duration: .4
// 			});
// 		}else{
// 			s.setStyle('display: none;');
// 		}
// 		i++;
// 	});
// 	cur_tweet++;
// 	
// 	if(cur_tweet > 4){ cur_tweet = 0; }
// 	
// 	setTimeout(function(){rotate_tweets();},5000);
// 	
// }

// function post_data(fuse){
// 	var fdata = $('myForm').serialize();
// 	new Ajax.Request('/form_processors/'+fuse+'.php',{
// 		parameters: fdata,
// 		method: 'post',
// 		onSuccess: function(t){
// 			$('content').update(t.responseText);
// 		}
// 	});
// }

// function buy(){
// 	window.open('http://holdmyticket.com/mini/mini.php?id=13179', 'new', 'height=600,width=660,status=yes,scrolling=yes,scrollbars=yes,resizable=yes');
// }

// FastInit.addOnLoad(load_nav);

// $(function() {
// Element.observe(window,'load',function(){
//	page_history.push('home');
	// setTimeout(function(){rotate_tweets();},2500);
	// $('tweet').setOpacity(0.4);
	// $('tweet').observe('mouseover',function(){
	// 	$('tweet').setOpacity(1);
	// });
	// $('tweet').observe('mouseout',function(){
	// 	$('tweet').setOpacity(0.4);
	// });
// });		


