jQuery(document).ready(function($) {
	$('#content h2.article-title').prependTo('#more');
	winHeight = $(window).height();
	fullHeight = $(document).height();
	winWidth = $(window).width();
	$('#more').css('top',(winHeight-100)+'px');
	$('#more').css('width',(winWidth-230)+'px');
	$('#nav-outer, #header').css('height',winHeight+'px');
	$('#slideshow li, #slideshows li').css('height','auto');
	$('#slideshow li, #slideshows li').css('display','inline');
	$('#slideshow li, #slideshows li').css('margin','0');
	$('#slideshow li, #slideshows li').css('padding','0');
//	$('#slideshows li')css('overflow','hidden');
	$('#slideshows').css('height',(winHeight)+'px');
	$('#slideshows').css('width',(winWidth)+'px');
	$('#slideshows').css('overflow','hidden');

	$('#slideshow').fadeSlideShow({
		width: winWidth,
        height: winHeight
	});
	$('#slideshow img').css('width','100%');
	$('#slideshows img').css('width','100%');
	$('#slideshow img').css('height',(winHeight)+'px');
	$('#slideshows img').css('height',(winHeight)+'px');

/*	
	$('.toplevel li').each(function(i){
		if ( (i==0) || (i==3)|| (i==6) || (i==9) || (i==12) || (i==15) || (i==18) ) {
			$(this).addClass('red');
		}
		if ( (i==1) || (i==4)|| (i==7) || (i==10) || (i==13) || (i==16) || (i==19) ) {
			$(this).addClass('green');
		}
		if ( (i==2) || (i==5)|| (i==8) || (i==11) || (i==14) || (i==17) || (i==20) ) {
			$(this).addClass('yellow');
		}
	});
	$('#verticalNav .toplevel > li').each(function(i){
		if ( (i==0) || (i==3)|| (i==6) || (i==9) || (i==12) || (i==15) || (i==18) ) {
			$(this).addClass('red');
		}
		if ( (i==1) || (i==4)|| (i==7) || (i==10) || (i==13) || (i==16) || (i==19) ) {
			$(this).addClass('green');
		}
		if ( (i==2) || (i==5)|| (i==8) || (i==11) || (i==14) || (i==17) || (i==20) ) {
			$(this).addClass('yellow');
		}
	});
*/	
	//check if has children, check if children is visible, add active class
	if ($('a.launchlightbox').length > 0) {
	 $('a.launchlightbox').lightBox();
	 }
	
	if ($('#cid_11').length > 0) {
		$('.form-checkbox-item').css('clear','none');
	}	
});

jQuery(window).load(function () {
  //alert('page fully loaded');
  jQuery('#headerimgs').fadeIn('slow');
});


