$(document).ready(function() {			
			
	// show child categories lists when user is on a detail page & highlight active category by adding class "activeCat"
	if ( $('.logos-children li').is('.current-category') ) {
		$('.logos-children').show();
		$(".collateral-children").hide();
	} else if ( $('.collateral-children li').is('.current-category') ) {
		$('.collateral-children').show();
		$(".logos-children").hide();
	} else {
		// hide ordered list
		$(".collateral-children").hide();
		$(".logos-children").hide();
	}
	
	//toggle #ordered lists show/hide
	$("a#logos-button").click(function() {
		$(".logos-children").toggle(400);
		return false;
	});
	
	$("a#collateral-button").click(function() {
		$(".collateral-children").toggle(400);
		return false;
	});
	
	// for Super Feature, remove normal post class, add superFeature class
	$(".homepage div:first").removeClass('postWrapper').addClass('superFeature');
	
	// qTip customization
	$("a.tip").qtip({
     content: 'click for more',
     position: {
     	target: 'mouse',
     	corner: {
     		target: 'rightMiddle',
     		tooltip: 'leftMiddle',
   		},
   		adjust: { x: 6, y: 0 },
     },
     style: {
     	tip: { 
     		corner: 'leftMiddle',
     		color: '#F6B82F',
     		size: { x: 4, y: 12 },
     		 },
     	border: { width: 0 },
     	background: '#F6B82F',
     	color: 'white',
     	width: 90,
     	height: 10,
     	padding: 6,
     	}
	});
	
});