var isWhite = false;
		Galleria.loadTheme('themes/classic/galleria.classic.min.js');
		
		function makebg(imgname){
			   var cssObj = {
					      'background-image' : 'url("'+imgname+'")',
					      'background-size' : '100%',
					      'background-repeat' : 'no-repeat'
					    }
			$("body").css(cssObj);
		}
		
		function fadeHeadOut(){
			$('#header').fadeOut(950);	
			
		}
		
		function fadeHeadIn(){
			$('#header').fadeIn(200);
		}
		
		function switchTheme(){
		    if(isWhite){
		    	isWhite = false;
		    	$("#everything").css('background-image' , 'url("bgpat4.png")');
		    }else{
		    	isWhite = true;
		    	$("#everything").css('background-image' , 'url("bgpatWhite.png")');
		    }
		    
		   
			
		}
		
		function switchSet(SetID){
			 var flickr = new Galleria.Flickr();
		    flickr.setOptions({
		        max: 50,
		        thumbSize: 'medium',
		    }).set(SetID, function(data) {
		        Galleria.get(0).load( data ); // reloads the first galleria instance with the new data
		    });   			
			
		}
		
		function makeActive(linkTitle){
			$(".active").removeClass('active');
			$('a[title="'+linkTitle+'"]').addClass('active');
		}
		
		
		
