﻿jQuery.noConflict();
jQuery(document).ready(function () {	
	
	jQuery('#headerpic').cycle();
	
jQuery('.thumbN img').each(function() {
	if(jQuery(this).height() > jQuery(this).width()) {
	jQuery(this).css({
	maxHeight: "100px"
	});
	}
	else
	{
	jQuery(this).css({
	maxWidth: "200px"
	});
	}
});

	
	    jQuery('#article').click(function () {
			jQuery('.photo, .video, .annat').slideUp('100');
			jQuery('.article').slideDown('100');
			jQuery('#article').css({ background: '#0b0b0b'});
			jQuery('#photo, #video, #alla, #other').css({ background: 'transparent'});			
		});
			
		jQuery('#photo').click(function () {
			jQuery('.article, .video, .annat').slideUp('100');
			jQuery('.photo').slideDown('100');
			jQuery('#photo').css({ background: '#0b0b0b'});
			jQuery('#article, #video, #alla, #other').css({ background: 'transparent'});
		});
			
		jQuery('#video').click(function () {
			jQuery('.photo, .article, .annat').slideUp('100');
			jQuery('.video').slideDown('100');
			jQuery('#video').css({ background: '#0b0b0b'});
			jQuery('#photo, #article, #alla, #other').css({ background: 'transparent'});
		});
		
		jQuery('#other').click(function () {
			jQuery('.photo, .article, .video').slideUp('100');
			jQuery('.other').slideDown('100');
			jQuery('#other').css({ background: '#0b0b0b'});
			jQuery('#photo, #article, #alla').css({ background: ''});
		});
			
		jQuery('#alla').click(function () {
			jQuery('#alla').css({ background: '#0b0b0b'});
			jQuery('#photo, #article, #video, #other').css({ background: 'transparent'});
			jQuery('.photo, .article, .video, .annat').slideDown('100');
		});	
});
