	


//=============================================
// BlWin2()
//=============================================
$(function() {
	var anchors = $("a");
	for (var i=0; i<anchors.length; i++) {
		var anchor = anchors[i];
		if (anchor.getAttribute("href") &&
		anchor.getAttribute("rel") == "bl")
		anchor.target = "_blank";
	}
	
});

//=============================================
// SmartRollOver()
//=============================================

jQuery(document).ready(function($) {
   $('.ov').rollover('_on');
 });

//=============================================
// FormDefault()
//=============================================

function formDef() {
	$(function(){
		$('textarea,input[type="text"]').focus(function(){
			if($(this).val() == this.defaultValue){
				$(this).css('color', '#000').val('');
			};
		})
		.blur(function(){
			if($(this).val() == this.defaultValue | $(this).val() == ''){
				$(this).css('color', '#bdbdbd').val(this.defaultValue);
			};
		});
	});
	
}

$(function(){
	$('textarea,input[type="text"]').focus(function(){
		if($(this).val() == this.defaultValue){
			$(this).css('color', '#000').val('');
		};
	})
	.blur(function(){
		if($(this).val() == this.defaultValue | $(this).val() == ''){
			$(this).css('color', '#bdbdbd').val(this.defaultValue);
		};
	});
});


//=============================================
// cycle()
//=============================================
$(function() {
	$('.addCycle').cycle({ 
	    fx:    'fade', 
	    speed:  1000,
	    timeout:8000
	});
});

$(function() {
	$('.addCycleRandomm').cycle({ 
	    fx:    'fade', 
	    speed:  1000,
	    timeout:8000,
	    random:	1
	});
});

//=============================================
// datatable()
//=============================================

$(function() {
	$(".addDataTable tr:nth-child(2n+1)").addClass("addOddCell");
	$(".addHlPageNavi li:nth-child(2)").addClass("addPageNavi2nd");
});




//=============================================
// call()
//=============================================

$(function() {
	$('#swfBan01').flash({swf:'/share/pc/swf/ad_l_header_20111218-1.swf',width:694,height:88,wmode:'opaque'});
//		$('#swfBan02').flash({swf:'/share/pc/swf/ad_l_header_20111218-1.swf',width:694,height:88,wmode:'opaque'});
	$("#addCallHeader").load("/share/pc/inc/header.html",
		function(){
			$('.ov').rollover('_on');
			$('#addGlobalNavi li').hover(
				function(){
					$(this).addClass('ac');
				},
				function(){
					$(this).removeClass('ac');
				}
			);
			formDef();
		}
	);
//	$("#addContentsBanner").load("/share/pc/inc/headbanner.html",function(){$('.addCycle').cycle({ fx:'fade', speed:750,timeout:4000});});
//	$("#addFootBanner").load("/share/pc/inc/footbanner.html",function(){$('.addCycle').cycle({ fx:'fade', speed:750,timeout:8000});});
	$("#addCallFooter").load("/share/pc/inc/footer.html",function(){$('.ov').rollover('_on');});
	$("#addCallFooter2").load("/share/pc/inc/footer02.html",function(){$('.ov').rollover('_on');});
//		$("#addSubArea").load("/share/pc/inc/subarea.html",function(){$('.ov').rollover('_on');$('.addSideSect dl').biggerlink();formDef();});
});

function regist() {
window.open('https://f.msgs.jp/webapp/form/15809_bkx_5/index.do', 'regist', 'width=670, height=680, left=0, top=0, menubar=no, toolbar=no, location=no, status=no, resizable=yes, scrollbars=yes, directories=no, fullscreen=no, titlebar=yes');
}

