//jQuery.noConflict();
/*@cc_on(function() {
    @if (@_jscript_version <= 5.7)
    jQuery(function($) { $("hr").wrap("<div class=\"hr\"></div>"); });
    @end

})(); @*/

(function($) {
	$.fn.cycle.transitions.scrollVertUp = function($cont, $slides, opts) {
        $cont.css('overflow','hidden');
        opts.before.push(function(curr, next, opts, fwd) {
                $.fn.cycle.commonReset(curr,next,opts);
                opts.cssBefore.top = fwd ? (next.cycleH-1) : (1-next.cycleH);
                opts.animOut.top = fwd ? -curr.cycleH : curr.cycleH;
        });
        opts.cssFirst = { top: 0 };
        opts.cssBefore= { left: 0 };
        opts.animIn   = { top: 0 };
        opts.animOut  = { left: 0 };
    };
})(jQuery);

jQuery(function($) {
    $("#site-primary-menu > li:has(ul):not(.default)").addClass("extended").addClass(function(index) {
    	if($(this).nextAll().length < 2) return "right";
    }).live("mouseenter", function(e) {
        $(this).addClass("active");
    }).live("mouseleave", function(e) {
        $(this).removeClass("active");
    });

    $("#site-search input:text").blur(function(e) {
        $(this).filter(function() { return $(this).val(); }).addClass("text");
    });

    $("#site-search form").hide();
    $("#site-search").show();

    $('<button type="button">Search</button').click(function() {
        $(this).blur();
        $("#site-search form").toggleClass("active").slideToggle().each(function() {
            //Effect.toggle(this, "blind");
        });
    }).appendTo($('<p></p>').appendTo("#site-search"));
    
    $("div.Html tbody tr").filter(":nth-child(even)").addClass("even").end().filter(":nth-child(odd)").addClass("odd");

});

if (document.documentElement.__defineGetter__) { 
   if (HTMLElement) {
      var element = HTMLElement.prototype;
      if (element.__defineGetter__) {
         element.__defineGetter__("outerHTML",
           function () {
              var parent = this.parentNode;
              var el = document.createElement(parent.tagName);
              el.appendChild(this);
              var shtml = el.innerHTML;
              parent.appendChild(this);
              return shtml;
           }
         );
      }
   }
}

jQuery(function($) {
	return;
	$("embed").not("[wmode=transparent]").attr("wmode","opaque").replaceWith(function() {
		return this.outerHTML;
		//return $("<div />").append(this).html();
		try {
			return $(this).clone();
		} catch(e) {
			return Element.clone(this, true);
		}
	});
	$("object").not(":has(param[name=wmode][value=transparent])").find("param[name=wmode]").remove().end().append('<param name="wmode" value="opaque" />').replaceWith(function() {
		return this.outerHTML;		
		//return $("<div />").append(this).html();		
		try {
			return $(this).clone();
		} catch(e) {
			return Element.clone(this, true);
		}
	});    

});
