$(function(){
   // #で始まるアンカーをクリックした場合に処理
   $('a[href^=#]').click(function() {
      // スクロールの速度
      var speed = 300;// ミリ秒
      // アンカーの値取得
      var href= $(this).attr("href");
      // 移動先を取得
      var target = $(href == "#" || href == "" ? 'html' : href);
      // 移動先を数値で取得
      var position = target.offset().top;
      // スムーススクロール
      $($.browser.safari ? 'body' : 'html').animate({scrollTop:position}, speed, 'swing');
      return false;
   });
});
// Blend 2.2 for jQuery 1.3+
// Copyright (c) 2011 Jack Moore - jack@colorpowered.com
// Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
(function(a,b){var c=a.fn.blend=function(c,d){var e=this,f="background",g="padding",h=[f+"Color",f+"Image",f+"Repeat",f+"Attachment",f+"Position",f+"PositionX",f+"PositionY",g+"Top",g+"Left",g+"Right",g+"Bottom","width","height"];c=c||a.fn.blend.speed,d=d||a.fn.blend.callback,e[0]&&!e.is(".jQblend")&&e.each(function(){var e='<span style="position:absolute;top:0;left:0;display:block"/>',f=a(e)[0],g=a(e)[0],i=this,j=i.currentStyle||b.getComputedStyle(i,null),k,l;a(i).css("position")!=="absolute"&&(i.style.position="relative");for(l=0;k=h[l];l++)k in j&&(g.style[k]=f.style[k]=j[k]);f.style.backgroundImage=f.style.backgroundColor="",a(i).wrapInner(f).addClass("hover jQblend").prepend(g).hover(function(b){a(g).stop().fadeTo(c,0,function(){a.isFunction(d)&&d()})},function(b){a(g).stop().fadeTo(c,1)})});return e};c.speed=350,c.callback=!1})(jQuery,this);
$(function() {
	//外部リンクをtarget=_blankに
	$('a[href^=http]').not('[href*="'+location.hostname+'"]').attr('target','_blank');
});
 $(document).ready(function(){
	if(jQuery.browser.msie && parseInt(jQuery.browser.version) < 7){ 
		if($("img[src*='png']").length){
			$("img[src*='png']").pngfix();
		}
	};
	if($("div#main a.btn").length){
		$("div#main a.btn").blend({
			speed: 800
		});
	};
	if($("a.fadeBtn").length){
		$("a.fadeBtn").hover(function(){
			$(this).children("img").fadeTo("normal", 0.6);
			},function(){
			$(this).children("img").fadeTo("normal", 1.0);
		});
	};
	if($("input.wpcf7-submit").length){
		$("input.wpcf7-submit").hover(function(){
			$(this).fadeTo("normal", 0.7);
			},function(){
			$(this).fadeTo("normal", 1.0);
		});
	};
});

