				var a = 0;
				var homePageShowArray = ["http://www.galu.info/site/images/bg01.jpg", "http://www.galu.info/site/images/bg06.jpg", "http://www.galu.info/site/images/bg02.png", "http://www.galu.info/site/images/bg03.png"];
				//, "bg04.gif", "bg05.png"
				function homePageShow() {
					 $('#imgContainer').npFullBgImg(homePageShowArray[a], {fadeInSpeed: 2000, center: true, callback:function(){startGalleryTimer()}});
					 a++;
					 if(a == homePageShowArray.length) a=0;
				}
				
				function startGalleryTimer() {
					setTimeout("homePageShow()", 20000);
				}
				
				$(document).ready(function() {				
					setTimeout("homePageShow();	",1250);	

				    $("ul#mb li").mouseover(function(){  
				        $(this).stop().animate({height:'99px'},{queue:false, duration:300, easing: 'easeInSine'})  
				    });  
				  
				    $("ul#mb li").mouseout(function(){  
				        $(this).stop().animate({height:'20px'},{queue:false, duration:900, easing: 'easeOutCirc'})  
				    });  		



				    $(".tip_s").each(function(){
					    $(this).addClass("tip_trigger");
						var imgpath = $(this).attr('value');
						$('<span class="tip"><img src="'+imgpath+'" alt=""></img></span>').prependTo($(this));
					});
				    	

				    $(".tip_trigger").hover(function(){
				        tip = $(this).find('.tip');
				        tip.show(); 
				    }, function() {
				        tip.hide(); 
				    }).mousemove(function(e) {
				        var mousex = e.pageX + 20; //X
				        var mousey = e.pageY + 20; //Y
				        var tipWidth = tip.width(); //w
				        var tipHeight = tip.height(); //h
				        
				        //dist <r
				        var tipVisX = $(window).width() - (mousex + tipWidth);
				        //dist <b
				        var tipVisY = $(window).height() - (mousey + tipHeight);

				        if ( tipVisX < 20 ) { //?x
				            mousex = e.pageX - tipWidth - 20;
				        } if ( tipVisY < 20 ) { //?y
				            mousey = e.pageY - tipHeight - 20;
				        }
				        //abspos
				        tip.css({  top: mousey, left: mousex });
				    });



				    $('a.pow').zoomimage({
				    	controlsTrigger: 'mouseover',
				    	className: 'custom',
				    	shadow: 40,
				    	controls: false,
				    	centered: true,
				    	caption: false,
				    	opacity: 1,
				    	beforeZoomIn: function(boxID) {
				    		$('#' + boxID)
				    			.find('img')
				    			.css('opacity', 0)
				    			.animate(
				    				{'opacity':1},
				    				{ duration: 500, queue: false }
				    			);
				    	},
				    	beforeZoomOut: function(boxID) {
				    		$('#' + boxID)
				    			.find('img')
				    			.css('opacity', 1)
				    			.animate(
				    				{'opacity':0},
				    				{ duration: 500, queue: false }
				    			);
				    	}
				    });

				    				  
				});
