$(document).ready( function() {
	// queryString support
	if (document.URL.indexOf('?')+ 1) {
		var args = document.URL.substr(document.URL.indexOf('?')+ 1).split('&');
		$.each(args, function() {
			var arg = this.split('=');
			if (arg[0]=='style') {
				$('link[rel="stylesheet"]').attr('href', 'css/style'+ arg[1] +'.css')
			}
		});
	}
	//
	// image rotator
	// http://jquery.malsup.com/cycle/lite/
	//
	$.getScript('https://github.com/downloads/malsup/cycle/jquery.cycle.lite.1.1.min.js', function() {
		$('#viewport').cycle({
			speed: 5000
			, fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		}).show();
	});
});
