// Onload When Document Ready
$j(document).ready(function() {
  $j('a[rel=external]').attr('target', '_blank');
  $j('.equalize').equalHeights('true');
  $j("img[src$=png],.pngfix").pngfix();
  $j('ul li:nth-child(even)').addClass('zebra');
  $j("ul").prepend("<div class=\"ulCap\">&nbsp;</div>");
  $j("ul").append("<div class=\"ulBase\">&nbsp;</div>");
  //$j(document).stickyfooter();
  $j("ul#footernav li:not(:last)").append("<span class=\"spacer\">|</span>");

	//makeCustomList();
	
	if($j("a.fancy").length) {
		$j("a.fancy").fancybox({
			'hideOnContentClick': false,
			'frameWidth': 415,
			'frameHeight': 325
		});
	}

	if($j("#autostart").length){
		$j("#autostart").fancybox({
			'overlayShow':true,
			'frameWidth':838,
			'frameHeight':540,
	  	'callbackOnClose': function() {document.location.href='http://www.google.com';} 
		}).trigger('click');
	}
});

//function makeCustomList(){
//    $j('#content_container ul > li:first-child').before("<li class=\"list-first-item\">-</li>");
//    $j('#content_container ul > li:last-child').after("<li class=\"list-last-item\">-</li>");
//    $j('#content_container ul > li:not(:first-child):not(:last-child):nth-child(odd)').css("background-color", "#eee");
//};
