
var transpng={init:function(){var browser=navigator.appVersion.split("MSIE");var version=parseFloat(browser[1]);if((version>=5.5)&&(document.body.filters)){var lists=$('img');var num=lists.length;for(var i=0;i<num;i++){transpng.make(lists[i]);}}},make:function(obj){var img=obj;var imgName=img.src.toUpperCase();if(imgName&&imgName.substring(imgName.length-3,imgName.length)=="PNG"&&img.src){var imgID=(img.id)?' id="'+img.id+'" ':'';var imgClass=(img.className)?' class="'+img.className+'" ':'';var imgTitle=(img.title)?' title="'+img.title+'" ':' title="'+img.alt+'" ';var imgStyle="display:inline-block;"+img.style.cssText;if(img.align=="left")imgStyle="float:left;"+imgStyle;if(img.align=="right")imgStyle="float:right;"+imgStyle;if(img.parentElement.href)imgStyle="cursor:hand;"+imgStyle;var strNewHTML='<span '+imgID+imgClass+imgTitle
+' style="'+'width:'+img.width+'px; height:'+img.height+'px;'+imgStyle+';'
+'filter:progid:DXImageTransform.Microsoft.AlphaImageLoader'
+'(src=\''+img.src+'\', sizingMethod=\'scale\');"></span>';img.outerHTML=strNewHTML;}}}
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;
var Pub={preload:function(path){var bufImg=new Image();bufImg.src=path;return true;},resizeTextarea:function(e,cols){var v=e.val();var ln=1;var lines=v.split(/\r\n|\r|\n/);for(var i=0,chnum=0,l=lines.length;i<l;i++){chnum=0;for(var j=0,jn=lines[i].length;j<jn;j++){if(Str.checkHankaku(lines[i].charAt(j))){chnum++;}else{chnum+=2;}}
if(chnum>cols){ln+=1+Math.floor(chnum/cols);}else{ln++;}}
e.attr("rows",ln);}}
var Str={checkHankaku:function(msg){var i;var hankaku=" \tabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()=~^|\\@`[]{};+:*_/?,.<>";var checkStr=new String(hankaku);if(msg.length==0){return false;}
for(i=0;i<msg.length;i++){if(checkStr.indexOf(msg.charAt(i),0)==-1){return false;}}
return true;}}
var Body={obj:false,init:function(){Body.obj=$('html > body');}};var Form={init:function(){jQuery("form").bind("submit",function(){var buttons=jQuery(this).find(":image, :submit");setTimeout(function(){buttons.attr("disabled",true);setTimeout(function(){buttons.attr("disabled",false);},3000);},1);}).find(":image, :submit").attr("disabled",false);}};var CatchImage={obj:false,canvas:false,box:false,tab:false,tab_obj:false,tab_list:false,sel:0,to:false,swfflag:false,init:function(){CatchImage.obj=$('div#catch',Body.obj);if(CatchImage.obj!=null){CatchImage.showImage();CatchImage.canvas=$('div#catch_00',CatchImage.obj);CatchImage.canvas.css('display','block');CatchImage.box=[$('div#catch_01',CatchImage.obj),$('div#catch_02',CatchImage.obj),$('div#catch_03',CatchImage.obj),$('div#catch_04',CatchImage.obj)];CatchImage.tab_obj=$('div#catch_tab',Body.obj);CatchImage.tab_obj.css('display','block');CatchImage.tab=[$('li#catch_tab_01',CatchImage.tab_obj),$('li#catch_tab_02',CatchImage.tab_obj),$('li#catch_tab_03',CatchImage.tab_obj),$('li#catch_tab_04',CatchImage.tab_obj)];CatchImage.tab_list=$('ul li',CatchImage.tab_obj);CatchImage.tab_list.click(function(){CatchImage.change($(this));});CatchImage.tab_list.hover(function(){$(this).children('span').addClass('over');},function(){$(this).children('span').removeClass('over');CatchImage.tab[CatchImage.sel].children('span').addClass('over');});CatchImage.to=CatchImage.box[0];CatchImage.showContents();}},change:function(e){var id=CatchImage.getId(e.attr('id'));if(id==3){location.href='/case.php'
return true;}
if(id!=CatchImage.sel){CatchImage.to=CatchImage.box[id];CatchImage.showContents();CatchImage.sel=id;CatchImage.showTab();if(CatchImage.swfflag==true){CatchImage.makeSwf();}}},showContents:function(){CatchImage.canvas.empty();CatchImage.to.clone().appendTo(CatchImage.canvas);CatchImage.canvas.children().fadeIn('fast');return true;},showTab:function(){CatchImage.tab_list.children('span').removeClass('over');CatchImage.tab[CatchImage.sel].children('span').addClass('over');return true;},getId:function(id){return parseInt(id.slice(-1))-1;},showImage:function(){var so=new SWFObject("/anime.swf","catch_swf","400","200","8","#ffffff");if(!so.write("anime_demo")){$('#anime_demo').append('<p>このコンテンツを視聴するには、JavaScript が有効になっていることと、最新バージョンの Adobe Flash Player を利用していることが必要です。</p><p>今すぐ無償 Flash Player をダウンロード！<br /><a href="http://get.adobe.com/jp/flashplayer/" title="Adobe Flash Playerのダウンロード"><img src="/img/btn/get_flash_player.gif" width="112" height="33" alt="Adobe Flash Playerのダウンロード" /></a></p>');}
return true;},makeSwf:function(){CatchImage.swfflag=true;$('div#anime_demo',CatchImage.obj).empty();var swf=new SWFObject("/demo.swf","ctable-swf","400","200","8","#ffffff");swf.write("anime_demo");return true;}};var Header={init:function(){var trial_link=$('div#h > div#h_trial',Body.obj);var case_link=$('div#h > div#h_case',Body.obj);if(trial_link!=null){trial_link.click(function(){location.href='/#trial';});}
if(case_link!=null){case_link.click(function(){location.href='/case.php';});}}};var Link={init:function(){Link.makeBlank();var obj_prev=$('div#case_client div.prev',Body.obj);var obj_next=$('div#case_client div.next',Body.obj);if(obj_prev!=null){obj_prev.css({cursor:'pointer'});obj_prev.click(function(){location.href=$('li > a',obj_prev).attr('href');});}
if(obj_next!=null){obj_next.css({cursor:'pointer'});obj_next.click(function(){location.href=$('li > a',obj_next).attr('href');});}},makeBlank:function(){$("a.blank",Body.obj).each(function(){jQuery(this).attr({target:'_blank'});});}};function swapDemo(){CatchImage.makeSwf();return true;}
$(document).ready(function(){Body.init();transpng.init();Form.init();Header.init();Link.init();});