(function(){if(navigator.userAgent.indexOf("MSIE 6.0")==-1){return}var a=function(){var b=document.body.clientWidth;document.getElementById("wrapper").style.width=b<982?"980px":"auto"};attachEvent("onload",a);attachEvent("onresize",a)})();function topImageRandom(){var b=Math.floor((Math.random()*100))%2;var a="images/top_mainimg_"+(b+1)+".jpg";$("#topImageSec").append("<img src='"+a+"' alt='F-BEYONDイメージ画像' />");topImageSize()}function topImageSize(){var h=1280;var c=640;var i=$(window).width();var d=$(window).height();var l=d-$("#header").height()-$("#footer").height();var k=i/h;var g=l/c;var f=Math.max(k,g);var j=Math.floor(h*f);var e=Math.floor(c*f);if(l/e<=0.8){l=Math.floor(e*0.8)}var b=Math.floor((i-j)/2);var a=Math.floor((l-e)/2);$("#topImageSec").css({height:l});$("#topImageSec img").css({width:j,height:e,left:b,top:a})}function newsScrollUp(){var a=$("#topTxtSecIn");$("#topTxtSec").css({height:$(a).height()+100,bottom:$("#footer").height()});$("#topTxtSec #loadedList li").eq(0).addClass("new");$(a).css({top:$("#topTxtSec").height(),display:"block"});$(a).stop(true,false).delay(500).animate({top:$("#topTxtSec").height()-70},600,"easeOutBack");$(window).resize(function(){$(a).css({top:$("#topTxtSec").height()-70})});$(a).hover(function(){$(this).stop(true,false).animate({top:120},500,"easeOutBack")},function(){$(this).stop(true,false).animate({top:$("#topTxtSec").height()-70},400,"easeOutBack")})}jQuery.extend(jQuery.easing,{easeOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*((f=f/h-1)*f*((g+1)*f+g)+1)+a}});function loadFeed(){$("#topTxtSecIn").css("display","none");var a=new google.feeds.Feed("http://fbeyond.blog42.fc2.com/?xml");a.setNumEntries(3);a.load(function(l){var g;if(!l.error){if(l.feed.entries.length){g="<ul>";for(var f=0;f<l.feed.entries.length;f++){var k=l.feed.entries[f];var e=new Date(k.publishedDate);var d=e.getFullYear();var j=e.getMonth()+1;var c=e.getDate();var h="　−"+d+"年"+j+"月"+c+"日";g+='<li><a href="'+k.link+'" target="_blank">'+k.title;g+="<span>"+h+"</span></a></li>"}g+="</ul>"}}var b=document.getElementById("loadedList");b.innerHTML=g;newsScrollUp()})}function cntsTabNav(){var a=$("#cntsTabNav .tabNav li");var b=$("#cntsTabNav div ul");a.click(function(){a.removeClass("activeTab");$(this).addClass("activeTab");b.hide();b.eq(a.index(this)).fadeIn()})}function cooTabNav(){$("#container .nav .tabA").click(function(){$($.browser.opera?document.compatMode=="BackCompat"?"body":"html":"html,body").animate({scrollTop:$("#coordinatesA").offset().top-120},500)});$("#container .nav .tabB").click(function(){$($.browser.opera?document.compatMode=="BackCompat"?"body":"html":"html,body").animate({scrollTop:$("#coordinatesB").offset().top-50},500);return false})}function proListSec(){function a(){var d=$("#proList").width();var b=Math.floor(d/320);var c=Math.floor(d/(b+1));$("#proList li").css({width:c-20});$("#proList li div").css({width:c-20});var e=Math.floor(($("#proList li").width()-300)/2);$("#proList li img").css({left:e})}a();$(window).resize(function(){a()})}function proImgSec(){var e=$("#proImgSec");var d=$("img",e);var g=0;var f=0;var c="left";function b(){e.css({width:(d.width()+20)*d.size(),position:"absolute",left:50});$(e).wrap($("<div></div>").css({width:"100%",height:435,position:"absolute",left:0,overflow:"hidden"}));$(window).resize(function(){$(e.parent()).css({width:$(window).width()})});$(e).hover(function(){$(this).css("cursor","pointer")},function(){$(this).css("cursor","default")});$(e).click(function(){if(c=="left"){g++}else{if(c=="right"){g--}}if($(d).length!=1){a()}});$(e.parent()).after("<ul id='proImgSecControl'></ul>");var h=0;while(h<d.length){$("#proImgSecControl").append("<li><span>画像"+(h+1)+"</span></li>");h++}$("#proImgSecControl li").eq(g).addClass("selected");$("#proImgSecControl li").hover(function(){$(this).css("cursor","pointer")},function(){$(this).css("cursor","default")});$("#proImgSecControl li").click(function(){g=$("#proImgSecControl li").index(this);a()});if($(d).length==1){$("#proImgSecControl li").css("display","none")}}function a(){if(g==d.length-1){c="right"}else{if(g==0){c="left"}}if(Math.abs(f-g)>=2){var h=500}else{var h=300}var i=-(d.width()+20)*g+50;e.animate({left:i},h,"swing");$("#proImgSecControl li").removeClass("selected");$("#proImgSecControl li").eq(g).addClass("selected");f=g}b()}function cooImgSec(){var i=$("#cooTopImgSec ul");var b=$("#cooTopImgSec img");var a=0;var f=0;var c=1;function g(){i.css({width:b.width()*b.size(),position:"absolute"});i.wrap($("<div></div>").css({width:280,height:210,margin:0,position:"relative",overflow:"hidden"}));i.hover(function(){$(this).css("cursor","pointer")},function(){$(this).css("cursor","default")});i.click(function(){if(a<$("#cooImgSecControl li").size()-1){a++}else{a=0}h()})}function e(){$("#cooImgSecControl").remove();if(c/b.length!=1){$(i).parent().after("<ul id='cooImgSecControl'></ul>");$("#cooImgSecControl").css({width:c*280});var j=0;while(j<b.length/c){$("#cooImgSecControl").append("<li><span>画像"+(j+1)+"</span></li>");j++}a=0;i.css("left","0");$("#cooImgSecControl li").eq(0).addClass("selected");$("#cooImgSecControl li").hover(function(){$(this).css("cursor","pointer")},function(){$(this).css("cursor","default")});$("#cooImgSecControl li").click(function(){a=$("#cooImgSecControl li").index(this);h()})}}function h(){if(Math.abs(f-a)>=2){var j=500}else{var j=300}var k=-280*c*a;if(k+i.width()<=280*c){k=-(i.width()-280*c)}i.animate({left:k},j,"swing");$("#cooImgSecControl li").removeClass("selected");$("#cooImgSecControl li").eq(a).addClass("selected");f=a}function d(){var j=Math.floor($("#container").width()-600);$("#cooTopImgSec").css({width:j});c=Math.floor(j/280);i.parent().css({width:c*280});e()}g();d();$(window).resize(function(){d()})}$(function(){var b=$("#backTopNav li");var c=false;var a=false;if($(window).scrollTop()+$(window).height()>=$("#footer").offset().top){a=true;b.css({position:"absolute",bottom:60})}else{if($(window).scrollTop()+$(window).height()<$("#footer").offset().top){b.css({position:"fixed",bottom:10})}}$(window).scroll(function(){var d=$(window).scrollTop();var e=d+$(window).height();if(e>=$("#footer").offset().top&&a==false){a=true;b.css({position:"absolute",bottom:60})}else{if(e<$("#footer").offset().top&&a==true){a=false;b.css({position:"fixed",bottom:10})}}});$(window).resize(function(){var d=$(window).scrollTop();var e=d+$(window).height();if(e>=$("#footer").offset().top&&a==false){a=true;b.css({position:"absolute",bottom:60})}else{if(e<$("#footer").offset().top&&a==true){a=false;b.css({position:"fixed",bottom:10})}}});$(b).click(function(){$($.browser.opera?document.compatMode=="BackCompat"?"body":"html":"html,body").animate({scrollTop:0},500);return false})});$(function(){rollOver($("#header .nav img, #footer .nav img"))});(function(a){a.fn.rollOverImg=function(){rollOver(a(this))}})(jQuery);function rollOver(a){$(a).each(function(){$("<img>").attr("src",$(this).attr("src").replace(/^(.+)(\.[a-z]+)$/,"$1_on$2"));if($(this).parent().parent().hasClass("activeBtn")){$(this).attr("src",$(this).attr("src").replace(/^(.+)(\.[a-z]+)$/,"$1_on$2"))}else{$(this).parent().mouseover(function(){$("img",this).attr("src",$("img",this).attr("src").replace(/^(.+)(\.[a-z]+)$/,"$1_on$2"))}).mouseout(function(){$("img",this).attr("src",$("img",this).attr("src").replace(/^(.+)_on(\.[a-z]+)$/,"$1$2"))})}})}$(function(){$("#blogBtn a").hover(function(){$(this).stop(true,false).animate({top:-10,right:-10},300,"easeOutBack")},function(){$(this).stop(true,false).animate({top:-20,right:-20},100,"linear")})});$(function(){$(".blank").click(function(){window.open(this.href,"_blank");return false})});(function(b){b.fn.biggerlink=function(a){var d={biggerclass:"bl-bigger",hoverclass:"bl-hover",hoverclass2:"bl-hover2",clickableclass:"bl-hot",otherstriggermaster:true,follow:"auto"};if(a){b.extend(d,a)}b(this).filter(function(){return b("a",this).length>0}).addClass(d.clickableclass).css("cursor","pointer").each(function(i){var l=b(this).data("biggerlink",{hovered:false,focused:false,hovered2:false,focused2:false});var k={all:b("a",this),big:b(this),master:b("a:first",this).data("biggerlink",{status:"master"}).addClass(d.biggerclass),other:b("a",this).not(b("a:first",this)).data("biggerlink",{status:"other"})};b("a",this).andSelf().each(function(){var e=b.extend(b(this).data("biggerlink"),k);b(this).data("biggerlink",e)});var c=l.attr("title");var j=l.data("biggerlink").master.attr("title");if(j&&!c){l.attr("title",j)}l.mouseover(function(e){window.status=b(this).data("biggerlink").master.get(0).href;b(this).addClass(d.hoverclass);b(this).data("biggerlink").hovered=true}).mouseout(function(e){window.status="";if(!b(this).data("biggerlink").focused){b(this).removeClass(d.hoverclass)}b(this).data("biggerlink").hovered=false}).bind("click",function(e){if(!b(e.target).closest("a").length){b(this).data("biggerlink").master.trigger({type:"click",source:"biggerlink"});e.stopPropagation()}});k.all.bind("focus",function(){b(this).data("biggerlink").big.addClass(d.hoverclass);b(this).data("biggerlink").big.data("biggerlink").focused=true}).bind("blur",function(){if(!b(this).data("biggerlink").big.data("biggerlink").hovered){b(this).data("biggerlink").big.removeClass(d.hoverclass)}b(this).data("biggerlink").big.data("biggerlink").focused=false});k.master.bind("click",function(e){if(e.source=="biggerlink"){if(d.follow===true||d.follow=="auto"&&e.result!==false){window.location=b(this).attr("href")}else{e.stopPropagation()}}});if(d.otherstriggermaster){k.other.addClass(d.biggerclass).bind("click",function(e){b(this).data("biggerlink").master.trigger({type:"click",source:"biggerlink"});e.preventDefault();e.stopPropagation()})}else{k.other.bind("focus",function(){b(this).data("biggerlink").big.addClass(d.hoverclass2);b(this).data("biggerlink").big.data("biggerlink").focused2=true}).bind("blur",function(){if(!b(this).data("biggerlink").big.data("biggerlink").hovered2){b(this).data("biggerlink").big.removeClass(d.hoverclass2)}b(this).data("biggerlink").big.data("biggerlink").focused2=false}).bind("mouseover",function(e){b(this).data("biggerlink").big.addClass(d.hoverclass2);b(this).data("biggerlink").big.data("biggerlink").hovered2=true;e.stopPropagation()}).bind("mouseout",function(e){if(!b(this).data("biggerlink").big.data("biggerlink").focused2){b(this).data("biggerlink").big.removeClass(d.hoverclass2)}b(this).data("biggerlink").big.data("biggerlink").hovered2=false;e.stopPropagation()});if(!k.other.attr("title")){k.other.attr("title","")}}});return this}})(jQuery);
