
$(document).ready(function(){
	// cycle plugin initalization
	// TONS of options and effects at:
	// http://malsup.com/jquery/cycle/
	$('div.slideshow').cycle({ 
		fx:     'fade', 
		speed:   1000, 
		timeout: 6000, 
		next:   '.promo img', 
		pause:   1 
	});
	
	// gallery - lightbox plugin
	$(function() {
        $('.gallery1 .item a').lightBox();
    });
	
	// second gallery - lightbox plugin
	$(function() {
        $('.gallery2 .item a').lightBox();
    });
	
	// second gallery - lightbox plugin
	$(function() {
        $('a.blog-lightbox').lightBox();
    });
	
	$(".more").hide();
	$(".showmore").click(function(){
			$(".more").slideToggle("slow");
			$(".showmore .choices").toggle();
	});
	
});


// Set up the random image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = '/files/resume3.jpg'
theImages[1] = '/files/resume4.jpg'

// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));

function randomImage(){
	document.write('<img src="'+theImages[whichImage]+'" />');
}

//  End -->

/**
* Styleswitch stylesheet switcher built on jQuery
* Under an Attribution, Share Alike License
* By Kelvin Luck ( http://www.kelvinluck.com/ )
 */



