jQuery.noConflict();

function pwChange(){
	document.getElementById("pw").diabled=false;
}

function BlockOpen(block){
		if(document.getElementById(block).style.display=="block"){
			document.getElementById(block).style.display="none";
		}else{
			document.getElementById(block).style.display="block";
		}
}
function BlockClose(block){
	document.getElementById(block).style.display="none";
}

function WeekChange(block){

	for(i=1;i<=6;i++){
	document.getElementById('week0'+i+'_a').className="nothis";
	document.getElementById('week0'+i+'_table').style.display="none";
	}

	document.getElementById('week0'+block+'_a').className="this";
	document.getElementById('week0'+block+'_table').style.display="block";

	return false;

}

function lightBox2(block){
	closeLayer();
	
	jQuery("#glayLayer").show();
		
	jQuery("#lightBox_"+block).show();
	jQuery("#lightBox_"+block).css({
		marginTop:"-"+jQuery("#lightBox_"+block).height()/2+"px" , 
		marginLeft:"-"+jQuery("#lightBox_"+block).width()/2+"px" 
	})
	return false;	
	
}
function closeLayer() {

    jQuery('#glayLayer').hide();
	
	if(document.getElementById('lightBox_login')){
		jQuery('#lightBox_login').hide();
	}
	if(document.getElementById('lightBox_forgot')){
		jQuery('#lightBox_forgot').hide();
	}
	if(document.getElementById('lightBox_remind')){
		jQuery('#lightBox_remind').hide();
	}

}
if(jQuery.browser.msie && jQuery.browser.version<7){
        jQuery(window).scroll(function(){
            jQuery("#glayLayer").get(0).style.setExpression("top","jQuery(document).scrollTop()+'px'")
			if(document.getElementById('lightBox_login')){
            	jQuery("#lightBox_login").get(0).style.setExpression("top","(jQuery(document).scrollTop()+jQuery(window).height()/2)+'px'")
			}
			if(document.getElementById('lightBox_forgot')){
            	jQuery("#lightBox_forgot").get(0).style.setExpression("top","(jQuery(document).scrollTop()+jQuery(window).height()/2)+'px'")
			}
			if(document.getElementById('lightBox_remind')){
            	jQuery("#lightBox_remind").get(0).style.setExpression("top","(jQuery(document).scrollTop()+jQuery(window).height()/2)+'px'")
			}
        })
}

//確認アラート
function confirmSubmit(formid,msg) {
	if(!window.confirm(msg)){
			return;
	}
	//送信処理
}


jQuery(document).ready(function(){
/*jQuery("h1").prepend("<span>");*/

if(document.getElementById('about')){
	jQuery(".cat").wrap("<div class=\"cat_body\">");
	jQuery(".cat").wrap("<div class=\"cat_head\">");
	jQuery(".cat").wrap("<div class=\"cat_foot\">");
}

});

function swfobj(this_w,this_h,this_n,this_v){
	AC_FL_RunContent(
			'width', this_w,
			'height', this_h,
			'src', '/swf/'+this_n,
			'quality', 'high',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', 'transparent',
			'devicefont', 'false',
			'id', this_n,
			'bgcolor', '#ffffff',
			'name', this_n,
			'menu', 'true',
			'allowFullScreen', 'false',
			'allowScriptAccess','sameDomain',
			'movie', '/swf/'+this_n,
			'salign', '',
			'flashVars',this_v
	); //end AC code
}
