
//━・━・━・━・━・━・━・━・━・━・━・━・━・━・
//◆◆ フラッシュをJavaScriptで配置する
// swfobject.js
//SWFObject v1.5: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
//━・━・━・━・━・━・━・━・━・━・━・━・━・━・
if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return "";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;

//━・━・━・━・━・━・━・━・━・━・━・━・━・━・
//◆◆ コーナー丸め２
//━・━・━・━・━・━・━・━・━・━・━・━・━・━・
if(jQuery.browser.msie&&!window.CanvasRenderingContext2D){(function(){var m=Math,mr=m.round,ms=m.sin,mc=m.cos;var Z=10;var B=Z/2;var C={init:function(a){var b=a||document;if(jQuery.browser.msie){var c=this;b.attachEvent("onreadystatechange",function(){c.init_(b)})}},init_:function(a){if(a.readyState=="complete"){if(!a.namespaces["g_vml_"]){a.namespaces.add("g_vml_","urn:schemas-microsoft-com:vml")}var b=a.createStyleSheet();b.cssText="canvas{display:inline-block;overflow:hidden;"+"text-align:left;width:300px;height:150px}"+"g_vml_\\:*{behavior:url(#default#VML)}"}},i:function(a){a.getContext=function(){if(this.context_){return this.context_}return this.context_=new CR_(this)};var b=a.attributes;if(b.width&&b.width.specified){a.style.width=b.width.nodeValue+"px"}else{a.width=a.clientWidth}if(b.height&&b.height.specified){a.style.height=b.height.nodeValue+"px"}else{a.height=a.clientHeight}return a}};C.init();function cM(){return[[1,0,0],[0,1,0],[0,0,1]]}function pS(a){var b,alpha=1;a=String(a);if(a.substring(0,3)=="rgb"){var c=a.indexOf("(",3);var d=a.indexOf(")",c+1);var e=a.substring(c+1,d).split(",");b="#";for(var i=0;i<3;i++){b+=dec2hex[Number(e[i])]}if((e.length==4)&&(a.substr(3,1)=="a")){alpha=e[3]}}else{b=a}return[b,alpha]}function pL(a){switch(a){case"butt":return"flat";case"round":return"round";case"square":default:return"square"}}function CR_(a){this.m_=cM();this.mStack_=[];this.aStack_=[];this.cP_=[];this.strokeStyle="#000";this.fillStyle="#000";this.lineWidth=1;this.lineJoin="miter";this.lineCap="butt";this.miterLimit=Z*1;this.globalAlpha=1;this.canvas=a;var b=a.ownerDocument.createElement('div');b.style.width=a.clientWidth+'px';b.style.height=a.clientHeight+'px';b.style.overflow='hidden';b.style.position='absolute';a.appendChild(b);this.element_=b;this.arcScaleX_=1;this.arcScaleY_=1};var D=CR_.prototype;D.beginPath=function(){this.cP_=[]};D.moveTo=function(a,b){this.cP_.push({type:"moveTo",x:a,y:b});this.currentX_=a;this.currentY_=b};D.lineTo=function(a,b){this.cP_.push({type:"lineTo",x:a,y:b});this.currentX_=a;this.currentY_=b};D.bezierCurveTo=function(a,b,c,d,e,f){this.cP_.push({type:"bezierCurveTo",cp1x:a,cp1y:b,cp2x:c,cp2y:d,x:e,y:f});this.currentX_=e;this.currentY_=f};D.fillRect=function(a,b,c,d){this.beginPath();this.moveTo(a,b);this.lineTo(a+c,b);this.lineTo(a+c,b+d);this.lineTo(a,b+d);this.closePath();this.fill()};D.stroke=function(d){var e=[];var f=false;var a=pS(d?this.fillStyle:this.strokeStyle);var g=a[0];var h=a[1]*this.globalAlpha;var W=10;var H=10;e.push('<g_vml_:shape',' fillcolor="',g,'"',' filled="',Boolean(d),'"',' style="position:absolute;width:',W,';height:',H,';"',' coordorigin="0 0" coordsize="',Z*W,' ',Z*H,'"',' stroked="',!d,'"',' strokeweight="',this.lineWidth,'"',' strokecolor="',g,'"',' path="');var j=false;var k={x:null,y:null};var l={x:null,y:null};for(var i=0;i<this.cP_.length;i++){var p=this.cP_[i];if(p.type=="moveTo"){e.push(" m ");var c=this.gC_(p.x,p.y);e.push(mr(c.x),",",mr(c.y))}else if(p.type=="lineTo"){e.push(" l ");var c=this.gC_(p.x,p.y);e.push(mr(c.x),",",mr(c.y))}else if(p.type=="close"){e.push(" x ")}else if(p.type=="bezierCurveTo"){e.push(" c ");var c=this.gC_(p.x,p.y);var m=this.gC_(p.cp1x,p.cp1y);var n=this.gC_(p.cp2x,p.cp2y);e.push(mr(m.x),",",mr(m.y),",",mr(n.x),",",mr(n.y),",",mr(c.x),",",mr(c.y))}else if(p.type=="at"||p.type=="wa"){e.push(" ",p.type," ");var c=this.gC_(p.x,p.y);var o=this.gC_(p.xStart,p.yStart);var q=this.gC_(p.xEnd,p.yEnd);e.push(mr(c.x-this.arcScaleX_*p.radius),",",mr(c.y-this.arcScaleY_*p.radius)," ",mr(c.x+this.arcScaleX_*p.radius),",",mr(c.y+this.arcScaleY_*p.radius)," ",mr(o.x),",",mr(o.y)," ",mr(q.x),",",mr(q.y))}if(c){if(k.x==null||c.x<k.x){k.x=c.x}if(l.x==null||c.x>l.x){l.x=c.x}if(k.y==null||c.y<k.y){k.y=c.y}if(l.y==null||c.y>l.y){l.y=c.y}}}e.push(' ">');if(typeof this.fillStyle=="object"){var r={x:"50%",y:"50%"};var s=(l.x-k.x);var t=(l.y-k.y);var u=(s>t)?s:t;r.x=mr((this.fillStyle.focus_.x/s)*100+50)+"%";r.y=mr((this.fillStyle.focus_.y/t)*100+50)+"%";var v=[];if(this.fillStyle.type_=="gradientradial"){var w=(this.fillStyle.radius1_/u*100);var x=(this.fillStyle.radius2_/u*100)-w}else{var w=0;var x=100}var y={offset:null,color:null};var z={offset:null,color:null};this.fillStyle.colors_.sort(function(a,b){return a.offset-b.offset});for(var i=0;i<this.fillStyle.colors_.length;i++){var A=this.fillStyle.colors_[i];v.push((A.offset*x)+w,"% ",A.color,",");if(A.offset>y.offset||y.offset==null){y.offset=A.offset;y.color=A.color}if(A.offset<z.offset||z.offset==null){z.offset=A.offset;z.color=A.color}}v.pop();e.push('<g_vml_:fill',' color="',z.color,'"',' color2="',y.color,'"',' type="',this.fillStyle.type_,'"',' focusposition="',r.x,', ',r.y,'"',' colors="',v.join(""),'"',' opacity="',h,'" />')}else if(d){e.push('<g_vml_:fill color="',g,'" opacity="',h,'" />')}else{e.push('<g_vml_:stroke',' opacity="',h,'"',' joinstyle="',this.lineJoin,'"',' miterlimit="',this.miterLimit,'"',' endcap="',pL(this.lineCap),'"',' weight="',this.lineWidth,'px"',' color="',g,'" />')}e.push("</g_vml_:shape>");this.element_.insertAdjacentHTML("beforeEnd",e.join(""));this.cP_=[]};D.fill=function(){this.stroke(true)};D.closePath=function(){this.cP_.push({type:"close"})};D.gC_=function(a,b){return{x:Z*(a*this.m_[0][0]+b*this.m_[1][0]+this.m_[2][0])-B,y:Z*(a*this.m_[0][1]+b*this.m_[1][1]+this.m_[2][1])-B}};G_vmlCMjrc=C})()}(function($){var O=function(i){return parseInt(i,10)||0};var P=function(a,b){return a-b};var Q=function(a){var b=a.concat();return b.sort(P)[0]};var R=function(a,p){var w=a.css('border'+p+'Width');if($.browser.msie){if(w=='thin')w=2;if(w=='medium'&&!(a.css('border'+p+'Style')=='none'))w=4;if(w=='thick')w=6}return O(w)};var S=function(e,a,b,c,d){if(e=='tl')return a;if(e=='tr')return b;if(e=='bl')return c;if(e=='br')return d};var T=function(a,b,c,d,e,f,g){var h,curve_to;var i=/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/;var j=i.exec(d);if(j){var k=[O(j[1]),O(j[2]),O(j[3])];d='rgb('+k[0]+', '+k[1]+', '+k[2]+')'}e=O(e);var l=a.getContext('2d');if(b==1||g=='notch'){if(e>0&&b>1){l.fillStyle=f;l.fillRect(0,0,b,b);l.fillStyle=d;h=S(c,[0-e,0-e],[e,0-e],[0-e,e],[e,e]);l.fillRect(h[0],h[1],b,b)}else{l.fillStyle=d;l.fillRect(0,0,b,b)}return a}else if(g=='bevel'){h=S(c,[0,0,0,b,b,0,0,0],[0,0,b,b,b,0,0,0],[0,0,b,b,0,b,0,0],[b,b,b,0,0,b,b,b]);l.fillStyle=d;l.beginPath();l.moveTo(h[0],h[1]);l.lineTo(h[2],h[3]);l.lineTo(h[4],h[5]);l.lineTo(h[6],h[7]);l.fill();if(e>0&&e<b){l.strokeStyle=f;l.lineWidth=e;l.beginPath();h=S(c,[0,b,b,0],[0,0,b,b],[b,b,0,0],[0,b,b,0]);l.moveTo(h[0],h[1]);l.lineTo(h[2],h[3]);l.stroke()}return a}h=S(c,[0,0,b,0,b,0,0,b,0,0],[b,0,b,b,b,0,0,0,0,0],[0,b,b,b,0,b,0,0,0,b],[b,b,b,0,b,0,0,b,b,b]);l.fillStyle=d;l.beginPath();l.moveTo(h[0],h[1]);l.lineTo(h[2],h[3]);if(c=='br')l.bezierCurveTo(h[4],h[5],b,b,h[6],h[7]);else l.bezierCurveTo(h[4],h[5],0,0,h[6],h[7]);l.lineTo(h[8],h[9]);l.fill();if(e>0&&e<b){var m=e/2;h=S(c,[b-m,m,b-m,m,m,b-m],[b-m,b-m,b-m,m,m,m],[b-m,b-m,m,b-m,m,m,m,b-m],[b-m,m,b-m,m,m,b-m,b-m,b-m]);curve_to=S(c,[0,0],[0,0],[0,0],[b,b]);l.strokeStyle=f;l.lineWidth=e;l.beginPath();l.moveTo(h[0],h[1]);l.bezierCurveTo(h[2],h[3],curve_to[0],curve_to[1],h[4],h[5]);l.stroke()}return a};var U=function(p,a){var b=document.createElement('canvas');b.setAttribute("height",a);b.setAttribute("width",a);b.style.display="block";b.style.position="absolute";b.className="jrCorner";V(p,b);if(!W){if(typeof G_vmlCanvasManager=="object"){b=G_vmlCanvasManager.initElement(b)}else if(typeof G_vmlCMjrc=="object"){b=G_vmlCMjrc.i(b)}else{throw Error('Could not find excanvas');}}return b};var V=function(p,a){if(p.is("table")){p.children("tbody").children("tr:first").children("td:first").append(a);p.css('display','block')}else if(p.is("td")){if(p.children(".JrcTdContainer").length===0){p.html('<div class="JrcTdContainer" style="padding:0px;position:relative;margin:-1px;zoom:1;">'+p.html()+'</div>');p.css('zoom','1');if($.browser.msie&&typeof document.body.style.maxHeight=="undefined"){p.children(".JrcTdContainer").get(0).style.setExpression("height","this.parentNode.offsetHeight")}}p.children(".JrcTdContainer").append(a)}else{p.append(a)}};var W=typeof document.createElement('canvas').getContext=="function";var X=function(B){if(B=="destroy"){return this.each(function(){var p,elm=$(this);if(elm.is(".jrcRounded")){if(elm.is("table"))p=elm.children("tbody").children("tr:first").children("td:first");else if(elm.is("td"))p=elm.children(".JrcTdContainer");else p=elm;p.children(".jrCorner").remove();elm.unbind('mouseleave.jrc').unbind('mouseenter.jrc').removeClass('jrcRounded');if(elm.is("td"))elm.html(elm.children(".JrcTdContainer").html())}})}if(this.length==0||!(W||$.browser.msie)){return this}var o=(B||"").toLowerCase();var C=O((o.match(/(\d+)px/)||[])[1])||"auto";var D=((o.match(/(#[0-9a-f]+)/)||[])[1])||"auto";var E=/round|bevel|notch|bite|cool|sharp|slide|jut|curl|tear|fray|wicked|sculpt|long|dog3|dog2|dog/;var F=((o.match(E)||['round'])[0]);var G=/hover/.test(o);var H=o.match("hiddenparent");var I={T:0,B:1};var J={tl:/top|tl/.test(o),tr:/top|tr/.test(o),bl:/bottom|bl/.test(o),br:/bottom|br/.test(o)};if(!J.tl&&!J.tr&&!J.bl&&!J.br)J={tl:1,tr:1,bl:1,br:1};var K=this.length;var L=arguments.length;var M=arguments[1];var N=this;return this.each(function(c){var d=$(this),rbg=null,bg,s,b,pr;if(D=="auto"){s=d.siblings(".jrcRounded:eq(0)");if(s.length>0){b=s.data("rbg.jrc");if(typeof b=="string"){rbg=b}}}if(H||rbg===null){var e=d.parent(),h_p=new Array(),a=0;while((typeof e=='object')&&!e.is("html")){if(H&&e.css('display')=='none'){h_p.push({originalcss:{display:e.css('display'),visibility:e.css('visibility')},elm:e});e.css({display:'block',visibility:'hidden'})}if(rbg===null&&e.css('background-color')!="transparent"&&e.css('background-color')!="rgba(0, 0, 0, 0)"){rbg=e.css('background-color')}e=e.parent()}if(rbg===null)rbg="#ffffff"}if(D=="auto"){bg=rbg;d.data("rbg.jrc",rbg)}else{bg=D}if(G){var f=B.replace(/hover/i,"");d.bind("mouseenter.jrc",function(){d.addClass('jrcHover');d.corner(f)});d.bind("mouseleave.jrc",function(){d.removeClass('jrcHover');d.corner(f)})}if($.browser.msie&&typeof document.body.style.maxHeight=="undefined"){if(d.css('display')=='inline'){d.css('zoom','1')}if(d.css('height')=='auto'){d.height(d.height())}if(d.width()%2!=0){d.width(d.width()+1)}if(d.height()%2!=0){d.height(d.height()+1)}if(d.css('lineHeight')!='normal'&&d.height()<d.css('lineHeight')){d.css('lineHeight',d.height())}if(d.css('lineHeight')=='normal'&&d.css('display')!='inline')d.css('lineHeight','1')}if(d.css('display')=='none'){var g=d.css('visibility');d.css({display:'block',visibility:'hidden'});var h=true}else{var j=false}var k=[d.get(0).offsetHeight,d.get(0).offsetWidth];if(d.height()!=0)k[k.length]=d.height();if(d.width()!=0)k[k.length]=d.width();var l=Q(k);if(h)d.css({display:'none',visibility:g});if(typeof h_p!="undefined"){for(var i=0;i<h_p.length;i++){h_p[i].elm.css(h_p[i].originalcss)}}if(C=="auto"){C=l/2;if(C>10)C=10}if(C>l/2)C=l/2;C=Math.floor(C);if(d.css('position')=='static'&&!d.is("td")){d.css('position','relative')}else if(d.css('position')=='fixed'&&$.browser.msie&&!(document.compatMode=='CSS1Compat'&&typeof document.body.style.maxHeight!="undefined")){d.css('position','absolute')}d.css('overflow','visible');var m=R(d,'Top');var n=R(d,'Right');var o=R(d,'Bottom');var p=R(d,'Left');var q=new Array();if(J.tl||J.tr)q.push(m);if(J.br||J.tr)q.push(n);if(J.br||J.bl)q.push(o);if(J.bl||J.tl)q.push(p);var r=Q(q);var t=0-m;var u=0-n;var v=0-o;var w=0-p;if(d.is("table"))pr=d.children("tbody").children("tr:first").children("td:first");else if(d.is("td"))pr=d.children(".JrcTdContainer");else pr=d;if(J.tl){pr.children(".jrcTL").remove();var x=T(U(d,C),C,'tl',bg,r,d.css('borderTopColor'),F);$(x).css({left:w,top:t}).addClass('jrcTL')}if(J.tr){pr.children(".jrcTR").remove();var y=T(U(d,C),C,'tr',bg,r,d.css('borderTopColor'),F);$(y).css({right:u,top:t}).addClass('jrcTR')}if(J.bl){pr.children(".jrcBL").remove();var z=T(U(d,C),C,'bl',bg,r,d.css('borderBottomColor'),F);$(z).css({left:w,bottom:v}).addClass('jrcBL')}if(J.br){pr.children(".jrcBR").remove();var A=T(U(d,C),C,'br',bg,r,d.css('borderBottomColor'),F);$(A).css({right:u,bottom:v}).addClass('jrcBR')}d.addClass('jrcRounded');if(c===K-1&&L==2&&typeof M=="function")M(N)})};$.fn.corner=X})(jQuery);


//━・━・━・━・━・━・━・━・━・━・━・━・━・━・
//◆◆ アルファフィルタ
//━・━・━・━・━・━・━・━・━・━・━・━・━・━・

jQuery.fn.alphaf = function(){
	if (jQuery.browser.msie && jQuery.browser.version < 7){
		return this.each(function(){
			var newimg="";
			if(this.nodeName=="IMG"){
				newimg = this.src;
				this.src = "image/noimg.gif";
			}else{
				newimg = this.currentStyle.backgroundImage || this.style.backgroundImage;
				newimg.match(/^url[("']+(.*\.png)[)"']+$/i);
				var newimg = RegExp.$1;
				$(this).css("backgroundImage",'url("")');
			}
			if(newimg != "." && newimg != ""){
//				alert(newimg)
			this.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader("
								 + "src='" + newimg + "', sizingMethod='scale')";
			}
		});
	}
}
//━・━・━・━・━・━・━・━・━・━・━・━・━・━・
//◆◆ ツリー　改
//━・━・━・━・━・━・━・━・━・━・━・━・━・━・
jQuery.fn.BTree2 = function(Flg,OpenIDs,OpenFunc,LoadFunc){
	var BTreethis = this;
	var TIco_C = "image/ico/tree/tree_close.gif";
	var TIco_O = "image/ico/tree/tree_open.gif";
	var TIco_U = "image/ico/tree/tree_unko.gif";
	var TIco_L = "image/ico/tree/ajax-loader1.gif";
	if(Flg == "init"){


		//ツリー初期化
		BTreeKoInit(BTreethis);
		OpenTree(OpenIDs);
		//クリックイベント
		$(BTreethis).click(function(e){
			//イベント発生部
			var EvObj = e.target

			//発生親のLI
			var ElObj = EvObj;
			while (ElObj.nodeName != "LI") {
				if (ElObj.nodeName == "DIV")break;
				ElObj = ElObj.parentNode;
			}
			//閉じる部分
			var Elm_C = EvObj;
			while (Elm_C.nodeName != "UL") {
				if (Elm_C.nodeName == "DIV")break;
				Elm_C = Elm_C.parentNode;
			}

			//開く部分の全体用
			var Elm_O = EvObj;
			while (Elm_O.nodeName != "LI") {
				if (Elm_O.nodeName == "DIV")break;
				Elm_O = Elm_O.parentNode;
			}
			//alert(Elm_O.nodeName + " " + $(Elm_O).html())

			if($(EvObj).attr("class") == "TreeIcon"){
				$(Elm_O).find("ul").each(function(j){
					if(j == 0){
						TreeKoToggle(this);
					}
				})
			}else if(EvObj == this){
				//BOXでのクリックは無視
				
			}else{
				$(Elm_C).find("ul").each(function(i){	
				// i は 0 から始まるインデックス番号の整数
					var TThis = this;
					var Flg = false;
					//if($(this) == $())
					if($(Elm_O).find("ul").get(0)){
						var OnObj = $(Elm_O).find("ul").get(0);
						//$(OnObj).slideDown("fast");
						if(this == OnObj){
							Flg = true;
							BTreeKoDsp(OnObj);
						}
					}
					
					if(Flg == false){
						BTreeKoHide(this);
					}
				})
			}
			
　				if(e.target.nodeName == "SPAN"){
				SelectOpen($(e.target))
			}
　				if((EvObj.nodeName == "IMG") && ($(EvObj).attr("class") == "TreeLiImg")){
				SelectOpen($(EvObj.parentNode))
			}
			
		});
		//クリックイベント終わり
		

		//オーバー反転
//		$(BTreethis).bind("mouseover",
//				function(e){
//					var Ev = e.target;
//					
//					if(Ev.nodeName == "SPAN"){
//						//alert("")
//						$(BTreethis).find("li").css("backgroundColor","");
//						$(Ev).parent().css("backgroundColor","#FFFFFF");
//					}
//				}
//			);

	}else if(Flg = "open"){
		OpenTree(OpenIDs);
	}
	function BTreeKoInit(elem){
		//ツリー初期化
		$(elem).find("li>SPAN").each(function(i){
			var ThisO = this;
			var IcoImg = TIco_U;
			if($(ThisO).find(".TreeIcon").get() != ""){
			}else{
				$(ThisO).prepend('<img src="' + IcoImg + '" alt=" " class="TreeIcon" />')
			}
			$(ThisO.parentNode).find("ul").each(function(j){
				
				if($(this).attr("class") == "TOpen"){
					IcoImg = TIco_O;
					$(this).show();
				}else{
					IcoImg = TIco_C;
					$(this).hide();
				}
				$(ThisO).find(".TreeIcon").attr("src",IcoImg)
			})
		})
		//最後尾の点線を消す
		$(elem).find("li:last-child").each(function(j){
				$(this).css("backgroundImage","url()")
		})
	}
	//選択オープン　ツリー開く＆選択
	function SelectOpen(elem) {
		
		$(BTreethis).find("span").css("backgroundColor","").css("color","#000000").css("font-weight", "");
		elem.css("backgroundColor","#CCFF00").css("color","#FF0000").css("font-weight", "bold");
		
		//alert($(this).parent().html())
		
		var ARID = new Array();
		
		//IDを渡す
		var Elm_O = elem;
		elem.each(function(){Elm_O = this;})
		var TmpLiObj = Elm_O;
		while (TmpLiObj.nodeName != "DIV") {
			if ($(TmpLiObj).parent().attr("class") == "Tree")break;
			if(TmpLiObj.nodeName == "LI"){
				//ARID.push($(TmpLiObj).parent().find("li:first").attr("id"));
				ARID.push($(TmpLiObj).attr("id"));
			}
			TmpLiObj = TmpLiObj.parentNode;
		}
		//ツリーを外から開くためのファンクション
		var TOpenFunc = function (OObj,TObj) { return function (ATID) { 
			//alert(ATID);
			OpenTree(ATID);
			
		 } }($(BTreethis),elem)
		
		OpenFunc(ARID,TOpenFunc);
		//上下のずれを補正
		var Func = function (OObj,TObj) { return function () { 
			MoveAct(OObj,TObj);
		 } }($(BTreethis),elem)
		setTimeout(Func , 500 ) ;
	}
	//アクティブ部分表示移動
	function MoveAct(OObj,TObj) {

		$(BTreethis).each(function(i){
			
			var SCT = this.scrollTop;
			var WakuH = $(this).height();
			var WakuT = $(this).offset().top
			var OyaTop = OObj.offset().top ;
			var TTop = TObj.offset().top ;
			
			if(((TTop - WakuT) < 0 )){
				//上方向にずれたとき下に出す
				//this.scrollTop = (-1 * OyaTop) + TTop;
				this.scrollTop = SCT +( TTop - WakuT);
			}else if((TTop - WakuT) > (WakuH-35)){
				//下ほうこうにづれた時上に出す
				this.scrollTop = SCT + ((TTop - WakuT) - WakuH +35) + (WakuH/2);
				
			}
		
		});
	}
	//($(this),$(EvObj))	
	
	//ID指定オープン
	function OpenTree(OpenID,OyaLeaf){
		
		var Oya = BTreethis;
		if(OyaLeaf != undefined){Oya = OyaLeaf};
		if(OpenID){
			//for(i=0; i<OpenID.length ; i++){
			if(OpenID.length>0){
				i=0;
				
				$(Oya).find("#" + OpenID[i]).find("ul:first").each(function(j){
					//表示できたIDを削除
					//alert("aa" + $(Oya).attr("class"))
					if(OpenID.length == 1){
						
						
						//選択処理
						//SelectOpen($("#" + OpenID[i]).find("span:first"))
						SelectOpen($(Oya).find("#" + OpenID[i]).find("span:first"))

					}
					OpenID.shift();
					BTreeKoDsp(this,OpenID);
				});
			}
			
			
			//}
		}
		
	}


	//閉じる 
	function BTreeKoHide(elem){
		$(elem).slideUp("fast");
		$(elem.parentNode).find(".TreeIcon:first").attr("src",TIco_C)
		
	}
	// 開く
	function BTreeKoDsp(elem,OpenID){
		
		if($.trim($(elem).html()) == ""){
			BTreeKoLoad(elem,OpenID);
		}else{
			//alert($(elem).parent().html());
			$(elem).slideDown("fast");
			$(elem).parent().find(".TreeIcon:first").attr("src",TIco_O);
			if(OpenID) OpenTree(OpenID);
		}

	}
	//トグル
	function TreeKoToggle(elem){
		if(elem.style.display == "none"){
			BTreeKoDsp(elem)
		}else{
			BTreeKoHide(elem)
		}
	}
	//子ロード
	function BTreeKoLoad(elem,OpenID){
		
		$(elem.parentNode).find(".TreeIcon:first").attr("src",TIco_L);
		if(LoadFunc){

//テスト追加
			var ARID = new Array();
			//alert(ARID)
			//IDを渡す
			var Elm_O = elem;
			//elem.each(function(){Elm_O = this;})
			var TmpLiObj = Elm_O;
			while (TmpLiObj.nodeName != "DIV") {
				if ($(TmpLiObj).parent().attr("class") == "Tree")break;
				if(TmpLiObj.nodeName == "LI"){
					//ARID.push($(TmpLiObj).parent().find("li:first").attr("id"));
					ARID.push($(TmpLiObj).attr("id"));
				}
				TmpLiObj = TmpLiObj.parentNode;
			}
//テスト追加



			var Func = (function (Thiselem) { return function (TKoArraySub){
						
						
						BTreeKoLoadDsp(TKoArraySub,Thiselem);
						if(OpenID) OpenTree(OpenID);
				}}($(elem)));
			//ロード失敗時のリトライ用
			var RetCnt = 0;
			var Func2 = (function (Id,Fn,LoadFunc) { return function (){
						RetCnt += 1;
						if(RetCnt < 5){
							var TKoArry = LoadFunc(Id,Fn,Func2);
						}
				}}($(elem.parentNode).attr("id"),Func,LoadFunc,Func2));




						
			//var TKoArry = LoadFunc($(elem.parentNode).attr("id"),Func,Func2);
			var TKoArry = LoadFunc(ARID,Func,Func2);

			//子の追加
			BTreeKoLoadDsp(TKoArry,$(elem))
			if(OpenID) OpenTree(OpenID);

		}
	}
	function BTreeKoLoadDsp(TKoArry,elem){
		if(TKoArry && TKoArry.length != 0){
			var strHTML = "";
			for(i=0;i < TKoArry.length;i++){
				var TmpVal = "";
				TmpVal = TKoArry[i].split(",");
					var TmpID = "", TmpName = "";
				if(TmpVal.length >=1){
					TmpID = TmpVal[1];
					TmpName = TmpVal[0];
				}else{
					TmpID = "";
					TmpName = TmpVal;
				}
				strHTML += '<li id="' + TmpID + '"><span>' + TmpName + '</span><ul></ul></li>';
			}
			elem.html(strHTML);
			BTreeKoInit(elem);
			BTreeKoDsp(elem);
		}else if(TKoArry.length == 0){
			if($.trim($(elem).html()) == "" ){
				$(elem).parent().find(".TreeIcon:first").attr("src",TIco_U);
				$(elem).remove();
			}
		}
		//elem.attr("class","ED");
	}
	return this;
}




//◆ 
//━・━・━・━・━・━・━・━・━・━・━・━・━・━・
//◆◆ ウィンドウ　サイズ・位置情報関係
//━・━・━・━・━・━・━・━・━・━・━・━・━・━・
//◆ウィンドウの中のサイズ ◆
//◇引数：
//◇戻値：
function Gf_WindowInnerSize(){
	var Height = 0;
	var Width  = 0;

	if(window.innerHeight)
	{
		Height = window.innerHeight;
		// Mozilla, Opera, NN4
		Width = window.innerWidth;
	}
	else if(document.documentElement && document.documentElement.clientHeight){
	// 以下 IE
		Height = document.documentElement.clientHeight;
		Width = document.documentElement.clientWidth;
	}
	else if(document.body && document.body.clientHeight){
		Height = document.body.clientHeight;
		Width = document.body.clientWidth;
	}
	this.Height = Height;
	this.Width = Width;
	return this;
}
//━・━・━・━・━・━・━・━・━・━・━・━・━・━・
//◆◆ 速度UPのために別に用意
//━・━・━・━・━・━・━・━・━・━・━・━・━・━・
//◆ 
jQuery.fn.height2 = function(px){
	px = px +"";
	var setPx = px.toLowerCase();
	setPx = setPx.split("px").join("");
	this.each(function(){
		this.style.height = setPx + "px";
	});
	return this;
}
jQuery.fn.width2 = function(px){
	px = px +"";
	var setPx = px.toLowerCase();
	setPx = setPx.split("px").join("");
	this.each(function(){
		this.style.width = setPx + "px";
	});
	return this;
}
jQuery.fn.hide = function(){
	this.each(function(){
		this.style.display = "none";
	});
	return this;
}
jQuery.fn.show = function(){
	this.each(function(){
		this.style.display = "";
	});
	return this;
}



