jQuery.noConflict();

(function($, window, document, undefined){


$(function(){
	if ($.fn.dynamicLabel)
	{
		$('input.text').dynamicLabel();
	}

	if ($.fn.equalHeights)
	{
		$('#content, #side1').equalHeights();
	}

	if ($.browser.msie)
	{
		if ($.browser.version <= 6)
		{
			try {document.execCommand("BackgroundImageCache", false, true);} catch(e){};
			if (window['DD_belatedPNG'] !== undefined)
				DD_belatedPNG.fix('img, #search input');
		}
	}

});


$.fn.dynamicLabel = function() {
	$(this).each(function(){
		this._default = this.value;
		$(this).bind('focus', function(){
			if (this.value == this._default)
				this.value = '';
		}).bind('blur', function(){
			if (this.value == '')
				this.value = this._default;
		});
	});
	return this;
};

$.fn.equalHeights = function(add) {
	var tallest = 0;
	$(this).each(function(){
		tallest = Math.max(tallest, $(this).outerHeight());
	});
	$(this).each(function(){
		var t = $(this), p = 0;
		$.each(['borderTopWidth','paddingTop','paddingBottom','borderBottomWidth'], function(i,n){
			p += parseInt(t.css(n));
		});
		var h = tallest - p;
		if (add && add[this.id])
			h += add[this.id];
		if ($.browser.msie && $.browser.version <= 6) 
			t.css({'height': h});
		t.css({'min-height': h}); 
	});
	return this;
};


})(jQuery, window, document);



// @REMOVE START@
window.log = function(){
	log.history = log.history || [];
	log.history.push(arguments);
	if (this.console) {
		console.log(Array.prototype.slice.call(arguments));
	}
};
// @REMOVE END@
