$(document).ready(
                function(){
                    	$('ul#portfolio').innerfade({
                        speed: 1000,
                        timeout: 15000,
                        type: 'sequence',
                        containerheight: 	'200px',
                        slide_timer_on: 	'yes',
                        slide_ui_parent: 	'portfolio',
                        slide_ui_text:		'portfolio-desc',
                       	pause_button_id: 	'pause_button',
                       	slide_nav_id:		'slide_nav'
                    	});
                    	$.setOptionsButtonEvent();
                    
                        
                   		$("#pause_button").click(function() {
                   			$.pause();
                        });
                        $("#next_button").click(function() {
                    		$.next();
                        });
                        
                        $("#prev_button").click(function() {
                        	$.prev();
                        });
                        
                    	$("#first_button").click(function() {
                        	$.first();
                        });
                        
                    	$("#last_button").click(function() {
                        	$.last();
                        });
						
						$('.tonus').tooltip({ 
							delay: 0, 
							showURL: false, 
							bodyHandler: function() { 
								return $("<img/>").attr("src", this.src); 
							} 
						});
						
						$('.tonusSquare').tooltip({ 
							delay: 0, 
							showURL: false, 
							bodyHandler: function() { 
								return $("<img/>").attr("src", this.id); 
							} 
						});
				
			});


