jQuery.noConflict();

jQuery(document).ready(function(){
 jQuery("#verkleinern").fontscale("p, #content-main li, #content-main a","-",{unit:"px",increment:1});
 jQuery("#vergroessern").fontscale("p, #content-main li, #content-main a","+",{unit:"px",increment:1});
 jQuery("#standard").fontscale("p, #content-main li, #content-main a","reset");
 
 jQuery('div#font-size-changer').css({'display':'block'});
 
 if(jQuery('table tr').length > 0){
	 jQuery('table tr:even').css({'background-color' : '#f2f2f2'});
 }
 
 if(jQuery("a.colorboxSlide").length > 0){
	 jQuery("a.colorboxSlide").colorbox({ maxWidth: "800px", maxHeight: "600px"});
 }
 if(jQuery("a[rel*='lightbox']").length > 0){
 	jQuery("a[rel*='lightbox']").colorbox({maxWidth: "800px", maxHeight: "600px"});
 }
	var $sidebar   = jQuery("#content-sidebar"),
        $window    = jQuery(window),
        offset     = $sidebar.offset(),
        topPadding = 100;

    $window.scroll(function() {
        if ($window.scrollTop() > offset.top) {
            $sidebar.stop().animate({
                marginTop: $window.scrollTop() - offset.top + topPadding
            });
        } else {
            $sidebar.stop().animate({
                marginTop: 79
            });
        }
    });

});
