function changeInfoBoxes(newInfoBox) {
	$('.inputinfobox').animate({ height: 'hide', opacity: 'hide' }, 'fast');
	$(newInfoBox).animate({ height: 'show', opacity: 'show' }, 'slow');
}

function showHide(link,target) {
	$(link).toggle(function() {
		$(target).animate({ height: 'show', opacity: 'show' }, 'slow');
	}, function() {
		$(target).animate({ height: 'hide', opacity: 'hide' }, 'slow');
	});
}
function close(target) {
	$(target).animate({ height: 'hide', opacity: 'hide' }, 'fast');
}
function show(target) {
	$(target).animate({ height: 'show', opacity: 'show' }, 'fast');
}

function teaserinfo(link,target) {
	
	$(link).toggle(function() {
		$(target).animate({ height: 'show', opacity: 'show' }, 'slow');
	}, function() {
		$(target).animate({ height: 'hide', opacity: 'hide' }, 'slow');
	});
}

// Main Document Ready Function
$(document).ready(function(){
	
	$('img.secure').parent().css('position', 'relative');
	$('img.secure').parent().append('<div class="image-secure"></div>');
	
	$('.image-secure').each(function(){
		$(this).height($(this).prev().height());
		$(this).width($(this).prev().width());
	});
	
	Shadowbox.init({
		counterType: "skip",
		//slideshowDelay: 5,
		continuous: true,
		onFinish: function () { $('#sb-body-inner img').bind("mousedown",function(e){ return false; });  }
	});
	jQuery('ul.sf-menu').superfish();
});
