$(document).ready(function(){
	
	$('.columnize3').makeacolumnlists({cols:3,colWidth:0,equalHeight:false,startN:1});
	
    $('#slider1').anythingSlider({
		startStopped   : false, // If autoPlay is on, this can force it to start stopped
		width          : 560,  // Override the default CSS width
		height         : 315,  // Override the default CSS width
		toggleControls : false, // if true, then slide in controls on hover and slider change, hide @ other times
		resizeContents      : true,      // If true, solitary images/objects in the panel will expand to fit the viewport
        buildArrows         : false,      // If true, builds the forwards and backwards buttons
        buildNavigation     : false 
	});
	
	
	/*	
	if(location.pathname == "/sandbox/wordpress/"){
        $(document).bgStretcher({
            images: ['http://the-idea-store.org/sandbox/wordpress/wp-content/themes/idea-store/images/bg-puzzle.jpg'], imageWidth: 3072, imageHeight: 2304, slideShow: false
        });
	}else{
	    $(document).bgStretcher({
            images: ['http://the-idea-store.org/sandbox/wordpress/assets/images/front-page/Eggs-for-Index.jpg'], imageWidth: 3072, imageHeight: 2304, slideShow: false
        });
	}*/
	
	var rand=Math.floor(Math.random()*6);
	
	rand=Math.floor(Math.random()*6);
	rand=Math.floor(Math.random()*6);
	
	//alert('http://the-idea-store.org/sandbox/wordpress/assets/images/backgrounds/bg' +rand+ '.jpg');
	
	$(document).bgStretcher({
            images: ['http://the-idea-store.org/assets/images/backgrounds/bg' +rand+ '.jpg'], imageWidth: 1024, imageHeight: 768, slideShow: false
    });
	

    
    
    $('#ea').example('Sign up for our newsletter!');
	
});

