$(document).ready(function(){
	$('.striped tr:even').addClass('alt');
	if($(document).flash.hasFlash(9,0,0) == true){
		$.sifr({path:'/media/library'});
		$('.sifrb').sifr({ font: 'lucidab', zoom:1.01, zoomLeft: .03 });

		if($.browser.msie){
			// Check if parent is quick facts and disable it there
			$('.big-txt, .sifr, h3.num').not(".quick-facts .big-txt").sifr({ font: 'lucida', zoom:1.02,zoomLeft: .02  });
			$('.big-txt.utf, .sifr.utf, h3.num.utf').not(".quick-facts .big-txt").sifr({ font: 'lucida_unicode', zoom:1.02,zoomLeft: .02  });
		} else {
			$('.big-txt, .sifr, h3.num').sifr({ font: 'lucida', zoom:1.02,zoomLeft: .02  });
			$('.big-txt.utf, .sifr.utf, h3.num.utf').sifr({ font: 'lucida_unicode', zoom:1.02,zoomLeft: .02  });
			
		}
	}
		//toggle

	$(".collapse").toggle(function(){
		$(this).addClass("on");
	    $(this).children('ul').slideToggle('fast');
	},function(){
		$(this).children('ul').slideToggle('fast');
		$(this).removeClass("on");
	});
// from fancybox js
	   $("td .img a").fancybox();
	   $(".thumbwrap a").fancybox({ 'hideOnContentClick': true });
	   //workaround for IE6 for not uploading eaxh image a lot of times
	   //http://www.zachleat.com/web/2008/10/18/dear-ie6-please-cache-my-images/
	   if(jQuery.browser.msie && parseInt(jQuery.browser.version, 10) == 6) {
		   try {
		     document.execCommand("BackgroundImageCache", false, true);
		   } catch(err) {}
		 }

// from cycle plugin js
/*
    $('#slideshow')
        .cycle({

        cleartype:  1 ,
        //fx:     'fade',
        speed:  'slow',
        timeout: 0,
        //next:   '#next',
        //prev:   '#prev',
        pager:  '#pager'
        });
*/

});
