function dirigibles1(){
	if(parseInt($("#dirigible1").css("left").replace("px",""))<=-100){
		$("#dirigible1").css("left",$(window).width()+90);
	}
	$("#dirigible1").animate({left:"-=170px"},10000,'linear', function() {
		dirigibles1(); 
	}); 
}
function dirigibles2(){
	if(parseInt($("#dirigible2").css("left").replace("px",""))<=-100){
		$("#dirigible2").css("left",$(window).width()+100);
	}
	$("#dirigible2").animate({left:"-=220px"},10000,'linear',function() {
		dirigibles2(); 
	}); 
}
function dirigibles3(){
	if(parseInt($("#dirigible3").css("left").replace("px",""))<=-100){
		$("#dirigible3").css("left",$(window).width()+30);
	}
	$("#dirigible3").animate({left:"-=300px"},10000,'linear', function() {
		dirigibles3(); 
	});
}


function animation(){  
	dirigibles1();
	dirigibles2();
	dirigibles3(); 
}

function aleatorio(inferior,superior){ 
	numPosibilidades = superior - inferior 
	aleat = Math.random() * numPosibilidades 
	aleat = Math.round(aleat) 
	return parseInt(inferior) + aleat 
}
function minimarTodo(nopag){
	if(nopag!="band"){
		$(".band").css("bottom",-$(window).height());
		$(".band").css("display",'none');
	}
	if(nopag!="home"){
		$(".home").css("bottom",-$(window).height());
		$(".home").css("display",'none');
	}
	if(nopag!="multimedia"){
		$(".multimedia").css("bottom",-$(window).height());
		$(".multimedia").css("display",'none');
	}
	if(nopag!="tour"){
		$(".tour").css("bottom",-$(window).height());
		$(".tour").css("display",'none');
	}
	if(nopag!="news"){
		$(".news").css("bottom",-$(window).height());
		$(".news").css("display",'none');
	}
	if(nopag!="discography"){
		$(".discography").css("bottom",-$(window).height());
		$(".discography").css("display",'none');
	}
	if(nopag!="mobile"){
		$(".mobile").css("bottom",-$(window).height());
		$(".mobile").css("display",'none');
	}
	if(nopag!="shop"){
		$(".shop").css("bottom",-$(window).height());
		$(".shop").css("display",'none');
	}	
	
	if(nopag!="multimedia_pictureTime"){
		$(".multimedia_pictureTime").css("bottom",-$(window).height());
		$(".multimedia_pictureTime").css("display",'none');
	}
}

var paginaActual="home";
var rotateTimer=null;
var estoyanimando=false;
var degree=120;
var singerActive=0;

function loadStart(){
	$("#page").show();
	$("#loadingZone").hide();
	minimarTodo();
	var imagearray=new Array('images/08.jpg');
	var number=aleatorio(0,imagearray.length-1);
	$(document).bgStretcher({
		images: [imagearray[number]], imageWidth: 1024, imageHeight: 768
	});
	$("#dirigible1").css("left",$(window).width()+90);
	$("#dirigible2").css("left",$(window).width()+100);
	$("#dirigible3").css("left",$(window).width()+30);
	
	$("#dirigible1").css("top",60);
	animation();
	paginaActual="home";
	
	$("#varius").fancybox({
		'titlePosition'		: 'inside',
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'padding'		: 0,
		'overlayOpacity': .8, 
		'overlayColor':'#000'
	});
	Ira("home");
}

function loadStart_PictureTime(){
	$("#page").show();
	$("#loadingZone").hide();
	minimarTodo();
	var imagearray=new Array('images/08.jpg');
	var number=aleatorio(0,imagearray.length-1);
	$(document).bgStretcher({
		images: [imagearray[number]], imageWidth: 1024, imageHeight: 768
	});
	$("#dirigible1").css("left",$(window).width()+90);
	$("#dirigible2").css("left",$(window).width()+100);
	$("#dirigible3").css("left",$(window).width()+30);
	
	$("#dirigible1").css("top",60);
	animation();
	paginaActual="multimedia_pictureTime";
	
	$("#varius").fancybox({
		'titlePosition'		: 'inside',
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'padding'		: 0,
		'overlayOpacity': .8, 
		'overlayColor':'#000'
	});
	Ira("multimedia_pictureTime");
}

function hideError(){
		$("#login_error").hide();
}
function checkdata(f){
	var $form = $( f );
	var term1 = $form.find( 'input[name="txtname"]' ).val();
	var term2 = $form.find( 'input[name="txtemail"]' ).val();
	var url = $form.attr( 'action' );

	if (term1.length < 1 || term2.length < 1) {
		$("#login_error").show();
		$.fancybox.resize();
		return false;
	}
	$.fancybox.showActivity();
	$.ajax({
		type	: "GET",
		cache	: false,
		url		: "rush/subscribe.php",
		data	: "name="+term1+"&email="+term2,
		success: function(data) {
			$.fancybox(data);
			setTimeout("hideFancy()",1500);
			
		}
	});
	return false;
}

function hideFancy(){
	$.fancybox.close();
}

var GLBnewsGrande=new Array(
					 ["Noticia 1","12/12/2011","Texto 1"],
					  ["Noticia 2","12/12/2011","Texto 2"],
					   ["Noticia 3","12/12/2011","Texto 3"],
					    ["Noticia 4","12/12/2011","Texto 4"],
						 ["Noticia 5","12/12/2011","Texto 5"],
						  ["Noticia 6","12/12/2011","Texto 6"],
						   ["Noticia 7","12/12/2011","Texto 7"],
						    ["Noticia 8","12/12/2011","Texto 8"],
							 ["Noticia 9","12/12/2011","Texto 9"],
							  ["Noticia 10","12/12/2011","Texto 10"],
							   ["Noticia 11","12/12/2011","Texto 11"],
							    ["Noticia 12","12/12/2011","Texto 12"],
								 ["Noticia 13","12/12/2011","Texto 13"],
								  ["Noticia 14","12/12/2011","Texto 14"]);


var GLBnewsGrandeT=null;

var GLBpagina=0;
var GLBpaginaT=0;
var GLBpaginaTour_Pics=0;
var GLBpaginaPicture_Time=0;

var GLBfeaturesGrande=new Array();
var GLBnewsGrandeTour_Pics=new Array();
var GLBnewsGrandePicture_Time=new Array();

function loadList(list_type){
	var resp = "";
	var title = "";
	var fecha = "";
	var description = "";
	var tickets = "";
	var photo="";
	
	var location ="";
	var venue="";
	
	var enlace="";
	switch(list_type){
		case 'news_home':
			var glbParam = [
					 {name : 'modo', value :'getLstNews'}
			];	
			$.ajax({
				  url: '../../system/capaControl/cntrl_general.php',
				  type: "GET",
				   data: glbParam,
				   success: function(data) {
					  resp = eval(data);
					  GLBnewsGrande = new Array();
					  for(i=0;i<resp.length;i++){
						title = resp[i][0];
						title = title.substr(0,30);
						
						fecha = resp[i][1];
						description = resp[i][2];
						
						GLBnewsGrande.push(new Array(title,fecha,description));						
					  }
					  
					  //loadNewsGrande();
					  loadNews_home_Grande();
					},
					error:function(){
								  //$('#status'+indice).html('error');
						alert('ocurrio un error');
					}
			});	
			
			var glbParam2 = [
				{name : 'modo', value :'getLstFeatures'}
			];	
			$.ajax({
				  url: '../../system/capaControl/cntrl_general.php',
				  type: "GET",
				   data: glbParam2,
				   success: function(data) {
					 
					  resp = eval(data);
					  GLBfeaturesGrande = new Array();
					  for(i=0;i<resp.length;i++){
						  title = resp[i][0];
							title = title.substr(0,50);
							
							fecha = resp[i][1];
							description = resp[i][2];
							
							enlace = resp[i][3];
							photo = resp[i][4];
							GLBfeaturesGrande.push(new Array(title,fecha,description,enlace,photo));
					  }			  
					  loadFeatures_home_Grande();
					},
					error:function(){
								  //$('#status'+indice).html('error');
						alert('Features ocurrio un error');
					}
			});	
			var glbParam3 = [
				{name : 'modo', value :'getLstTours'}
			];	
			$.ajax({
				  url: '../../system/capaControl/cntrl_general.php',
				  type: "GET",
				   data: glbParam3,
				   success: function(data) {
					  resp = eval(data);
					 
					  GLBnewsGrandeT = new Array();
					  for(i=0;i<resp.length;i++){
						fecha = resp[i][1];
						
						location = resp[i][0];
						venue = resp[i][2];
						
						enlace = resp[i][3];
			
						GLBnewsGrandeT.push(new Array(fecha,location,venue,enlace));
					  }		
					  
					  loadTours_home_Grande();
					},
					error:function(){
								  //$('#status'+indice).html('error');
						alert('Tours ocurrio un error');
					}
			});	
			
			
			break;
		case 'news':
			var glbParam = [
					 {name : 'modo', value :'getLstNews'}
			];	
			$.ajax({
				  url: '../../system/capaControl/cntrl_general.php',
				  type: "GET",
				   data: glbParam,
				   success: function(data) {
					   
					  resp = eval(data);
					  GLBnewsGrande = new Array();
					  for(i=0;i<resp.length;i++){
						title = resp[i][0];
						title = title.substr(0,30);
						
						fecha = resp[i][1];
						description = resp[i][2];
						
						GLBnewsGrande.push(new Array(title,fecha,description));						
					  }
					  
					  loadNewsGrande();
					},
					error:function(){
								  //$('#status'+indice).html('error');
						alert('ocurrio un error');
					}
			});	
			
			
			break;
		case 'tours':	
			var glbParam = [
					 {name : 'modo', value :'getLstTours'}
			];	
			$.ajax({
				  url: '../../system/capaControl/cntrl_general.php',
				  type: "GET",
				   data: glbParam,
				   success: function(data) {
					
					  resp = eval(data);
					  GLBnewsGrandeT = new Array();
					  for(i=0;i<resp.length;i++){
						title = resp[i][0];
						title = title.substr(0,30);
						
						fecha = resp[i][1];
						description = resp[i][2];
						
						tickets = resp[i][3];
						
						
						GLBnewsGrandeT.push(new Array(title,fecha,description,tickets));						
					  }
					  loadNewsGrandeT();
					},
					error:function(){
								  //$('#status'+indice).html('error');
						alert('ocurrio un error');
					}
			});			
			
			break;
		case 'media':
			var glbParam = [
					 {name : 'modo', value :'getLstTour_Pics'}
			];	
			$.ajax({
				  url: '../../system/capaControl/cntrl_general.php',
				  type: "GET",
				   data: glbParam,
				   success: function(data) {
					
					  resp = eval(data);
					  GLBnewsGrandeTour_Pics = new Array();
					  for(i=0;i<resp.length;i++){
						title = resp[i][0];
						title = title.substr(0,30);
						
						fecha = resp[i][1];
						description = resp[i][2];
						fotos = resp[i][3];
						
						GLBnewsGrandeTour_Pics.push(new Array(title,fecha,description,fotos));
					  }
					  loadNewsGrandeTour_Pics();
					},
					error:function(){
								  //$('#status'+indice).html('error');
						alert('ocurrio un error');
					}
			});
			
			break;
		case 'multimedia_pictureTime':
			var glbParam = [
					 {name : 'modo', value :'getLstPicture_Time'}
			];	
			$.ajax({
				  url: '../../system/capaControl/cntrl_general.php',
				  type: "GET",
				   data: glbParam,
				   success: function(data) {
					  resp = eval(data);
					  GLBnewsGrandePicture_Time = new Array();
					  for(i=0;i<resp.length;i++){
						title = resp[i][0];
						title = title.substr(0,30);
						
						fecha = resp[i][1];
						description = resp[i][2];
						fotos = resp[i][3];
						
						GLBnewsGrandePicture_Time.push(new Array(title,fecha,description,fotos));
					  }
					  loadNewsGrandePictureTime();
					},
					error:function(){
								  //$('#status'+indice).html('error');
						alert('ocurrio un error');
					}
			});
			
			break;			
	} 		
}



function CargarPagina(pagina){
	switch(pagina){
		case "band":			
			$('.singer1').hover(function() { 
				if(singerActive!=0){
					$(this).stop().animate({ opacity: 1 }, 300);
				}
			},function() { 
				if(singerActive!=0){
					$(this).stop().animate({ opacity: 0.6 }, 300);
				}
			});
			
			$('.singer2').hover(function() { 
				if(singerActive!=1){
					$(this).stop().animate({ opacity: 1 }, 300);
				}
			},function() {
				if(singerActive!=1){
					$(this).stop().animate({ opacity: 0.6 }, 300);
				}
			});
			
			$('.singer3').hover(function() { 
				if(singerActive!=2){
					$(this).stop().animate({ opacity: 1 }, 300);
				}
			},function() { 
				if(singerActive!=2){
					$(this).stop().animate({ opacity: 0.6 }, 300);
				}
			});
			$('.singer1').css("opacity",1);
			$('.singer2').css("opacity",0.6);
			$('.singer3').css("opacity",0.6);
			cargarBand(singerActive);
			break;
		case "discography":
			loadDiscography();
			break;
		case "news":
			loadList('news');			
			break;
		case "tour":
			loadList('tours');
			break;
		case "home":
			loadList('news_home');
			break;
		case "multimedia":
			loadList('media');
			break;
		case "multimedia_pictureTime":
			loadList('multimedia_pictureTime');
			break;			
	}
}
//news

function loadNewsGrande(){
	var stringG="";
	stringG+= '<div class="news_title_scroll" style="position:relative; height:320px; width:226px; overflow:hidden">';
	stringG+= '<div class="news_title_content" style="position:absolute">';
	
	stringG+='<table cellpadding="0" cellspacing="0" border="0" width="205px"  align="left" >';
	
	var p = 0;
	var ini = 5*GLBpagina;
	var fin = ini+5;
	
	if(fin > GLBnewsGrande.length){
		fin = GLBnewsGrande.length;
	}
	
	//alert('ini' + ini + 'fin' + fin +'count'+GLBnewsGrande.length );
	
			//for(p=0;p<GLBnewsGrande.length;p++){
			for(p=ini;p<fin;p++){				
				//if(p>=(5*GLBpagina) && p<(5*GLBpagina)+5){
				stringG+=' <tr valign="top"><td  style=" text-align:center; padding:0 0 30px 15px; cursor:pointer;"  align="left" onclick="mostrarNoticiaGrande(\'ContenidonewsS\','+p+');">';
				stringG+= '<font  id="tituloNewsAr'+p+'" class="titulo8">'+GLBnewsGrande[p][0]+'</font><br />';
				stringG+= '<font style="font-style:italic; font-family:Arial, Helvetica, sans-serif; font-size:11px ">'+GLBnewsGrande[p][1]+'</font>';
				stringG+= '</td> </tr>';
				//}
			}
	stringG+=' </table>';
	
	stringG+= '</div></div>';
	
	stringG+= '<div style="position:relative; width:60px; height:30px; margin:0 0 0 85px">';
    stringG+=     '<div style="position:absolute; left:30px;" id="prev_news_title" onclick="PrivuosNewsGrande()"><img src="images/uparrow.png" /></div>';
	stringG+=	  '<div style="position:absolute; left:0px;" id="next_news_title" onclick="NextNewsGrande()"><img src="images/downarrow.png" /></div>';
	stringG+= 	'</div>';
										 
	//document.getElementById("titleNoticias").innerHTML=stringG;
	$('#titleNoticias').html(stringG);
	
//	if(is_preload_news = true){
		mostrarNoticiaGrande('ContenidonewsS',(5*GLBpagina)+cur_news);
	/*}else{
		mostrarNoticiaGrande('ContenidonewsS',(5*GLBpagina));
	}*/
		 
}


var GLBTours_current_page = 0;
function loadTours_home_Grande(){
	loadTours_home();
	//setTimeout('advance_tours()',10000);
}
function advance_tours(){
	nextTours_home();
	//setTimeout('advance_tours()',8000);
}
function loadTours_home(){
	var resp = "";
	
	var i = 0;
	var ini = 4*GLBTours_current_page;
	var fin = ini+4;
	
	if(fin > GLBnewsGrandeT.length){
		fin = GLBnewsGrandeT.length;
	}
	
	for(i=ini;i<fin;i++){
		
			 resp+= '<td>';
				   resp+= ' <div>';
					  resp+= '  <h1 class="titulo3">'+GLBnewsGrandeT[i][0]+'</h1>';
					resp+= '</div>';
					resp+= '<div class="placeTour">';
					resp+= GLBnewsGrandeT[i][1];
				   resp+= ' </div>';
					 resp+= '<div class="venueTour">';
					  resp+= GLBnewsGrandeT[i][2];
					resp+= ' </div>';
					 resp+= ' <div class="readmoreTour">';
					resp+= '	<a class="readmoreTour" href="'+ GLBnewsGrandeT[i][3]+'" target="_blank"> Buy&nbsp;Tickets</a>';
					resp+= '</div>';
			   resp+= ' </td>';					
	}	
	
	$('#toursHomeDiv').html(resp);
	
	Cufon.replace('h1',{hover: true});
	Cufon.now();
}

function nextTours_home(){
	GLBTours_current_page++;
	if(GLBTours_current_page*4>GLBnewsGrandeT.length){
		GLBTours_current_page=0;
	}
	loadTours_home();	
}

function PrivuosTours_home(){
	GLBTours_current_page--;
	if(GLBTours_current_page<0){
		GLBTours_current_page=0;
	}
	loadTours_home();
}



function next_tour_pic_scroll(){
	var new_height_band = $('#ContenidoTourPics_thumbnails').find('.div_content').height();
	var despl_band = 306;
	var despl_out_band = 306;

	var pScroll_band = 0;					
			//var divOffset_band = 0;
			var divOffset_band = 0;
			
			
			//alert($('#content_band_list').find('.div_content').offset().top+' ' + new_height_band);
				
			if(($('#ContenidoTourPics_thumbnails').find('.div_content').offset().top) < new_height_band){						
				pScroll_band = divOffset_band + despl_band;
			}else{
				pScroll_band = 0;
			}					
			
			
			//$('#ContenidoTourPics_thumbnails').find('.div_scroll').animate({scrollTop: '+=' + pScroll_band + 'px'}, 500, 'easeInOutQuad');		
			$('#ContenidoTourPics_thumbnails').animate({scrollTop: '+=' + pScroll_band + 'px'}, 500, 'easeInOutQuad');		
			
}

function prev_tour_pic_scroll(){
	var new_height_band = $('#ContenidoTourPics_thumbnails').find('.div_content').height();
	var despl_band = 306;
	var despl_out_band = 306;
	
	
	//var divOffset_band = $('#ContenidoTourPics_thumbnails').find('.div_scroll').offset().top;				
	var divOffset_band = $('#ContenidoTourPics_thumbnails').offset().top;				
							
			var pScroll_band = divOffset_band < despl_out_band ? despl_out_band  - divOffset_band : divOffset_band;
			//$('#ContenidoTourPics_thumbnails').find('.div_scroll').animate({scrollTop: '-=' + pScroll_band + 'px'}, 500, 'easeInOutQuad');		
			$('#ContenidoTourPics_thumbnails').animate({scrollTop: '-=' + pScroll_band + 'px'}, 500, 'easeInOutQuad');
}

function next_picture_time_scroll(){
	var new_height_band = $('#ContenidoPictureTime_thumbnails').find('.div_content').height();
	var despl_band = 306;
	var despl_out_band = 306;

	var pScroll_band = 0;					
	//var divOffset_band = 0;
	var divOffset_band = 0;
	
	
	//alert($('#content_band_list').find('.div_content').offset().top+' ' + new_height_band);
				
	if(($('#ContenidoPictureTime_thumbnails').find('.div_content').offset().top) < new_height_band){						
		pScroll_band = divOffset_band + despl_band;
	}else{
		pScroll_band = 0;
	}						
	
	//$('#ContenidoTourPics_thumbnails').find('.div_scroll').animate({scrollTop: '+=' + pScroll_band + 'px'}, 500, 'easeInOutQuad');		
	$('#ContenidoPictureTime_thumbnails').animate({scrollTop: '+=' + pScroll_band + 'px'}, 500, 'easeInOutQuad');		
			
}

function prev_picture_time_scroll(){
	var new_height_band = $('#ContenidoPictureTime_thumbnails').find('.div_content').height();
	var despl_band = 306;
	var despl_out_band = 306;
	
	//var divOffset_band = $('#ContenidoTourPics_thumbnails').find('.div_scroll').offset().top;				
	var divOffset_band = $('#ContenidoPictureTime_thumbnails').offset().top;				
							
	var pScroll_band = divOffset_band < despl_out_band ? despl_out_band - divOffset_band : divOffset_band;
			//$('#ContenidoTourPics_thumbnails').find('.div_scroll').animate({scrollTop: '-=' + pScroll_band + 'px'}, 500, 'easeInOutQuad');		
	$('#ContenidoPictureTime_thumbnails').animate({scrollTop: '-=' + pScroll_band + 'px'}, 500, 'easeInOutQuad');
}

//features

var GLBNews_current_page = 0;

function loadFeatures_home_Grande(){
	loadFeatures_home();
	//advance_news();
	
	$(document).everyTime(8000, function(i) {	  
	  advance_features();
	}, 0);
	
	//setTimeout('advance_features()',10000);
}

function loadNews_home_Grande(){
	loadNews_home();
	//advance_news();
	//setTimeout('advance_news()',10000);
}


function advance_features(){
	nextFeatures_home();
	//setTimeout('advance_features()',10000);
}

function advance_news(){
	nextNews_home();
	//setTimeout('advance_news()',10000);
}


var cur_news = 0;
var is_preload_news = false;

function loadNews_home(){
	var resp = "";
	
	var i = 0;
	var ini = 3*GLBNews_current_page;
	var fin = ini+3;
	
	if(fin > GLBnewsGrande.length){
		fin = GLBnewsGrande.length;
	}
	
	for(i=ini;i<fin;i++){
			resp+= '<td style=" text-align:right; padding:0 5px 0 5px" width="33%">';
			
				resp+= '<div class="tdNews">'+GLBnewsGrande[i][0]+'</div>';
				resp+= '<div class="tituloNews">'+GLBnewsGrande[i][1]+'</div>';
				
				resp+= '<div class="contenidoNews">'+GLBnewsGrande[i][2].substring(0,80)+'</div>';
				resp+= '<div class="readmoreNews"><a style="color:#ac241f" href="javascript:preLoadNews('+i+')">Read&nbsp;more</a></div>';
			resp+= '</td>';
	}	
	
	$('#news').html(resp);
}

function preLoadNews(id_news){	
	GLBpagina = parseInt(id_news / 5);
	cur_news = id_news - (GLBpagina*5);
//	console.log('cn= '  + cur_news + ' page = ' + GLBpagina);
	//is_preload_news = true;
	Ira('news');
}

function nextNews_home(){
	GLBNews_current_page++;
	if(GLBNews_current_page*3>GLBnewsGrande.length){
		GLBNews_current_page=0;
	}
	loadNews_home();	
}

function PrivuosNews_home(){
	GLBNews_current_page--;
	if(GLBNews_current_page<0){
		GLBNews_current_page=0;
	}
	loadNews_home();
}



var GLBFeatures_current_page = 0;
function loadFeatures_home(){
	var resp = "";
	
   resp+= '  <div class="tituloFeatures">';
	resp+= GLBfeaturesGrande[GLBFeatures_current_page][0];
   resp+= ' </div>';
	resp+= ' <div class="contenidoFeatures" style="">';
	resp+= GLBfeaturesGrande[GLBFeatures_current_page][2];
	
   resp+= ' </div>';
	resp+= ' <div class="readmoreFeatures">';
	resp+= '	<a class="readmoreFeatures" href="'+GLBfeaturesGrande[GLBFeatures_current_page][3]+'" target="_blank">Read&nbsp;more</a>';
	resp+= '</div>';
							
	$('#featuresHome').html(resp);
	
	$('#padreFeatures').css("background-image","url("+GLBfeaturesGrande[GLBFeatures_current_page][4]+")");
}

function nextFeatures_home(){
	GLBFeatures_current_page++;
	if(GLBFeatures_current_page>=GLBfeaturesGrande.length){
		GLBFeatures_current_page=0;
	}
	loadFeatures_home();	
}

function PrivuosFeatures_home(){
	GLBFeatures_current_page--;
	if(GLBFeatures_current_page<0){
		GLBFeatures_current_page=0;
	}
	loadFeatures_home();
}




function NextNewsGrande(){
	cur_news = 0;
	GLBpagina++;
	if(GLBpagina*5>GLBnewsGrande.length){
		GLBpagina=0;
	}
	loadNewsGrande();
}

function PrivuosNewsGrande(){
	cur_news = 0;
	GLBpagina--;
	if(GLBpagina<0){
		GLBpagina=0;
	}
	loadNewsGrande();
}

function mostrarNoticiaGrande(contenido, val){
	for(var p=0;p<GLBnewsGrande.length;p++){
		if(p>=(5*GLBpagina) && p<(5*GLBpagina)+5){
			document.getElementById("tituloNewsAr"+p).className="titulo8";
		}
	}
	
	//cambia color noticia
	//if(cur_news < 5){
		document.getElementById("tituloNewsAr"+val).className="titulo9";
	/*}else{
		document.getElementById("tituloNewsAr"+val).className="titulo9";
	}	*/
	
	
	document.getElementById("tituloNewsArriba").innerHTML=GLBnewsGrande[val][0];
	Cufon.replace('.titulo10');
	Cufon.now();
	//document.getElementById(contenido).innerHTML=GLBnewsGrande[val][2];
	
	//var txt_description = GLBnewsGrande[val][2].replace('&lt;','<').replace('&lt;','<').replace('&gt;','>').replace('&gt;','>');
	
	var txt_description = GLBnewsGrande[val][2].replace('&lt;','<').replace('&lt;','<').replace('&gt;','>').replace('&gt;','>');
	
	txt_description=txt_description.replace('<a','<a style=\'color:#fff;text-decoration:underline\' ');
	$('#'+contenido).find('.div_content').html(txt_description);
	
	
}


//tours
function loadNewsGrandeT(){
	var stringG="";
	stringG+= '<div class="news_title_scroll" style="position:relative; height:350px; width:226px; overflow:hidden">';
	stringG+= '<div class="news_title_content" style="position:absolute">';
	
	stringG+='<table cellpadding="0" cellspacing="0" border="0" width="205px"  align="left" >';
	
	var p = 0;
	var ini = 6*GLBpaginaT;
	var fin = ini+6;
	
	<!-- si hay noticias -->
	if(GLBnewsGrandeT.length !=0){
		
		if(fin > GLBnewsGrandeT.length){
			fin = GLBnewsGrandeT.length;
		}
	
		for(p=ini;p<fin;p++){		
			stringG+=' <tr valign="top"><td  style=" text-align:center; padding:0 0 30px 15px; cursor:pointer;" align="left" onclick="mostrarNoticiaGrandeT(\'ContenidonewsST\','+p+');">';
			stringG+='<font  id="tituloNewsArT'+p+'" class="titulo8">'+GLBnewsGrandeT[p][0]+'</font><br />';
			stringG+= '<font style="font-style:italic; font-family:Arial, Helvetica, sans-serif; font-size:11px ">'+GLBnewsGrandeT[p][1]+'</font>';
			stringG+= '</td></tr>';
		}
		
		stringG+=' </table>';
		stringG+= '</div></div>';
		
		stringG+= '<div style="position:relative; width:60px; height:30px; margin:0 0 0 85px">';
		stringG+=     '<div style="position:absolute; left:30px;" id="prev_tours_title"  onclick="PrivuosNewsGrandeT()"><img src="images/uparrow.png" /></div>';
		stringG+=	  '<div style="position:absolute; left:0px;" id="next_tours_title" onclick="NextNewsGrandeT()"><img src="images/downarrow.png" /></div>';
		stringG+= 	'</div>';
											 
		$("#titleNoticiasT").html(stringG);
		mostrarNoticiaGrandeT('ContenidonewsST',(6*GLBpaginaT));	
		
	}else{
		stringG+=' <tr valign="top"><td  style=" text-align:center; padding:0 0 30px 15px; cursor:pointer;" align="left"><span style="font-family=\'Helvetica,Arial\'; font-size:18px; font-weight:bold">stay tuned for upcoming shows</span></td></tr>';
		stringG+=' </table>';
		stringG+= '</div></div>';
		$("#titleNoticiasT").html(stringG);
	}
	
			 
	//document.getElementById("titleNoticias").innerHTML=stringG;		 
}

function loadNewsGrandeTour_Pics(){
	var stringG="";
	stringG+= '<div class="news_title_scroll" style="position:relative; height:306px; width:226px; overflow:hidden">';
	stringG+= '<div class="news_title_content" style="position:absolute">';
	
	stringG+='<table cellpadding="0" cellspacing="0" border="0" width="205px"  align="left" >';
	
	var p = 0;
	var ini = 5*GLBpaginaTour_Pics;
	var fin = ini+5;
	
	if(fin > GLBnewsGrandeTour_Pics.length){
		fin = GLBnewsGrandeTour_Pics.length;
	}

	for(p=ini;p<fin;p++){
		if(p==(fin-1)){
			stringG+='<tr valign="top"><td  style=" text-align:center; padding:0 0 5px 15px; cursor:pointer;" align="left" onclick="mostrarThumbnails_TourPics(\'ContenidoTourPics_thumbnails\','+p+');">';
		}else{
			stringG+='<tr valign="top"><td  style=" text-align:center; padding:0 0 30px 15px; cursor:pointer;" align="left" onclick="mostrarThumbnails_TourPics(\'ContenidoTourPics_thumbnails\','+p+');">';
		}
		
			stringG+='<font  id="tituloNewsArTP'+p+'" class="titulo8">'+GLBnewsGrandeTour_Pics[p][0]+'</font><br />';
			stringG+= '<font style="font-style:italic; font-family:Arial, Helvetica, sans-serif; font-size:11px ">'+GLBnewsGrandeTour_Pics[p][1]+'</font>';
			stringG+= '</td></tr>';	
	}
	
	stringG+=' </table>';
	stringG+= '</div></div>';
	
	stringG+= '<div style="position:relative; width:60px; height:30px; margin:0 0 0 85px">';
    stringG+=     '<div style="position:absolute; left:30px;cursor:pointer" id="prev_tours_title"  onclick="PrivuosNewsGrandeTP()"><img src="images/uparrow.png" /></div>';
	stringG+=	  '<div style="position:absolute; left:0px;cursor:pointer" id="next_tours_title" onclick="NextNewsGrandeTP()"><img src="images/downarrow.png" /></div>';
	stringG+= 	'</div>';
	
										 
	$("#titleNoticiasTP").html(stringG);
	//mostrarNoticiaGrandeT('ContenidonewsST',(6*GLBpaginaTour_Pics));			 
	//mostrar thumbnails
	mostrarThumbnails_TourPics('ContenidoTourPics_thumbnails',(5*GLBpaginaTour_Pics))
}



function loadNewsGrandePictureTime(){
	var stringG="";
	stringG+= '<div class="news_title_scroll" style="position:relative; height:306px; width:226px; overflow:hidden">';
	stringG+= '<div class="news_title_content" style="position:absolute">';
	
	stringG+='<table cellpadding="0" cellspacing="0" border="0" width="205px"  align="left" >';
	
	var p = 0;
	var ini = 5*GLBpaginaPicture_Time;
	var fin = ini+5;
	
	if(fin > GLBnewsGrandePicture_Time.length){
		fin = GLBnewsGrandePicture_Time.length;
	}

	for(p=ini;p<fin;p++){
		if(p==(fin-1)){
			stringG+='<tr valign="top"><td  style=" text-align:center; padding:0 0 5px 15px; cursor:pointer;" align="left" onclick="mostrarThumbnails_Picture_Time(\'ContenidoPictureTime_thumbnails\','+p+');">';
		}else{
			stringG+='<tr valign="top"><td  style=" text-align:center; padding:0 0 30px 15px; cursor:pointer;" align="left" onclick="mostrarThumbnails_Picture_Time(\'ContenidoPictureTime_thumbnails\','+p+');">';
		}
		
			stringG+='<font  id="tituloNewsArPT'+p+'" class="titulo8">'+GLBnewsGrandePicture_Time[p][0]+'</font><br />';
			stringG+= '<font style="font-style:italic; font-family:Arial, Helvetica, sans-serif; font-size:11px ">'+GLBnewsGrandePicture_Time[p][1]+'</font>';
			stringG+= '</td></tr>';	
	}
	
	stringG+=' </table>';
	stringG+= '</div></div>';
	
	stringG+= '<div style="position:relative; width:60px; height:30px; margin:0 0 0 85px">';
    stringG+=     '<div style="position:absolute; left:30px;cursor:pointer" id="prev_pt_title"  onclick="PrivuosNewsGrandePT()"><img src="images/uparrow.png" /></div>';
	stringG+=	  '<div style="position:absolute; left:0px;cursor:pointer" id="next_pt_title" onclick="NextNewsGrandePT()"><img src="images/downarrow.png" /></div>';
	stringG+= 	'</div>';
	
										 
	$("#titleNoticiasPT").html(stringG);		 
	//mostrar thumbnails
	mostrarThumbnails_Picture_Time('ContenidoPictureTime_thumbnails',(5*GLBpaginaPicture_Time))
}



function NextNewsGrandePT(){
	GLBpaginaPicture_Time++;
	if(GLBpaginaPicture_Time*5>GLBnewsGrandePicture_Time.length){
		GLBpaginaPicture_Time=0;
	}
	loadNewsGrandePictureTime();
}

function PrivuosNewsGrandePT(){
	GLBpaginaPicture_Time--;
	if(GLBpaginaPicture_Time<0){
		GLBpaginaPicture_Time=0;
	}
	loadNewsGrandePictureTime();
}



function NextNewsGrandeTP(){
	GLBpaginaTour_Pics++;
	if(GLBpaginaTour_Pics*5>GLBnewsGrandeTour_Pics.length){
		GLBpaginaTour_Pics=0;
	}
	loadNewsGrandeTour_Pics();
}

function PrivuosNewsGrandeTP(){
	
	GLBpaginaTour_Pics--;
	if(GLBpaginaTour_Pics<0){
		GLBpaginaTour_Pics=0;
	}
	loadNewsGrandeTour_Pics();
}



function NextNewsGrandeT(){
	GLBpaginaT++;
	if(GLBpaginaT*6>GLBnewsGrandeT.length){
		GLBpaginaT=0;
	}
	loadNewsGrandeT();
}

function PrivuosNewsGrandeT(){
	
	GLBpaginaT--;
	if(GLBpaginaT<0){
		GLBpaginaT=0;
	}
	loadNewsGrandeT();
}
function mostrarNoticiaGrandeT(contenido, val){
	for(var p=0;p<GLBnewsGrandeT.length;p++){
		if(p>=(6*GLBpaginaT) && p<(6*GLBpaginaT)+6){
			document.getElementById("tituloNewsArT"+p).className="titulo8";
		}
	}
	document.getElementById("tituloNewsArT"+val).className="titulo9";
	//document.getElementById("tituloNewsArribaT").innerHTML=GLBnewsGrandeT[val][0];
	//Cufon.replace('.titulo10');
	//Cufon.now();
	
	
	//document.getElementById(contenido).innerHTML=GLBnewsGrandeT[val][2];
	
	$('#'+contenido).html('<div style="width:524px; height:180px;margin:auto auto; text-align:center;font-family: Arial,Helvetica; color:#fff"><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-top:24px; text-align:center"><span style="font-size:30px;">'+GLBnewsGrandeT[val][0]+'</span></td></tr><tr><td style="padding-top:16px; text-align:center"><div style="font-size:20px">'+GLBnewsGrandeT[val][2]+'</div></td></tr><tr><td style="padding-top:26px; text-align:center"><div style="font-size:20px; color:#ff0000"><a style="color:#ff0000" href="'+GLBnewsGrandeT[val][3]+'" target="_blank">Buy Tickets</a></div></td></tr></table></div>');
}



var glb_pretty_photo_initialized = false;

function reloadPrettyPhoto(){
	
	if(!glb_pretty_photo_initialized){		
		glb_pretty_photo_initialized = true;
	}else{
		$(".pp_pic_holder").remove();
		$(".pp_overlay").remove();
		$(".ppt").remove();
	}
	
	//alert($(".gallery").html());
	$(".gallery a[rel^='prettyPhoto']").prettyPhoto({
			theme: 'facebook',
			allowresize : false,
			slideshow:5000, 
			autoplay_slideshow:false
	});	
	/*
	$(".gallery a[rel='prettyPhoto[media_pt]']").prettyPhoto({
			theme: 'facebook',
			allowresize : false
	});	*/
	// edit it with your initialization	
}


function mostrarThumbnails_TourPics(contenido, val){
	for(var p=0;p<GLBnewsGrandeTour_Pics.length;p++){
		if(p>=(5*GLBpaginaTour_Pics) && p<(5*GLBpaginaTour_Pics)+5){
			document.getElementById("tituloNewsArTP"+p).className="titulo8";
		}
	}
	
	var photos = GLBnewsGrandeTour_Pics[val][3];
	
	var resp = "<ul class=\"gallery clearfix\"  id=\"ul_tour_pics_images\">";
			
	var photo_full_size = "";
	
	for(i=0;i<photos.length;i++){
		photo_full_size = photos[i].replace('thumbnail_','');
		resp+= "<li><a href=\""+photo_full_size+"\" rel=\"prettyPhoto[media]\" ><img src=\"" + photos[i] +  "\" height=\"94px\" width=\"94px\" /></a></li>";
	}
	resp+= "</ul>";
	
	$("#ContenidoTourPics_thumbnails").find('.div_content').html(resp);
	document.getElementById("tituloNewsArTP"+val).className="titulo9";
	
	//genera el pretty photo
	
	
	// $("#ul_tour_pics_images a[rel^='prettyPhoto']").prettyPhoto({theme: 'facebook'});
	reloadPrettyPhoto();
	
	
	
	
	//document.getElementById(contenido).innerHTML=GLBnewsGrandeT[val][2];
	
	//$('#'+contenido).html('<div style="width:524px; height:180px;margin:auto auto; text-align:center;font-family: Arial,Helvetica; color:#fff"><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-top:24px; text-align:center"><span style="font-size:30px;">'+GLBnewsGrandeT[val][0]+'</span></td></tr><tr><td style="padding-top:16px; text-align:center"><div style="font-size:20px">'+GLBnewsGrandeT[val][2]+'</div></td></tr><tr><td style="padding-top:26px; text-align:center"><div style="font-size:20px; color:#ff0000"><a style="color:#ff0000" href="'+GLBnewsGrandeT[val][3]+'" target="_blank">Buy Tickets</a></div></td></tr></table></div>');
	//$('#'+contenido).html('test thumbnails');
}

function mostrarThumbnails_Picture_Time(contenido, val){	
	
	for(var p=0;p<GLBnewsGrandePicture_Time.length;p++){
		if(p>=(5*GLBpaginaPicture_Time) && p<(5*GLBpaginaPicture_Time)+5){
			document.getElementById("tituloNewsArPT"+p).className="titulo8";
		}
	}
	
	var photos = GLBnewsGrandePicture_Time[val][3];
	
	var resp = "<ul class=\"gallery clearfix\"  id=\"ul_picture_time_images\">";
			
	var photo_full_size = "";
	
	for(i=0;i<photos.length;i++){
		photo_full_size = photos[i].replace('thumbnail_','');
		resp+= "<li><a href=\""+photo_full_size+"\"  ><img src=\"" + photos[i] +  "\" height=\"94px\" width=\"94px\" /></a></li>";
	}
	resp+= "</ul>";
	
	$("#ContenidoPictureTime_thumbnails").find('.div_content').html(resp);
	document.getElementById("tituloNewsArPT"+val).className="titulo9";
	
	//genera el pretty photo
	reloadPrettyPhoto();
}





function cargarBand(singerT){
	$('.singer1').css("opacity",0.6);
	$('.singer2').css("opacity",0.6);
	$('.singer3').css("opacity",0.6);
	singerActive=singerT;
	$('.singer'+(singerT+1)).css("opacity",1);
	
	var stringG="";
	if(singerActive==0){
		/*
		stringG+="Gibson Les Paul Black Prototype";
		stringG+="with Floyd Rose Tremolo<br><br>";*/
		
		stringG+="Gibson Les Paul Ice Tea Burst Prototype<br>";
		stringG+="with Floyd Rose Tremolo<br><br>";
		
		stringG+="Gibson Les Paul Sunburst 58 reissue<br>";
		stringG+="with Fishman piezo system<br><br>";
		
		stringG+="Black Custom Les Paul w/Floyd Rose<br><br>";
		stringG+="Alex Lifeson Axcess Royal Crimson Les Paul<br><br>";
		stringG+="Alex Lifeson Axcess Viceroy Brown Les Paul<br><br>";
		
		/*stringG+="Gibson Les Paul Tabacco sunburst 59 reissue<br>";
		stringG+="with Fishman piezo system<br><br>";
		
		stringG+="Gibson Cherry Burst Axcess Les Paul<br>";
		stringG+="with Floyd Rose Tremolo<br><br>";*/
		
		/*stringG+="Gibson Black Les Paul Custom<br><br>";*/
		
		stringG+="Gibson 355 stereo<br>";
		stringG+="( yes the original )<br><br>";
		
		stringG+="Paul Reed Smith Black CE-24<br><br>";
		
		stringG+="Paul Reed Smith CE-24<br>";
		stringG+="Custom Single Coil<br><br>";
		
		stringG+="Fender '52 Reissue Telecaster<br><br>";
		
		stringG+="Garrison OM-20 Octave Mandolin<br><br>";
		
		stringG+="Martin D12-28 Acoustic Guitar<br><br>";
		
		stringG+="Furman Power Conditioner PL-8<br><br>";
		
		stringG+="Furman AR-PRO Voltage Regulator<br><br>";
		
		stringG+="RJM Music Technology IS-8 <br><br>";
		stringG+="Input Selector X2<br>";
		
		stringG+="Audio Technica AEW5200<br>"; 
		stringG+="Guitar Wireless<br><br>";
		
		stringG+="Audio Technica AEW-DA6600<br>";
		stringG+="Antenna Distribution System<br><br>";
		
		stringG+="Linksys Ethernet Cable/DSL Router<br><br>";
		
		stringG+="Toshiba Satellite PC Computer<br><br>";
		
		stringG+="Lectrosonics R400A Guitar Wireless X2<br><br>";
		
		stringG+="Whirlwind A/B Box<br><br>";
		
		stringG+="Fishman Aura Acoustic Guitar Modeler X2<br><br>";
		
		stringG+="Dunlop Crybaby DCR-1SR<br>";
		stringG+="Rackmount Wah Wah<br><br>";
		
		stringG+="Mesa/Boogie High Gain Amp Switcher<br><br>";
		
		stringG+="TC 1210 Spatial Expander+Stereo<br>";
		stringG+="Chorus/Flanger<br><br>";
		
		stringG+="Behringer XR4400 Multigate Pro<br><br>";
		
		stringG+="Axess Electronics GRX-4 X2<br><br>";
		
		stringG+="Axess Electronics CFX-4 X2<br><br>";
		
		stringG+="Digital Music Corp System Mix<br><br>";
		
		stringG+="Framptone A/B box<br><br>";
		
		stringG+="TC Electronics G-Force X4<br><br>";
		
		stringG+="Hughes & Kettner Tube Rotosphere x2<br><br>";
		
		stringG+="Palmer PDI 03 Speaker Simulator X4<br><br>";
		
		stringG+="Ernie Ball 25K OHM Volume Pedal<br><br>";
		
		stringG+="Axess Electronics FX1 Midi Footcontroler<br><br>";
		
		stringG+="Hughes & Kettner Coreblade 100 Guitar Head<br><br>";
		
		stringG+="Hughes & Kettner Alex Lifeson Signature Triamp<br>";
		stringG+="MK11 Guitar Head X2<br><br>";
		
		stringG+="Hughes & Kettner Steampunk Speaker Cabinets X3<br><br>";
		
		stringG+="Hughes & Kettner Tube Clock X2<br><br>";
		
		stringG+="M Brace Acoustic Guitar Holder<br><br>";
		
		stringG+="Ultracase Guitar Vault<br><br>";
	}
	else{
		if(singerActive==1){
			stringG+="Drum Workshop Collectors Series in <br>";
			stringG+="\"Steampunk\" finish<br><br>";
			
			stringG+="23\" kik drum. VLX shell series<br><br>";
			
			stringG+="8,10,12,13\" rack toms.<br>";
			stringG+="X shell series<br><br>";
			
			stringG+="15 x 2,16,18 floor toms.<br>";
			stringG+="VLT shell series<br><br>";
			
			stringG+="14\" x 6.5\" VLT series snare<br><br>";
			
			stringG+="13\" X shell series piccolo snare<br><br>";
			
			stringG+="Copper plated DW 9300 series hardware<br><br>";
			
			stringG+="5000 series DW Hi Hat<br><br>";
			
			stringG+="9000 series DW dbl.Bass drum pedals<br><br>";
			
			stringG+="Roland TD 20X V Drum triggers<br>";
			stringG+="(mounted in DW Collector series shells)<br><br>"; 
			
			stringG+="Roland V Cymbals and Hi Hats<br><br>";
			
			stringG+="Dauz trigger pad<br><br>";
			
			stringG+="Fat Kat trigger pedals<br><br>";
			
			stringG+="Mallet Kat Express (Midi Marimba)<br><br>";
			
			stringG+="Sabian Paragon Brilliant cymbals<br>"; 
			stringG+="in \"Steampunk\" finish<br><br>";
			
			stringG+="Pro Mark NP Signature 747 drumsticks<br>";
			stringG+="w/ Series of 6 Alchemy Symbols <br><br>";
			
			stringG+="9' x 9' Octagonal rotating drum riser<br>";
			stringG+="in \"Steampunk\" finish<br><br>";
			
			stringG+="2 x Squirrel cage fans (to cool his hands)<br><br>";
			
			stringG+="DW / Remo Clear Coated Batter heads on toms<br><br>";
			
			stringG+="Remo Ambassador X Snare Batter heads<br><br>";
			
			stringG+="Whirlwind custom built drum loom<br><br>";
			
			stringG+="Kelly SHU internal kick drum microphone mount<br><br>";
			
			stringG+="Electronics/Sampler rack:<br><br>";
			
			stringG+="2 x Roland V Drum TD20 X<br>";
			stringG+="Percussion modules<br><br>";
			
			stringG+="Roland XV 5080 Samplers<br><br>";
			
			stringG+="Glyph Hard Drives<br><br>";
			
			stringG+="Roland Midi Displays<br><br>";
			
			stringG+="Behringer line mixer<br><br>";
			
			stringG+="Monster power conditioner <br><br>";
			
			stringG+="Bubba Gump room<br>";
			stringG+="(warm up prior to showtime)<br><br>";
			
			stringG+="DW Collector series<br>";
			stringG+="in Aztec Red fade to Black<br><br>";
			
			stringG+="18\" x 16\" kik<br><br>";
			
			stringG+="12\" rack tom<br><br>";
			
			stringG+="13\" 14\" flr toms<br><br>";
			
			stringG+="13\" piccolo snare<br><br>";
			
			stringG+="DW 2000 series hardware<br><br>";
			
			stringG+="Assorted Sabian Paragon cymbals<br><br>";
		}
		else{
			stringG+="'72 Black Fender Jazz Bass<br>";
			stringG+="with new Custom Shop neck<br>";
			stringG+="Main Bass<br><br>";
			
			
			stringG+="'72 Sunburst Jazz Bass w/ Fender Custom Shop neck<br> and custom p/ups by Tom Brantley  - 2nd bass ( and main backup )<br><br>";
			
			
			stringG+="'74 Black Fender Jazz Bass<br>";
			stringG+="with new Custom Shop neck<br>";
			stringG+="drop D<br><br>";
			
			stringG+="Red Jazz Bass by Fender Custom Shop - 2112<br><br>";
			
			stringG+="Black Jazz Bass by Fender Custom Shop<br> - drop D backup ( and warm up )<br><br>";					
			
			stringG+="Sunburst' Geddy Lee' Jazz Bass <br>- 2112 backup<br><br>";	
			
			
			stringG+="All Geddy's Jazz Basses are fitted with pick guards<br> custom engraved and painted by 'James Hogg'<br><br>";
			
			stringG+="All basses strung with Rotosound Swing Bass 66<br>";
			stringG+="round wound strings of course<br><br>";
			
			stringG+="Leather guitar straps from Levy's<br><br>";
			
			stringG+="Furman PL-Plus DMC power conditioner<br><br>";
			
			stringG+="Shure UHF-R wireless system<br><br>";
			
			stringG+="Shure UA845SWB antenna distribution system<br><br>";
			
			stringG+="Kitty Hawk midi looper<br><br>";
			
			stringG+="Axess Electronics Signal Splitter<br><br>";
			
			stringG+="SansAmp RPM preamp<br><br>";
			
			stringG+="Palmer PDI-05 Speaker Simulator<br><br>";
			
			stringG+="Avalon U5 D.I.<br><br>";
			
			stringG+="Orange AD200 mk. 3 amp head<br><br>";
			
			stringG+="Orange OBC 410 speaker cabinet<br><br>";			
			
			stringG+="72 Black Jazz Bass w/ Fender Custom Shop neck - main bass<br><br>";
			stringG+="72 Sunburst Jazz Bass w/ Fender Custom Shop neck and custom p/ups by Tom Brantley  - 2nd bass ( and main backup )<br><br>";
			stringG+="74 Black Jazz Bass w/ Fender Custom Shop neck - drop D<br><br>";
			stringG+="Red Jazz Bass by Fender Custom Shop - 2112<br><br>";
			stringG+="Black Jazz Bass by Fender Custom Shop - drop D backup ( and warm up )<br><br>";
			stringG+="Sunburst' Geddy Lee' Jazz Bass - 2112 backup";
			stringG+="Jaco fretless is still out but no longer being used for warm up, or anything else.<br><br>";

		}
	}
	$("#gearlistTd").find('.div_content').html(stringG);	
}

var GLBdiscos=new Array([
					 ["RUSH",[
							    "Finding My Way",
								"Need Some Love",
								"Take a Friend",
								"Here Again",
								"What You're Doing",
								"In the Mood",
								"Before And After",
								"Working Man"],"http://itunes.apple.com/us/album/rush-remastered/id129684","http://www.amazon.com/Rush/dp/B000001ES9/ref=sr_1_11?s=music&ie=UTF8&qid=1301254383&sr=1-11","images/discography/c01.jpg"],
					 ["Fly By Night",["Anthem",
								"Best I Can",
								"Beneath, Between & Behind",
								"By Tor & The Snow Dog",
								"(I) At the Tobes of Hades",
								"(II) Across The Styx",
								"(III) Of The Battle",
								"(IV) Epilogue",
								"Fly By Night",
								"Making Memories",
								"Rivendell",
								"In The End"],"http://itunes.apple.com/us/album/fly-by-night-remastered/id50543","http://www.amazon.com/Fly-Night-Rush/dp/B000001ESB/ref=sr_1_1?s=music&ie=UTF8&qid=1301255300&sr=1-1","images/discography/c02.jpg"],
					  ["CARESS OF STEEL",["Bastille Day",
								"I Think I'm Going Bald",
								"Lakeside Park",
								"The Necromancer",
								"(I) Into The Darkness",
								"(II) Under The Shadow",
								"(III) Return Of The Prince",
								"The Fountian Of Lamneth",
								"(I) In The Valley",
								"(II) Didacts And Narpets",
								"(III) No One At The Bridge",
								"(IV) Panacea",
								"(V) Bacchus Plateau",
								"(VI) The Fountian"],"http://itunes.apple.com/us/album/caress-of-steel/id331418381","http://www.amazon.com/Caress-Steel-Rush/dp/B000001F82/ref=sr_1_2?s=music&ie=UTF8&qid=1301255375&sr=1-2","images/discography/c03.jpg"],
					   ["2112",["(I) Overture",
								"(II) The Temples Of Syrinx",
								"(III) Discovery",
								"(IV) Presentation",
								"(V) Oracle: The Dream",
								"(VI) Soliloquy",
								"(VII) Grand Finale",
								"A Passage To Bangkok",
								"The Twilight Zone",
								"Lessons",
								"Tears",
								"Something For Nothing"],"http://itunes.apple.com/us/album/2112-remastered/id129706","http://www.amazon.com/2112-Rush/dp/B000001ESF/ref=sr_1_1?s=music&ie=UTF8&qid=1301255437&sr=1-1","images/discography/c04.jpg"],
					    ["ALL THE WORLD'S A STAGE - Live Album",["Bastille Day",
								"Anthem",
								"Fly By Night/In The Mood",
								"Something for Nothing",
								"Lakeside Park",
								"(I) Overture",
								"(II) The Temples Of Syrinx",
								"(III) Presentation",
								"(IV) Soliloquy",
								"(V) Grand Finale",
								"By-Tor & The Snow Dog",
								"In The End",
								"Working Man/Finding My Way",
								"What You're Doing"],"http://itunes.apple.com/us/album/all-the-worlds-a-stage-live/id331418275","http://www.amazon.com/All-Worlds-Stage-Rush/dp/B000001ESH/ref=sr_1_1?s=music&ie=UTF8&qid=1301255544&sr=1-1","images/discography/c05.jpg"],
						 ["FAREWELL TO KINGS",["A Farewell To Kings",
								"Xanadu",
								"Closer To The Heart",
								"Cinderella Man",
								"Madrigal",
								"Cygnus X-1"],"http://itunes.apple.com/us/album/a-farewell-to-kings/id129726","http://www.amazon.com/Farewell-Kings-Rush/dp/B000001ESJ/ref=sr_1_1?s=music&ie=UTF8&qid=1301256525&sr=1-1","images/discography/c06.jpg"],
						  ["ARCHIVES",["3 Album Release Set",
								"RUSH",
								"Fly By Night",
								"Caress of Steel"],"http://itunes.apple.com/us/playlist/the-basics/id119416463?wm=1","http://www.amazon.com/ARCHIVES-RUSH-LP-SET/dp/B000YNRFF6/ref=sr_1_1?ie=UTF8&qid=1301256694&sr=1-1","images/discography/c07.jpg"],
					 ["HEMISPHERES",["Hemispheres",
								"(I) Prelude",
								"(II) Apollo/Dionysus",
								"(III) Armageddon",
								"(IV) Cygnus",
								"(V) The Sphere",
								"Circumstances",
								"The Trees",
								"La Villa Strangiato"],"http://itunes.apple.com/us/album/hemispheres-remastered/id129742","http://www.amazon.com/Hemispheres-Rush/dp/B000001ESL/ref=sr_1_1?s=music&ie=UTF8&qid=1301256916&sr=1-1","images/discography/c08.jpg"]
					 ],
					 [
					 ["PERMANENT WAVES",["The Spirit Of Radio",
								"Freewill",
								"Jacob's Ladder",
								"Entre Nous",
								"Different Strings",
								"Natural Science",
								"(I) Tide Pools",
								"(II) Hyperspace",
								"(III) Permanent Waves"],"http://itunes.apple.com/us/album/permanent-waves/id129760","http://www.amazon.com/Permanent-Waves-Rush/dp/B000001ESN/ref=sr_1_1?s=music&ie=UTF8&qid=1301257202&sr=1-1","images/discography/c09.jpg"],
					 ["MOVING PICTURES",["Tom Sawyer",
								"Red Barchetta",
								"YYZ",
								"Limelight",
								"The Camera Eye",
								"Witch Hunt (Part III of Fear)",
								"Vital Signs"],"http://itunes.apple.com/us/album/moving-pictures-remastered/id260945","http://www.amazon.com/Moving-Pictures-Rush/dp/B000001ESP/ref=sr_1_1?ie=UTF8&qid=1301257317&sr=1-1-spell","images/discography/c10.jpg"],
					  ["EXIT...STAGE LEFT - Live Album",["Spirit of Radio",
								"Red Barchetta",
								"YYZ",
								"A Passage To Bangkok",
								"Closer To The Heart",
								"Beneath, Between & Behind",
								"Jacob's Ladder",
								"Broons Bane",
								"The Trees",
								"Xanadu",
								"Freewill",
								"Tom Sawyer",
								"La Villa Strangiato"],"http://itunes.apple.com/us/album/exit-stage-left-live/id331417849","http://www.amazon.com/Exit-Stage-Left-Rush/dp/B000001ESR/ref=sr_1_1?s=music&ie=UTF8&qid=1301257657&sr=1-1","images/discography/c11.jpg"],
					   ["SIGNALS",["Subdivisions",
								"The Analog Kid",
								"Chemistry",
								"Digital Man",
								"The Weapon",
								"New World Man",
								"Losing It",
								"Countdown"],"http://itunes.apple.com/us/album/signals-remastered/id261413","http://www.amazon.com/Signals-Rush/dp/B000001EST/ref=sr_1_1?s=music&ie=UTF8&qid=1301257843&sr=1-1","images/discography/c12.jpg"],
					    ["GRACE UNDER PRESSURE",[
								"Distant Early Warning",
								"Afterimage",
								"Red Sector 'A'",
								"The Enemy Within",
								"The Body Electric",
								"Kid Gloves",
								"Red Lenses",
								"Between The Wheels"],"http://itunes.apple.com/us/album/grace-under-pressure-remastered/id129784","http://www.amazon.com/Grace-Under-Pressure-Rush/dp/B000001ESV/ref=sr_1_1?s=music&ie=UTF8&qid=1301258018&sr=1-1","images/discography/c13.jpg"],
						 ["POWER WINDOWS",["The Big Money",
								"Grand Designs",
								"Manhattan Project",
								"Marathon",
								"Territories",
								"Middletown Dreams",
								"Emotion Detector",
								"Mystic Rhythms"],"http://itunes.apple.com/us/album/power-windows-remastered/id129810","http://www.amazon.com/Power-Windows-Rush/dp/B000001ESX/ref=sr_1_1?s=music&ie=UTF8&qid=1301258226&sr=1-1","images/discography/c14.jpg"],
						  ["HOLD YOUR FIRE",["Force Ten",
								"Time Stands Still",
								"Open Secrets",
								"Second Nature",
								"Prime Mover",
								"Lock And Key",
								"Mission",
								"Turn The Page",
								"Tai Shan",
								"High Water"],"http://itunes.apple.com/us/album/hold-your-fire/id261567","http://www.amazon.com/Hold-Your-Fire-Rush/dp/B000001ESZ/ref=sr_1_1?s=music&ie=UTF8&qid=1301258420&sr=1-1","images/discography/c33.jpg"],
						   ["A SHOW OF HANDS - Live Album ",["Intro",
								"The Big Money",
								"Subdivisions",
								"Marathon",
								"Turn The Page",
								"Manhattan Project",
								"Mission",
								"Distant Early Warning",
								"Mystic Rhythms",
								"Witch Hunt",
								"The Rhythm Method",
								"Force Ten",
								"Time Stands Still",
								"Red Sector 'A'",
								"Closer The The Heart"],"http://itunes.apple.com/us/album/a-show-of-hands-live/id261875","http://www.amazon.com/Show-Hands-Rush/dp/B000001ET1/ref=sr_1_1?s=music&ie=UTF8&qid=1301258623&sr=1-1","images/discography/c15.jpg"],
					 ["PRESTO",["Show Don't Tell",
								"Chain Lightning",
								"The Pass",
								"War Paint",
								"Scars",
								"Presto",
								"Superconductor",
								"Anagram (For Mongo)",
								"Red Tide",
								"Hand Over Fist",
								"Available Light"],"http://itunes.apple.com/us/album/presto-remastered/id20888445","http://www.amazon.com/Presto-Rush/dp/B0002NRQTS/ref=sr_1_1?s=music&ie=UTF8&qid=1301258809&sr=1-1","images/discography/c16.jpg"]
					 ],
					 [
					 ["CHRONICLES",["Finding My Way",
								"Working Man",
								"Fly By Night",
								"Anthem",
								"Bastille Day",
								"Lakeside Park",
								"The Temples Of Syrinx",
								"What You're Doing (Live)",
								"A Farewell To Kings",
								"Closer To The Heart",
								"The Trees",
								"La Villa Stangiato",
								"Freewill",
								"Spirit Of Radio"],"http://itunes.apple.com/us/album/chronicles/id83412","http://www.amazon.com/Chronicles-Sound-Vision-DVD-Combo/dp/B0007TKI0G/ref=sr_1_2?s=music&ie=UTF8&qid=1301258996&sr=1-2","images/discography/c17.jpg"],
					 ["ROLL THE BONES",["Dreamline",
								"Bravado",
								"Roll The Bones",
								"Face Up",
								"Where's My Thing?",
								"(Part IV, 'Gangster Of Boats')",
								"The Big Wheel",
								"Heresy",
								"Ghost Of A Chance",
								"Neurotica",
								"You Bet Your Life"],"http://itunes.apple.com/us/album/roll-the-bones-remastered/id20888580","http://www.amazon.com/Roll-Bones-Rush/dp/B0002NRQU2/ref=sr_1_1?s=music&ie=UTF8&qid=1301259233&sr=1-1","images/discography/c18.jpg"],
					  ["COUNTERPARTS",["Animate",
								"Stick It Out",
								"Cut To The Chase",
								"Nobody's Hero",
								"Between Sun & Moon",
								"Alien Shore",
								"The Speed Of Love",
								"Double Agent",
								"Leave That Thing Alone",
								"Cold Fire",
								"Everyday Glory"],"http://itunes.apple.com/us/album/counterparts-remastered/id20888637","http://www.amazon.com/Counterparts-Rush/dp/B0002NRQTI/ref=sr_1_1?s=music&ie=UTF8&qid=1301259767&sr=1-1","images/discography/c19.jpg"],
					   ["TEST FOR ECHO",[
								"Test For Echo",
								"Driven",
								"Half The World",
								"Colour Of Light",
								"Time and Motion",
								"Totem",
								"Dog Years",
								"Virtuality",
								"Resist",
								"Limbo",
								"Carve Away The Stone"],"http://itunes.apple.com/us/album/test-for-echo-remastered/id20888715","http://www.amazon.com/Test-Echo-Rush/dp/B0002NRQUW/ref=sr_1_1?s=music&ie=UTF8&qid=1301260064&sr=1-1","images/discography/c20.jpg"],
					    ["RETROSPECTIVE I (1974-1980)",["The Spirit Of Radio",
								"The Trees",
								"Something For Nothing",
								"Freewill",
								"Xanadu",
								"Bastille Day",
								"By-Tor And The Snow Dog",
								"Anthem",
								"Closer To The Heart",
								"2112 Overture",
								"The Temples Of Syrinx",
								"La Villa Strangiato",
								"Fly By Night",
								"Finding My Way"],"http://itunes.apple.com/us/album/retrospective-i-1974-1980/id310137186","http://www.amazon.com/Retrospective-I-Rush/dp/B000001EVB/ref=sr_1_1?s=music&ie=UTF8&qid=1301260246&sr=1-1","images/discography/c21.jpg"],
						 ["RETROSPECTIVE II (1981-1987)",["The Big Money",
								"Red Barchetta",
								"Subdivisions",
								"Time Stands Still",
								"Mystic Rhythms",
								"The Analog Kid",
								"Distant Early Warning",
								"Marathon",
								"The Body Electric",
								"Mission",
								"Limelight",
								"Red Sector 'A'",
								"New World Man",
								"Tom Sawyer",
								"Force Ten"],"http://itunes.apple.com/us/album/retrospective-ii-1981-1987/id129955","http://www.amazon.com/Retrospective-2-1981-1987-Rush/dp/B000001EVD/ref=sr_1_2?s=music&ie=UTF8&qid=1301260340&sr=1-2","images/discography/c22.jpg"],
					 ["DIFFERENT STAGES - Live Album",["Dreamline",
								"Limelight",
								"Driven",
								"Bravado",
								"Animate",
								"Show Don't Tell",
								"The Trees",
								"Nobody's Hero",
								"Closer To The Heart"],"http://itunes.apple.com/us/album/different-stages-live/id157233902","http://www.amazon.com/Different-Stages-Rush/dp/B00000DGV2/ref=sr_1_1?s=music&ie=UTF8&qid=1301260715&sr=1-1","images/discography/c23.jpg"]
					 ],
					 [
					 ["VAPOR TRAILS",["One Little Victory",
								"Ceiling Unlimited",
								"Ghost Rider",
								"Peaceable Kingdom",
								"The Stars Look Down",
								"How It Is",
								"Vapor Trail",
								"Secret Touch",
								"Earthshine",
								"Sweet Miracle",
								"Nocturne",
								"Freeze (Part IV of 'Fear')",
								"Out Of The Cradle"],"http://itunes.apple.com/us/album/vapor-trails/id310534962","http://www.amazon.com/Vapor-Trails-Rush/dp/B000065DTE/ref=sr_1_1?s=music&ie=UTF8&qid=1301260928&sr=1-1","images/discography/c24.jpg"],
					 ["THE SPIRIT OF RADIO",["Working Man",
								"Fly By Night",
								"2112 Overture/The Temples Of Syrinx",
								"Closer To The Heart",
								"The Trees",
								"The Spirit Of Radio",
								"Freewill",
								"Limelight",
								"Tom Sawyer",
								"Red Barchetta",
								"New World Man",
								"Subdivisions",
								"Distant Early Warning",
								"The Big Money",
								"Force Ten",
								"Time Stand Still"],"http://itunes.apple.com/us/album/the-spirit-radio-greatest/id521302","http://www.amazon.com/Spirit-Radio-Greatest-Hits-1974-1987/dp/B0000794FS/ref=sr_1_1?s=music&ie=UTF8&qid=1301261100&sr=1-1","images/discography/c25.jpg"],
					  ["RUSH IN RIO CD - Live Album",["Tom Sawyer",
								"Distant Early Warning",
								"New World Man",
								"Roll The Bones",
								"Earthshine",
								"YYZ",
								"The Pass",
								"Bravado",
								"The Big Money",
								"The Trees",
								"Free Will",
								"Closer To The Heart",
								"Natural Science"],"http://itunes.apple.com/us/album/rush-in-rio-live/id5305450","http://www.amazon.com/Rush-Rio/dp/B0000C0FJB/ref=sr_1_2?ie=UTF8&qid=1301261167&sr=1-2","images/discography/c26.jpg"],
					   ["RUSH IN RIO DVD",["Tom Sawyer",
								"Distant Early Warning",
								"New World Man",
								"Roll The Bones",
								"Earthshine",
								"YYZ",
								"The Pass",
								"Bravado",
								"The Big Money",
								"The Trees",
								"Free Will",
								"Closer To The Heart",
								"Natural Science"
										   ],"http://itunes.apple.com/us/album/rush-in-rio-live/id5305450","http://www.amazon.com/Rush-Rio-Geddy-Lee/dp/B0000CG89W/ref=sr_1_1?s=music&ie=UTF8&qid=1301261816&sr=1-1","images/discography/c27.jpg"],
					    ["FEEDBACK",["Summertime Blues",
								"Heart Full of Soul",
								"The Seeker",
								"For What It’s Worth",
								"Shapes of Things",
								"Mr. Soul",
								"Crossroads",
								"Seven and Seven Is"],"http://itunes.apple.com/us/album/feedback/id16232803","http://www.amazon.com/Feedback-Rush/dp/B00028HBIY/ref=sr_1_1?s=music&ie=UTF8&qid=1301261976&sr=1-1","images/discography/c28.jpg"],
						 ["R30 - Live Album",["R-30 Overture",
								"The Spirit of Radio",
								"Force Ten",
								"Animate",
								"Subdivisions",
								"Earthshine",
								"Red Barchetta",
								"Roll The Bones",
								"The Seeker",
								"Tom Sawyer",
								"Dreamline",
								"Between the Wheels",
								"Mystic Rhythms",
								"Der Trommler",
								"Resist",
								"Heart Full of Soul",
								"2112",
								"Xanadu",
								"Working Man",
								"Summertime Blues",
								"Crossroads",
								"Limelight"],"http://itunes.apple.com/us/album/r30-live/id95736831","http://www.amazon.com/Rush-R30-30th-Anniversary-Deluxe/dp/B000BOH90Y/ref=sr_1_1?s=music&ie=UTF8&qid=1301262271&sr=1-1","images/discography/c29.jpg"],
						  ["REPLAY",["EXIT...STAGE LEFT",
								"Limelight",
								"Tom Sawyer",
								"The Trees",
								"Xanadu",
								"Red Barchetta",
								"Freewill",
								"Closer To The Heart",
								"YYZ",
								"By-Tor And The Snow Dog / In The End* /",
								"In The Mood / 2112 Finale",
								"YYZ"],"http://itunes.apple.com/us/playlist/the-basics/id119416463?wm=1","http://www.amazon.com/Rush-Replay-DVD-Box-Set/dp/B000FDFOX0/ref=sr_1_1?s=music&ie=UTF8&qid=1301262512&sr=1-1","images/discography/c30.jpg"],
					 ["SNAKES & ARROWS",["Far Cry",
								"Armor and Sword",
								"Workin' Them Angels",
								"The Larger Bowl",
								"Spindrift",
								"The Main Monkey Business",
								"The Way the Wind Blows",
								"Hope",
								"Faithless",
								"Bravest Face",
								"Good News First",
								"Malignant Narcissism",
								"We Hold On"],"http://itunes.apple.com/us/album/snakes-arrows/id252136710","http://www.amazon.com/Snakes-Arrows-Rush/dp/B000NVIXFK/ref=sr_1_1?s=music&ie=UTF8&qid=1301262738&sr=1-1","images/discography/c31.jpg"],
					 ["CARAVAN / BU2B",["Caravan",
								"BU2B"],"http://itunes.apple.com/us/album/caravan-single/id373163508","http://www.amazon.com/Caravan/dp/B003MX743I/ref=sr_1_1?ie=UTF8&qid=1301359608&sr=8-1","images/discography/c34.jpg"]
					 ]);

function loadDiscography(){
	cargarAlbumesAno(0,'div70s');
}

function cargarAlbum(pas,i){
		var variableString="";
		for(var p=0;p<GLBdiscos[pas].length;p++){
			document.getElementById("disco"+pas+"_"+p).className="titulo6";
		}
		document.getElementById("disco"+pas+"_"+i).className="titulo7";
	
		variableString+='<table cellpadding="0" cellspacing="0" border="0" width="329px"  align="left" >';
			variableString+='<tr valign="top">';
		   variableString+=' 	<td colspan="2" style="color:#FFFFFF; font-weight:bold; font-size:16px; font-family:Arial;vertical-align:top;">'+GLBdiscos[pas][i][0]+'</td>';
		   variableString+=' </tr>';
		   variableString+=' <tr valign="top">';
			 variableString+='   <td colspan="2" style="border-bottom:1px solid #AC241F; width:329px;vertical-align:top"></td>';
		   variableString+=' </tr>';
		   variableString+=' <tr valign="top">';
			variableString+='	<td style="padding:10px 0 3px 0;vertical-align:top ">';
				variableString+='<table cellpadding="0" cellspacing="0" border="0"  align="center" >';
						variableString+='<tr><td colspan="2"><img src="'+GLBdiscos[pas][i][4]+'" /></td></tr>';
						variableString+='<tr>';
						variableString+='	<td style="text-align:right; padding:20px 20px 0 0;vertical-align:top "><a target="_blank" href="'+GLBdiscos[pas][i][2]+'"><img src="images/discography/buy-itunes.png" /></a></td>';
						   variableString+=' <td style="text-align:left; padding:28px 20px 0 0;vertical-align:top "><a target="_blank" href="'+GLBdiscos[pas][i][3]+'"><img src="images/discography/buy-amazon.png" /></a></td>';
					   variableString+=' </tr>';
				   variableString+=' </table>';
			
				variableString+='<td style="padding:10px 0 3px 0;vertical-align:top">';
					
						var columna1="";
						var columna2="";
						
						for(var p=0;p<GLBdiscos[pas][i][1].length;p++){
							if(p>13){
								columna2+='<tr valign="top"><td style="padding:0 0 5px 30px;color:#FFFFFF;vertical-align:top;font-family:Arial; font-size:12px;">'+GLBdiscos[pas][i][1][p]+'</td></tr>';
							}
							else{
								columna1+='<tr valign="top"><td style="padding:0 0 5px 30px;color:#FFFFFF;vertical-align:top;font-family:Arial; font-size:12px;">'+GLBdiscos[pas][i][1][p]+'</td></tr>';
							}
						}
						variableString+='<table cellpadding="0" cellspacing="0" border="0" width="329px"  align="left" >';
							variableString+='<tr valign="top"><td style="vertical-align:top">';
							variableString+='<table cellpadding="0" cellspacing="0" border="0" align="left">'+columna1+'</table>';
							variableString+='</td>';
							if(GLBdiscos[pas][i][1].length>13){
								variableString+='<td style="vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" align="left">'+columna2+'</table>';
								variableString+='</td>';
							}
							variableString+='</tr>';
				  		variableString+=' </table>';
				variableString+='</td>';
		   variableString+=' </tr>';
			 variableString+='<tr valign="top">';
				variableString+='<td colspan="2" style="text-align:center;padding:3px 30px 10px 0; vertical-align:top ">';
					
			   variableString+=' </td> ';                                           	
		   variableString+=' </tr>';
		variableString+='</table>';
		document.getElementById("listaCanciones").innerHTML=variableString;
}

function cargarAlbumesAno(pas,divano){
	document.getElementById("div70s").className="titulo6";
	document.getElementById("div80s").className="titulo6";
	document.getElementById("div90s").className="titulo6";
	document.getElementById("div00s").className="titulo6";
	
	document.getElementById(divano).className="titulo7";
	
	var variableString="";
	
	variableString+='<table cellpadding="0" cellspacing="0" border="0" width="258px"  align="left" >';
	for(var i=0;i<GLBdiscos[pas].length;i++){
		
		variableString+='<tr>';
			variableString+='<td colspan="4" style="padding:10px 0 10px 0"><a href="javascript:cargarAlbum('+pas+','+i+')"><h1 class="titulo6" id="disco'+pas+'_'+i+'">'+GLBdiscos[pas][i][0]+'</h1></a></td>';
		variableString+='</tr>';
	}
	variableString+='</table>';
	
	document.getElementById("listaAlbums").innerHTML=variableString;
	cargarAlbum(pas,0);
}


function Ira(pagina){
	if(!estoyanimando){
		estoyanimando=true;
		minimarTodo(paginaActual);
		CargarPagina(pagina);
		
		
		var w_h = parseInt($(window).height());
		var min_height=702;
		
		if(w_h > min_height){
			document.documentElement.style.overflowY = 'hidden';
		}else{
			//document.documentElement.style.overflowY = 'hidden';
		}
		
		
		$("."+paginaActual).animate({bottom:-$(window).height()+36},800,'swing', function() {			
			$("."+paginaActual).css('display','none');			
			$("."+pagina).css('display','');
			
			var d_bottom= -36;
			switch(pagina){
				case 'home':
					d_bottom = -10
					break;
				case 'news':
					d_bottom = -46
					break;
				case 'band':
					d_bottom = -46
					break;
				case 'tour':
					d_bottom = -46
					break;
				case 'multimedia':
					d_bottom = -46
					break;
				case 'multimedia_pictureTime':
					d_bottom = -46
					break;					
				case 'discography':
					d_bottom = -46
					break;	
				case 'mobile':
					d_bottom = -36
					break;					
			}
			
			$("."+pagina).animate({bottom:(d_bottom+'px')},800,'swing', function() {
				document.documentElement.style.overflowY = 'auto';
				estoyanimando=false;
				paginaActual=pagina;
				if(pagina=="home"){
					
					rotateTimer=setTimeout("rotateObject('#wheel',"+(degree+120)+")",900);
					
				//	rotate("#wheel",-120);
					
					
				}
				else{
					clearTimeout(rotateTimer);
			
				}
			});
		
			//
		});		
		
	}
}


function rotateObject(selectorForElementsToRotate,degree) {
	$(selectorForElementsToRotate).rotateAnimation({animateAngle:degree,preservePosition:true,callback:function() {
		
		$(selectorForElementsToRotate).rotate(degree%360);
		
		degree=degree+120;
		rotateTimer=setTimeout("rotateObject('"+selectorForElementsToRotate+"',"+degree+")",200);
	}});
}
