jQuery(document).ready(function() {
		/* TOGGLE */
	$('div.toggle').click(function () {
	$(this).next('div.toggle_content').toggle(250);
	});
	
	$('div.toggle').toggle(
	function () { $(this).css('background-position', 'left -68px'); },
	function () { $(this).css('background-position', 'left 12px'); }
	);
	
			$("a[rel^='prettyPhoto']").prettyPhoto({theme:'facebook'});
			

			var results =[];
                var elements = $("#slides").children('a');
                $.map( elements  , function(i, n){
                        if( n%6 === 0 ){
                                results.push(n);
                        }
                });
                $.each( results , function(i,v){
                        elements.slice(v, v+6).wrapAll('<div class="row"></div>');
                });

				$('#slides').cycle({ 
    fx:     'scrollVert', 
    speed:  'slow', 
	pause:1,
	requeueOnImageNotLoaded:1,
	cleartypeNoBg:   true

	});

	});

    // Classic theme is now loaded using <script> instead
    // You can still use loadTheme if you like, either works.

