/*スパム対策*/
<!--
function vspam(im,domain) {
  maddress = "mailto:" + im + "@" + domain;
  window.location.href = maddress;
}
// -->

function bridal(){
   adWindow=window.open('bridal.html','newWin','width=440,height=600,scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0');
}

function event1(){ window.open("http://wwwwwh-fsg.com/event_25th/index.html","WindowOpen1","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=700,height=800") 
}


/*公務員速報*/
function newsWin(){
	st = "scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no";
	wx = 820;
	wy = 680;
	x = (screen.width  - wx) / 2;
	y = ((screen.height - wy) / 2) - 30;
	newwin = window.open("extra/public_news.html","newWinWork","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

/*オープンキャンパスバスツアー*/
function oc090808(){
	var st = "scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 640;
	var wy = 820;
	//var wy = screen.height - (screen.height*0.15);
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open("extra/oc090808.html","newWinWork","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}


/*オープンキャンパスバスツアー*/
function job(){
	var st = "scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 640;
	var wy = 820;
	//var wy = screen.height - (screen.height*0.15);
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open("extra/oc090808.html","newWinWork","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

/*nemusugiru*/
function nemusugiru(url,wx,wy,wName){
	st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	if(wy == ''){
		wy = screen.height - (screen.height*0.15);
	}
	x = (screen.width  - wx) / 2;
	y = ((screen.height - wy) / 2) - 30;
	newwin = window.open(url,wName,"left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}



$(function(){
	
	/*バナースクロール*/
	function mycarousel_initCallback(carousel){
    	// Disable autoscrolling if the user clicks the prev or next button.
    	carousel.buttonNext.bind('click', function() {
        	carousel.startAuto(3);
    	});

    	carousel.buttonPrev.bind('click', function() {
        	carousel.startAuto(3);
    	});

    	// Pause autoscrolling if the user moves with the cursor over the clip.
    	carousel.clip.hover(function() {
        carousel.stopAuto();
    	}, function() {
        	carousel.startAuto();
    	});
	};
	
    $('#footer_banner').jcarousel({
		scroll:1,							
        auto: 3,
		wrap: 'last',
        initCallback: mycarousel_initCallback
    });
	
	$(function(){
    	$("img.over").mouseover(function(){
        	$(this).attr("src",$(this).attr("src").replace(/^(.+)(\.[a-z]+)$/, "$1_on$2"))
    	}).mouseout(function(){
        	$(this).attr("src",$(this).attr("src").replace(/^(.+)_on(\.[a-z]+)$/, "$1$2"));
    	}).each(function(){
        	$("<img>").attr("src",$(this).attr("src").replace(/^(.+)(\.[a-z]+)$/, "$1_on$2"))
    	})
	})

});































































function noguchiNotHara(url,wx,wy){
	st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	if(wy == ''){
		wy = screen.height - (screen.height*0.15);
	}
	x = (screen.width  - wx) / 2;
	y = ((screen.height - wy) / 2) - 30;
	newwin = window.open(url,"newWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}
