$(document).ready(function() {
	$("h2").wrap('<div class="heading2"><div class="heading2_left"><div class="heading2_right"></div></div></div>');	
	
	//slideshow
	$('.slideshow').cycle({ 
		fx:   'shuffle', 
		shuffle: { 
			top:  110, 
			left:  420 
		}, 
		delay: -2000 
	});

	$('.slideshow').attr('style','position: relative; overflow-x: visible; overflow-y: visible;');
	$('a.lightbox').lightBox();
}); 

function childnav(action,div)
	{
		if(document.getElementById(div) != null) {
		switch(action)
			{
				case 'hide':
					$('#'+div).hide();
				break;
				case 'show':
					var options = {};
					//$('#'+div).show('blind',options,300);
					document.getElementById(div).style.display = 'block';
				break;
			}
		}
	}
	
function catfilter(catid) {	
		$("div.post").addClass(function(index,currentClass) {
		
		if(catid == "all") {
			$(this).show("hightlight");
		} else {
			if(currentClass.indexOf("cat"+catid) == -1){
				$(this).effect("fade");
			} else {
				$(this).show("hightlight");
			}
		}
									});
	}
