
jQuery(function(){
	var flag=false;



	if(!jQuery.support.opacity){
	    if(!jQuery.support.style){
	        if (typeof document.documentElement.style.maxHeight== "undefined") {//ie6の場合

	        	jQuery("#credit_btn").css("backgroundPosition","left center");
	        	var header=jQuery("#header").html();
	        	jQuery("#header").remove();
	        	if(jQuery("#bg_parts_left").length){
	        		jQuery("#bg_parts_left").fixPng();
		        	jQuery("#bg_parts_left").after("<div id=\"header\" />");

	        	}else{
	        		jQuery("#main_wrapper").before("<div id=\"header\" />");
	        	}
	        	jQuery("#header").html(header);
	        	jQuery(	"#credit_btn").fixPng();
	        	var img=jQuery("#site-title a").html();

	        	jQuery("#site-title img").remove();
	        	jQuery("#site-title a").html(img);
	        	jQuery("#site-title img").load(function(){
	        		jQuery(this).fixPng();
	        		jQuery("#header span").fixPng().css("cursor","pointer");
	        	});


	        	jQuery("#fade").css("display","none");
	        	jQuery("#header").fixPng();
	        	jQuery("#header a span,#header a img,.entry-content img").hover(
	        			function(){jQuery(this).fixPng().animate({opacity:0.5},{duration:200});},
	        			function(){jQuery(this).fixPng().animate({opacity:1},{duration:200});}
	        		);
	        	jQuery("#footer").hover(function(){

	    			jQuery("#credit").animate({bottom:"24px"},{duration:200,easing:"easeInOutExpo"});
	    		},function(){
	    			jQuery("#credit").animate({bottom:"-17px"},{duration:200,easing:"easeInOutExpo"});
	    		});
	        	jQuery("#credit").css("bottom","-34px");
	        	jQuery("#footer").hover(function(){

	    			jQuery("#credit").animate({bottom:"24px"},{duration:200,easing:"easeInOutExpo"});
	    		},function(){
	    			jQuery("#credit").animate({bottom:"-34px"},{duration:200,easing:"easeInOutExpo"});
	    		}
	    	);

	        }
	    }
	}else{
		jQuery("#credit").css("bottom","-17px");
		jQuery("#header a span,#header a img,.entry-content img").hover(
				function(){jQuery(this).fixPng().animate({opacity:0.5},{duration:200});},
				function(){jQuery(this).fixPng().animate({opacity:1},{duration:200});}
			);

		jQuery("#footer").hover(function(){

				jQuery("#credit").animate({bottom:"24px"},{duration:200,easing:"easeInOutExpo"});
			},function(){
				jQuery("#credit").animate({bottom:"-17px"},{duration:200,easing:"easeInOutExpo"});
			}
		);
    }

});
/*
function setHeight() {
	var headerH = document.getElementById('header').offsetHeight,
		footerH = document.getElementById('footer').offsetHeight,
		wrapperH = window.innerHeight - headerH - footerH;
	document.getElementById('wrapper_mid').style.height = wrapperH + 'px';
}

function loaded() {
	setHeight();
	myScroll = new iScroll('scroller', {desktopCompatibility:true});
}
*/
