// 変数の定義

var pages  =  0;
var smflag =  0;
var pmflag =  0;
var bpflag =  0;
var delta  =  0.1;
var deltm  =  1;

$(function(){
		   
// 初期化処理
		   
	var jqDockOpts = {align: 'left', duration: 200, size: 260, distance: 80};
	$('#menu').jqDock(jqDockOpts);

	$("#footer h3 a").hoverAttribute({
		attribute: "title",
		tweenInFrom: "bottom"
	});
	
	$("#footer h4 a").hoverAttribute({
		attribute: "title",
		tweenInFrom: "left"
	});
	
	$(".screen_col h4 a").hoverAttribute({
		attribute: "title",
		tweenInFrom: "left"
	});
	
	$("#sitemap dt a").hoverAttribute({
		attribute: "title",
		tweenInFrom: "bottom"
	});
	
	$("#sitemap dd a").hoverAttribute({
		attribute: "title",
		tweenInFrom: "left"
	});
	
	// カルーセル初期化
	
    $('#roundabout').roundabout({
         minOpacity: 0.0,
         minScale: 0.6,
		 btnNext: '#main_arrowr',
         btnPrev: '#main_arrowl'
      });
	
    $('#banner').roundabout({
         shape: 'waterWheel',
         minOpacity: 0.1,
         minScale: 0.6,
		 btnNext: '#banner_arrowd',
         btnPrev: '#banner_arrowu'
      });
	
    $('#web_product').roundabout({
         shape: 'square',
		 minOpacity: 1.0,
         minScale: 1.0
      });
	
    $('#dtp_product').roundabout({
         shape: 'square',
		 minOpacity: 1.0,
         minScale: 1.0
      });
	
	// その他初期化
	
	$(".roundabout-moveable-item").corner("2px");
	$("#sitemap").corner("2px");
	$("#admin").corner("2px");
	
	$("#footer").positionFooter();
	
	$("#slide_concept").pageSlide({ width: "500", direction: "right" });
	$("#slide_inquiry").pageSlide({ width: "500", direction: "right" });
	$("#slide_link").pageSlide({ width: "500", direction: "right" });
	
	$("#slide_homepage").pageSlide({ width: "500", direction: "right" });
	$("#slide_commercial").pageSlide({ width: "500", direction: "left" });
	
	$("#slide_freepaper").pageSlide({ width: "500", direction: "right" });
	$("#slide_magazine").pageSlide({ width: "500", direction: "left" });
	$("#slide_promotion").pageSlide({ width: "500", direction: "right" });
	
	$("#slide_concept2").pageSlide({ width: "500", direction: "right" });
	$("#slide_inquiry2").pageSlide({ width: "500", direction: "right" });
	$("#slide_link2").pageSlide({ width: "500", direction: "right" });
	
	$("#slide_company2").pageSlide({ width: "500", direction: "left" });
	
	$("#slide_homepage2").pageSlide({ width: "500", direction: "right" });
	$("#slide_commercial2").pageSlide({ width: "500", direction: "left" });
	
	$("#slide_freepaper2").pageSlide({ width: "500", direction: "right" });
	$("#slide_magazine2").pageSlide({ width: "500", direction: "left" });
	$("#slide_promotion2").pageSlide({ width: "500", direction: "right" });
	
	$("#slide_privacy2").pageSlide({ width: "500", direction: "left" });
	$("#slide_agreement2").pageSlide({ width: "500", direction: "right" });
	
	$("#slide_concept3").pageSlide({ width: "500", direction: "right" });
	$("#slide_inquiry3").pageSlide({ width: "500", direction: "right" });
	$("#slide_link3").pageSlide({ width: "500", direction: "right" });
	
	$("#slide_company3").pageSlide({ width: "500", direction: "left" });
	
	$("#slide_homepage3").pageSlide({ width: "500", direction: "right" });
	$("#slide_commercial3").pageSlide({ width: "500", direction: "left" });
	
	$("#slide_freepaper3").pageSlide({ width: "500", direction: "right" });
	$("#slide_magazine3").pageSlide({ width: "500", direction: "left" });
	$("#slide_promotion3").pageSlide({ width: "500", direction: "right" });
	
	$("#slide_privacy3").pageSlide({ width: "500", direction: "left" });
	$("#slide_agreement3").pageSlide({ width: "500", direction: "right" });
	
	$("#slide_homepage4").pageSlide({ width: "500", direction: "right" });
	
// アニメーション処理

$(window).load(function(){

	$("#caution_ie").hide();
	
	$("#screen_web").hide();
	$("#screen_dtp").hide();
	$("#web_base").hide();
	$("#dtp_base").hide();
	$("#sitemap").hide();
	
	$("#web01t").hide();
	$("#web02t").hide();
	$("#web03t").hide();
	$("#web04t").hide();
	$("#web05t").hide();
	$("#web06t").hide();
	$("#web07t").hide();
	$("#web08t").hide();
	$("#web09t").hide();
	$("#web10t").hide();

	$("#dtp01t").hide();
	$("#dtp02t").hide();
	$("#dtp03t").hide();
	$("#dtp04t").hide();
	$("#dtp05t").hide();
	$("#dtp06t").hide();
	$("#dtp07t").hide();
	$("#dtp08t").hide();
	$("#dtp09t").hide();
	$("#dtp10t").hide();

	$("#loading").animate({ top : 350 , opacity : 1.0 },700,function(){
	$("#loading").fadeTo(300, 0.0,function(){$("#loading").hide();});
	});

	$("#logo").animate({ top : 250 , opacity : 1.0 },1000,function(){
																	  
		if($.browser.msie && $.browser.version <= 6 ){
		
		$("#logo").animate({ top : 120 , opacity : 1.0 },600,"easeOutBounce");
		$("#caution").animate({ top : 230 ,	opacity : 1.0 },700);
		
	} else {
	
	$("#logo").fadeTo(800, 0.0,function(){$("#logo").hide();});
	
	$("#opening").fadeTo(1200, 0.0,function(){

		$("#opening").hide();
		
		$("#banner_point").animate({ opacity : 1.0 },1000,function(){

			$("#banner_point").animate({ right : 0 },3000,function(){
				
				$("#banner_point").animate({ right : 0 , opacity : 0.0 },1000,function(){
	
					$("#banner_point").hide();
					bpflag=1;
					
				});
				
			});
			
		});
		
		});
	
	$("#footer").animate({ marginTop : 0 },800,"easeOutBounce");
	$("#caution").hide();
	
	if($.browser.msie){
		
		$("#caution_ie").show();
		$("#caution_ie").animate({ opacity : 1.0 },800,function(){
	
			$("#caution_ie").animate({ opacity : 1.0 },14000,function(){
	
				$("#caution_ie").animate({ opacity : 0.0 },800,function(){
		
						$("#caution_ie").hide();
						
				});
					
			});
					
		});
		
		
	}
	
	
	}
	
	});

});

// マウスオーバーの処理

	$("#footer").hover(function(){
	
		$("#footer").stop();
		$("#footer_navi").stop();
		$("#footer_logo").stop();
		$(".footer_col").stop();
		$("#footer").animate({ marginTop : -100 },800,"easeOutBounce");
		$("#footer_navi").animate({ marginTop : 30 },500,"easeOutBounce");
		$("#footer_logo").animate({ marginTop : 35 },700,"easeOutBounce");
		$(".footer_col").fadeTo(800, 1.0);
			
		},
		function(){
	
		$("#footer").stop();
		$("#footer_navi").stop();
		$("#footer_logo").stop();
		$(".footer_col").stop();
		$("#footer").animate({ marginTop : 0 },800,"easeOutBounce");
		$("#footer_navi").animate({ marginTop : 20 },500,"easeOutBounce");
		$("#footer_logo").animate({ marginTop : 3 },700,"easeOutBounce");
		$(".footer_col").fadeTo(200, 0.0);
	
		}
	
	);
	
	$("#banner").hover(function(){
	
		$("#banner").stop();
		$("#banner").animate({ left : 640 ,	opacity : 1.0 },500);
			
		},
		function(){
	
		$("#banner").stop();
		$("#banner").animate({ left : 680 ,	opacity : 0.0 },200);
	
		}
	
	);

// マウスクリックの処理

	$(".web_page").click(function(){

		if(pages == 0){
				 
			$("#main").stop();
			$("#menu").stop();
			$("#banner").stop();
			
			$("#banner").hide();
			$("#menu").animate({ opacity : 0.0 , top : -30 },600,"easeInQuad",function(){$("#menu").hide();});
			$("#main").animate({ opacity : 0.0 , top : 510 },500,"easeInQuad",function(){
																					   
				$("#main").hide();
				
				$("#screen_web").show();
				$("#screen_web").animate({ marginLeft : 50 ,	opacity : 1.0 },800,"easeOutQuad");
				
				$("#web_base").show();
				$("#web_base").animate({ marginLeft : 450 ,	opacity : 1.0 },1000,"easeOutQuad");
				
				pages  =  1;
				
			});
		
		}
		
	});
	
	$(".close_web").click(function(){
								   
		$("#web_base").animate({ marginLeft : 500 ,	opacity : 0.0 },500,"easeOutQuad",function(){$("#web_base").hide();});

		$("#screen_web").animate({ marginLeft : 0 ,	opacity : 0.0 },600,"easeOutQuad",function(){
																							   
			$("#screen_web").hide();
			$("#main").show();
			$("#menu").show();
			$("#banner").show();
		
			$("#menu").animate({ opacity : 1.0 , top : 0 },500,"easeOutQuad");
			$("#main").animate({ opacity : 1.0 , top : 480 },500,"easeOutQuad");
			
			pages  =  0;
			
		});
		
	});
	
	$(".dtp_page").click(function(){

		if(pages == 0){
				 
			$("#main").stop();
			$("#menu").stop();
			$("#banner").stop();
			
			$("#banner").hide();
			$("#menu").animate({ opacity : 0.0 , top : -30 },600,"easeInQuad",function(){$("#menu").hide();});
			$("#main").animate({ opacity : 0.0 , top : 510 },500,"easeInQuad",function(){
																					   
				$("#main").hide();
				
				$("#screen_dtp").show();
				$("#screen_dtp").animate({ marginLeft : 50 ,	opacity : 1.0 },800,"easeOutQuad");
				
				$("#dtp_base").show();
				$("#dtp_base").animate({ marginLeft : 450 ,	opacity : 1.0 },1000,"easeOutQuad");
				
				pages  =  1;
				
			});
		
		}
		
	});
	
	$(".close_dtp").click(function(){
								   
		$("#dtp_base").animate({ marginLeft : 500 ,	opacity : 0.0 },500,"easeOutQuad",function(){$("#dtp_base").hide();});

		$("#screen_dtp").animate({ marginLeft : 0 ,	opacity : 0.0 },600,"easeOutQuad",function(){
																							   
			$("#screen_dtp").hide();
			$("#main").show();
			$("#menu").show();
			$("#banner").show();
		
			$("#menu").animate({ opacity : 1.0 , top : 0 },500,"easeOutQuad");
			$("#main").animate({ opacity : 1.0 , top : 480 },500,"easeOutQuad");
			
			pages  =  0;
			
		});
		
	});
	
	$("#sitemap_page").click(function(){

		if(smflag==0){
				 
			$("#main").stop();
			$("#menu").stop();
			$("#banner").stop();
			$("#sitemap").stop();
			
			$("#opening").show();
			$("#opening").fadeTo(500, 0.8,function(){
			
			$("#sitemap").show();
			$("#sitemap").animate({ opacity : 1.0 , top : 100 },700,"easeOutQuad");
			
			smflag=1;
				
			});
		
		}
		
	});
	
	$("#opening").click(function(){
	
		if(smflag==1){

			$("#sitemap").animate({ opacity : 0.0 , top : -500 },700,"easeInQuad",function(){
				
				$("#sitemap").hide();
				
					$("#opening").fadeTo(500, 0.0,function(){
						
						$("#opening").hide();
						smflag=0;
						
					});
				
				});

		}
		
	});
	
	$(".sitemap_close").click(function(){
	
		if(smflag==1){

			$("#sitemap").animate({ opacity : 0.0 , top : -500 },700,"easeInQuad",function(){
				
				$("#sitemap").hide();
				
					$("#opening").fadeTo(500, 0.0,function(){
						
						$("#opening").hide();
						smflag=0;
						
					});
				
				});

		}
		
	});

	$("#slide_inquiry").click(function(){
	
		if($.browser.msie ){
			
			location.href="mailform/mail.cgi?id=inquiry";
			
		}
	
	});
	
	$("#slide_inquiry2").click(function(){
	
		if($.browser.msie ){
			
			location.href="mailform/mail.cgi?id=inquiry";
			
		}
	
	});
	
// 実績の詳細表示処理

	$("#web_product li").click(function(){
										
		if(pmflag == 1){
			
			$("#web01t").animate({opacity : 0.0 },100,"easeInQuad",function(){$("#web01t").hide();});
			$("#web02t").animate({opacity : 0.0 },100,"easeInQuad",function(){$("#web02t").hide();});
			$("#web03t").animate({opacity : 0.0 },100,"easeInQuad",function(){$("#web03t").hide();});
			$("#web04t").animate({opacity : 0.0 },100,"easeInQuad",function(){$("#web04t").hide();});
			$("#web05t").animate({opacity : 0.0 },100,"easeInQuad",function(){$("#web05t").hide();});
			$("#web06t").animate({opacity : 0.0 },100,"easeInQuad",function(){$("#web06t").hide();});
			$("#web07t").animate({opacity : 0.0 },100,"easeInQuad",function(){$("#web07t").hide();});
			$("#web08t").animate({opacity : 0.0 },100,"easeInQuad",function(){$("#web08t").hide();});
			$("#web09t").animate({opacity : 0.0 },100,"easeInQuad",function(){$("#web09t").hide();});
			$("#web10t").animate({opacity : 0.0 },100,"easeInQuad",function(){$("#web10t").hide();});
			
			$("#msg_product").animate({  height : 0 , opacity : 0.0 },200,"easeInQuad",function(){
			
				$("#msg_product").animate({  height : 240 , opacity : 1.0 },500,"easeInQuad",function(){
					
					pmflag=1;
					deltm = 0;
					delta = 0;
					
				});

			});
			
		}

		else {
			
			$("#msg_product").animate({  height : 240 , opacity : 1.0 },500,"easeInQuad",function(){
				
				pmflag=1;
				deltm = 0;
				delta = 0;
				
			});
			
		}
		
	});
	
	$("#web01").click(function(){

		$("#web01").animate({opacity : 1.0 },400,"easeInQuad",function(){
																		
			$("#web01t").show();
			
			$("#web01t").animate({opacity : 1.0 },400,"easeInQuad");
			
		});
		
	});
	
	$("#web02").click(function(){

		$("#web02").animate({opacity : 1.0 },400,"easeInQuad",function(){
			
			$("#web02t").show();
			
			$("#web02t").animate({opacity : 1.0 },400,"easeInQuad");
			
		});
		
	});
	
	$("#web03").click(function(){

		$("#web03").animate({opacity : 1.0 },400,"easeInQuad",function(){
			
			$("#web03t").show();
			
			$("#web03t").animate({opacity : 1.0 },400,"easeInQuad");
			
		});
		
	});
	
	$("#web04").click(function(){

		$("#web04").animate({opacity : 1.0 },400,"easeInQuad",function(){
			
			$("#web04t").show();
			
			$("#web04t").animate({opacity : 1.0 },400,"easeInQuad");
			
		});
		
	});
	
	$("#web05").click(function(){

		$("#web05").animate({opacity : 1.0 },400,"easeInQuad",function(){
			
			$("#web05t").show();
			
			$("#web05t").animate({opacity : 1.0 },400,"easeInQuad");
			
		});
		
	});
	
	$("#web06").click(function(){

		$("#web06").animate({opacity : 1.0 },400,"easeInQuad",function(){
			
			$("#web06t").show();
			
			$("#web06t").animate({opacity : 1.0 },400,"easeInQuad");
			
		});
		
	});
	
	$("#web07").click(function(){

		$("#web07").animate({opacity : 1.0 },400,"easeInQuad",function(){
			
			$("#web07t").show();
			
			$("#web07t").animate({opacity : 1.0 },400,"easeInQuad");
			
		});
		
	});
	
	$("#web08").click(function(){

		$("#web08").animate({opacity : 1.0 },400,"easeInQuad",function(){
			
			$("#web08t").show();
			
			$("#web08t").animate({opacity : 1.0 },400,"easeInQuad");
			
		});
		
	});
	
	$("#web09").click(function(){

		$("#web09").animate({opacity : 1.0 },400,"easeInQuad",function(){
			
			$("#web09t").show();
			
			$("#web09t").animate({opacity : 1.0 },400,"easeInQuad");
			
		});
		
	});
	
	$("#web10").click(function(){

		$("#web10").animate({opacity : 1.0 },400,"easeInQuad",function(){
			
			$("#web10t").show();
			
			$("#web10t").animate({opacity : 1.0 },400,"easeInQuad");
			
		});
		
	});

	$("#dtp_product li").click(function(){
										
		if(pmflag == 1){
			
			$("#dtp01t").animate({opacity : 0.0 },100,"easeInQuad");
			$("#dtp02t").animate({opacity : 0.0 },100,"easeInQuad");
			$("#dtp03t").animate({opacity : 0.0 },100,"easeInQuad");
			$("#dtp04t").animate({opacity : 0.0 },100,"easeInQuad");
			$("#dtp05t").animate({opacity : 0.0 },100,"easeInQuad");
			$("#dtp06t").animate({opacity : 0.0 },100,"easeInQuad");
			$("#dtp07t").animate({opacity : 0.0 },100,"easeInQuad");
			$("#dtp08t").animate({opacity : 0.0 },100,"easeInQuad");
			$("#dtp09t").animate({opacity : 0.0 },100,"easeInQuad");
			$("#dtp10t").animate({opacity : 0.0 },100,"easeInQuad");
			
			$("#msg_product").animate({  height : 0 , opacity : 0.0 },200,"easeInQuad",function(){

				$("#msg_product").animate({  height : 240 , opacity : 1.0 },500,"easeInQuad",function(){
					
					pmflag=1;
					deltm = 0;
					delta = 0;
					
				});

			});
			
		}

		else {
			
			$("#msg_product").animate({  height : 240 , opacity : 1.0 },500,"easeInQuad",function(){
				
				pmflag=1;
				deltm = 0;
				delta = 0;
				
			});
			
		}
		
	});


	$("#dtp01").click(function(){

		$("#dtp01t").show();

		$("#dtp01t").animate({opacity : 0.0 },400,"easeInQuad",function(){
			
			$("#dtp01t").animate({opacity : 1.0 },400,"easeInQuad");
			
		});
		
	});
	
	$("#dtp02").click(function(){

		$("#dtp02t").show();

		$("#dtp02t").animate({opacity : 0.0 },400,"easeInQuad",function(){
			
			$("#dtp02t").animate({opacity : 1.0 },400,"easeInQuad");
			
		});
		
	});
	
	$("#dtp03").click(function(){

		$("#dtp03t").show();

		$("#dtp03t").animate({opacity : 0.0 },400,"easeInQuad",function(){
			
			$("#dtp03t").animate({opacity : 1.0 },400,"easeInQuad");
			
		});
		
	});
	
	$("#dtp04").click(function(){

		$("#dtp04t").show();

		$("#dtp04t").animate({opacity : 0.0 },400,"easeInQuad",function(){
			
			$("#dtp04t").animate({opacity : 1.0 },400,"easeInQuad");
			
		});
		
	});
	
	$("#dtp05").click(function(){

		$("#dtp05t").show();

		$("#dtp05t").animate({opacity : 0.0 },400,"easeInQuad",function(){
			
			$("#dtp05t").animate({opacity : 1.0 },400,"easeInQuad");
			
		});
		
	});
	
	$("#dtp06").click(function(){

		$("#dtp06t").show();

		$("#dtp06t").animate({opacity : 0.0 },400,"easeInQuad",function(){
			
			$("#dtp06t").animate({opacity : 1.0 },400,"easeInQuad");
			
		});
		
	});
	
	$("#dtp07").click(function(){

		$("#dtp07t").show();

		$("#dtp07t").animate({opacity : 0.0 },400,"easeInQuad",function(){
			
			$("#dtp07t").animate({opacity : 1.0 },400,"easeInQuad");
			
		});
		
	});
	
	$("#dtp08").click(function(){

		$("#dtp08t").show();

		$("#dtp08t").animate({opacity : 0.0 },400,"easeInQuad",function(){
			
			$("#dtp08t").animate({opacity : 1.0 },400,"easeInQuad");
			
		});
		
	});
	
	$("#dtp09").click(function(){

		$("#dtp09t").show();

		$("#dtp09t").animate({opacity : 0.0 },400,"easeInQuad",function(){
			
			$("#dtp09t").animate({opacity : 1.0 },400,"easeInQuad");
			
		});
		
	});
	
	$("#dtp10").click(function(){

		$("#dtp10t").show();

		$("#dtp10t").animate({opacity : 0.0 },400,"easeInQuad",function(){
			
			$("#dtp10t").animate({opacity : 1.0 },400,"easeInQuad");
			
		});
		
	});
	
// カルーセルのスクロール処理

	$(document).mousemove(function(e){
			 
		var win = $(window).width()/2;

		if( e.clientX < win || e.clientX > win+350 ){

			delta = (e.clientY-240)/200;
			if(delta > 1) delta=1;
			deltm = 1;
			
			if(pmflag == 1){
				
				$("#msg_product").animate({  height : 0 , opacity : 0.0 },200,"easeInQuad");
				$("#web01t").animate({opacity : 0.0 },100,"easeInQuad",function(){$("#web01t").hide();});
				$("#web02t").animate({opacity : 0.0 },100,"easeInQuad",function(){$("#web02t").hide();});
				$("#web03t").animate({opacity : 0.0 },100,"easeInQuad",function(){$("#web03t").hide();});
				$("#web04t").animate({opacity : 0.0 },100,"easeInQuad",function(){$("#web04t").hide();});
				$("#web05t").animate({opacity : 0.0 },100,"easeInQuad",function(){$("#web05t").hide();});
				$("#web06t").animate({opacity : 0.0 },100,"easeInQuad",function(){$("#web06t").hide();});
				$("#web07t").animate({opacity : 0.0 },100,"easeInQuad",function(){$("#web07t").hide();});
				$("#web08t").animate({opacity : 0.0 },100,"easeInQuad",function(){$("#web08t").hide();});
				$("#web09t").animate({opacity : 0.0 },100,"easeInQuad",function(){$("#web09t").hide();});
				$("#web10t").animate({opacity : 0.0 },100,"easeInQuad",function(){$("#web10t").hide();});
				$("#dtp01t").animate({opacity : 0.0 },100,"easeInQuad",function(){$("#dtp01t").hide();});
				$("#dtp02t").animate({opacity : 0.0 },100,"easeInQuad",function(){$("#dtp02t").hide();});
				$("#dtp03t").animate({opacity : 0.0 },100,"easeInQuad",function(){$("#dtp03t").hide();});
				$("#dtp04t").animate({opacity : 0.0 },100,"easeInQuad",function(){$("#dtp04t").hide();});
				$("#dtp05t").animate({opacity : 0.0 },100,"easeInQuad",function(){$("#dtp05t").hide();});
				$("#dtp06t").animate({opacity : 0.0 },100,"easeInQuad",function(){$("#dtp06t").hide();});
				$("#dtp07t").animate({opacity : 0.0 },100,"easeInQuad",function(){$("#dtp07t").hide();});
				$("#dtp08t").animate({opacity : 0.0 },100,"easeInQuad",function(){$("#dtp08t").hide();});
				$("#dtp09t").animate({opacity : 0.0 },100,"easeInQuad",function(){$("#dtp09t").hide();});
				$("#dtp10t").animate({opacity : 0.0 },100,"easeInQuad",function(){$("#dtp10t").hide();});
				
				pmflag=0;
				
			}
		
		}
		else deltm = 0.96;
										
	});


	setInterval(function() {

		if(pages  ==  1){
	
			$('#web_product').roundabout_adjustBearing(delta);
			$('#dtp_product').roundabout_adjustBearing(delta);
			
			delta *= deltm;
		
		}
	
	}, 20);
	

// 終了処理

});

// フォームの送信処理
function send(){
	
	document.MyForm.submit();
	
}

// 要素の拡大処理


$(document).ready(function(){
	$("a[rel^='prettyPhoto']").prettyPhoto({
		animationSpeed: 'normal', /* fast/slow/normal */
		showTitle: false, /* true/false */
		allowresize: true, /* true/false */
		counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
		theme: 'light_rounded', /* light_rounded / dark_rounded / light_square / dark_square */
		callback: function(){}
	});
});

// マウスがウィンドウ外へ出たときの処理
$(window).mouseout(function(){

	if(bpflag==1){
	
		$("#banner_point").show();
		$("#banner_point").stop();
		$("#banner_point").animate({ opacity : 1.0 },0,function(){
			
			bpflag=2;
			
		});
	
	}
	
});

$(window).mouseover(function(){
	
	if(bpflag==2){
	
		$("#banner_point").stop();
	
		$("#banner_point").animate({ opacity : 0.0 },0,function(){
	
			$("#banner_point").hide();
			
			bpflag=1;
			
		});
	
	}
	
});
