	jQuery.fn.extend({
	  zebra: function(tag,selector) {
		if(selector == "odd" || selector == "even")
			$(this).find(tag+":"+selector).addClass(selector);
		else
			alert("Invalid selector , please use 'odd' or 'even'.\nExample: $('table').zebra('tr','odd');");
	  }
	});
	$(function(){ 
		$('a[rel="popup"]').click(function(){
			var n = $('a[rel="popup"]').index(this);
			var oW = window.open($(this).attr("href"),'PopUp_'+n,$(this).attr("rev"));
			return false;
		});		
		$('.off').click(function(){return false;});
		$('a[rel="external"]').click(function(){
			window.open($(this).attr('href'));
			return false;
		});
	});
