$(document).ready(function () {

	/* This is basic - uses default settings */
	$("a.fancybox").fancybox({
		'padding': 0
		}
	);

	$("a.fancy-video").click(function () {
		$.fancybox({
			'padding': 0,
			'autoScale': false,
			'transitionIn': 'none',
			'transitionOut': 'none',
			'title': this.title,
			'width': 640,
			'height': 360,
			'href': this.href.replace(new RegExp("watch\\?v=", "i"), 'v/') + '&autoplay=1',
			'type': 'swf',
			'swf': {
				'wmode': 'transparent',
				'allowfullscreen': 'true'
			}
		});
		return false;
	});

	/* pngFix load... */
	$(document).pngFix();

	/* Tootip load... */
	$("a.category").tooltip({ effect: 'toggle' });

	// setup ul.tabs to work as tabs for each div directly under div.panes
	$("ul.css-tabs").tabs("div.css-panes > div");
});

function clickContainerTitle(objDiv, aObj) {
	var descDiv = objDiv.children().eq(2);
	descDiv.slideToggle();
	$(aObj).toggleClass('open');
}
