	google.load("jquery", "1.4.1");
	
	/* Tabs */
	(function($){	 	   
	     //Attach this new method to jQuery  
	     $.fn.extend({   	           
	         //This is where you write your plugin's name  
	         infoTabs: function() {
	    	 	
	    	 	var tabs = new Array();
		    	 
	    	 	var setCurrentTab = function (activeTab) {
	        		 $(tabs).each(function () {
	        			 if (this.id == activeTab.id) {
	        				 $(activeTab).addClass('currenttab');
	        			 }else{
	        				 $(this).removeClass('currenttab');
	        			 }
	        		 });
	        	}
	        		   
	             //Iterate over the current set of matched elements  
	             return this.each(function () {	               
	            	 var parentDiv = this;
	            	 if (parentDiv) {
		            	 tabs = $('#' + parentDiv.id + ' ul li');           	 
		            	 
		            	 for (var i = 0; i <= (tabs.length-1); i++) {
		            		 var tab = tabs[i];		            		 
		            		 // On Click event
		            		 $(tab).click(function () {
		            			 // Removing "Tab" from the end of the id string
		            			 var divId = this.id.substring(0, this.id.length - 3);
		            			 
		            			 setCurrentTab(this);	            			 
		            			 $('#' + divId).fadeIn();
		            			 $('#'+ parentDiv.id +' > div:not("#'+ divId +'")').hide();
		            		 });		            		 

			            	// On Hover Event
		            		$(tab).hover(function() { 
		       		   			$(this).addClass("clickable"); 
		       		   		}
		       		   		, function() { 
		       		   			$(this).removeClass("clickable"); 
		       		   		});		            		

		            		// Adding class to the last tab
		            		if (i == (tabs.length-1)) {
		            			$(tab).addClass('lastUnit');
		            		}
		            	 }		            	 
		            	 // Triggering the first tab and adding class
		            	 if (tabs.length > 0) {
		            	 	 $(tabs[0]).addClass('first');
		            		 $(tabs[0]).trigger('click');
		            	 }
	            	 }	            	 
	             });  
	         }  
	     });         
	})(jQuery);
		
	$(function () {
		$('#sp-secondop').infoTabs();
	});

