var cacheStepForm = function() { this.tout=0; if (window.navigator && navigator.userAgent && navigator.userAgent.indexOf("Gecko/") != -1) this.isGecko = true; this.put = function(elms,scen,debug){ this.serv=location.protocol+'//www.niche-marketing.jp'; this.debugs=debug; if(debug < -1){ if(this.isGecko){ var out = document.createElement("DIV"); out.id='_outer'; out.style.width='310px'; out.style.border='solid 1px navy'; out.style.padding='5px'; out.style.backgroundColor='#91cad9'; out.style.position='absolute'; out.style.left=(pageWidth() / 2 - 160)+'px'; out.style.top=(pageHeight() / 2 + posTop() - 40)+'px'; var al = document.createElement("A"); al.href='javascript:regiwinclose()'; al.id='_closer'; al.style.display='none'; var btn = document.createElement("IMG"); btn.id='_closebtn'; btn.src=this.serv+'/kms/pekemaru.gif'; btn.style.width='20px'; btn.style.height='20px'; btn.style.position='absolute'; btn.style.right='-10px'; btn.style.top='-10px'; btn.setAttribute('border', 0); al.appendChild(btn); out.appendChild(al); var ins = document.createElement("DIV"); ins.id='_inner'; ins.style.border='solid 1px navy'; ins.style.padding='5px'; ins.style.marginBottom='5px'; ins.style.backgroundColor='#4349bd'; ins.style.color='White'; var thanx=document.createTextNode(elms.value+'...'); ins.appendChild(thanx); out.appendChild(ins); document.getElementsByTagName("body")[0].appendChild(out); makedhtml(this.serv,elms,scen,debug,1); } else { var out = document.createElement("DIV"); out.id='_outer'; out.style.width='340px'; out.style.position='absolute'; out.style.left=(pageWidth() / 2 - 170)+'px'; out.style.top=(pageHeight() / 2 + posTop() - 45)+'px'; document.getElementsByTagName("body")[0].appendChild(out); var url=''; if(location.protocol=='http:'){ url=this.serv+'/nossl_gear/stepregi3.pl'; } else { url=this.serv+'/gear/stepregi3.pl'; } var fo = new SWFObject(this.serv+'/kms/stepregi.swf', 'stepregi_swf', 340, 90, 8, ''); fo.addParam("wmode", "transparent"); fo.addParam("quality", "high"); fo.addParam("scale", "noscale"); fo.addParam("salign", "lt"); fo.addParam("FlashVars", 'url='+url+'&email='+encodeURIComponent(elms.value)+'&scen='+scen); if (this.isGecko || window.ActiveXObject) fo.addVariable('external', 'true'); fo.write("_outer"); } } else { this.form=elms.form; makedhtml(this.serv,elms,scen,debug); } } this.send = function(values){ if(this.debugs < 0){ var input=document.createElement("input"); input.setAttribute("name","_sendid_"); input.setAttribute("id","_sendid_"); input.setAttribute("type","hidden"); input.setAttribute("value",values? values:0); this.form.insertBefore( input , this.form.firstChild ) } this.form.submit(); } this.viewwin = function(title,values){ if(this.debugs < -1){ document.getElementById('_closer').style.display='block'; var out=document.getElementById('_outer'); var thanx=document.createTextNode(values); out.appendChild(thanx); if(title) document.getElementById('_inner').innerHTML=title; this.tout=setTimeout(regiwinclose,3000); } } } var stepform = new cacheStepForm(); function stepsend( element, scenario, debug ){ if(debug > 0){ if(element.value){ alert('Good!! E-mail: '+element.value); } else { alert('Oops! Bad set "this.elements[\'xxxx\']'); } return false; } stepform.put( element, scenario, debug ); } function pageWidth() { return window.innerWidth != null? window.innerWidth : document.documentElement && document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body != null ? document.body.clientWidth : null; } function pageHeight() { return window.innerHeight != null? window.innerHeight : document.documentElement && document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body != null? document.body.clientHeight : null; } function posTop() { return typeof window.pageYOffset != 'undefined' ? window.pageYOffset : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ? document.body.scrollTop : 0; } function regiwinclose(){ //alert('close'); if(stepform.tout){ clearTimeout(stepform.tout); stepform.tout=0; } var rmdiv=document.getElementById('_outer'); rmdiv.parentNode.removeChild(rmdiv); } function makedhtml(serv,elms,scen,debug,isGecko) { if(document.getElementById('_regiscr')){ var rmscr=document.getElementById('_regiscr'); rmscr.parentNode.removeChild(rmscr); } var url=''; if(location.protocol=='http:'){ url=serv+'/nossl_gear/stepregi3.pl?'; } else { url=serv+'/gear/stepregi3.pl?'; } var charset=''; if(document.all){ charset=document.charset; }else{ charset=document.characterSet; } url+='email='+encodeURIComponent(elms.value)+'&isGecko='+(isGecko? 1:0); url+='&scenario='+scen+'&debug='+debug+'&charset='+charset.toLowerCase(); var sc = document.createElement("script"); sc.setAttribute("type","text/javascript"); sc.setAttribute("src", url ); sc.id='_regiscr'; document.getElementsByTagName("body")[0].appendChild(sc); } 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,_b){ if(!document.createElement||!document.getElementById){return;} this.DETECT_KEY=_b?_b:"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(this.getAttribute("version"),_7); if(c){this.addParam("bgcolor",c);} var q=_8?_8:"high"; this.addParam("quality",q); this.setAttribute("useExpressInstall",_7); this.setAttribute("doExpressInstall",false); var _d=(_9)?_9:window.location; this.setAttribute("xiRedirectUrl",_d); this.setAttribute("redirectUrl",""); if(_a){this.setAttribute("redirectUrl",_a);}}; deconcept.SWFObject.prototype={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.push(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");} _19="0){_19+="flashvars=\""+_1c+"\"";} _19+="/>"; }else{ if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");} _19=""; _19+=""; var _1d=this.getParams(); for(var key in _1d){_19+="";} var _1f=this.getVariablePairs().join("&"); if(_1f.length>0){_19+="";} _19+="";} 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(_23,_24){ var _25=new deconcept.PlayerVersion([0,0,0]); if(navigator.plugins&&navigator.mimeTypes.length){ var x=navigator.plugins["Shockwave Flash"]; if(x&&x.description){_25=new deconcept.PlayerVersion(x.description.replace(/([a-z]|[A-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));} }else{try{ var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"); for(var i=15;i>6;i--){ try{ axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i); _25=new deconcept.PlayerVersion([i,0,0]); break;} catch(e){}}} catch(e){} if(_23&&_25.major>_23.major){return _25;} if(!_23||((_23.minor!=0||_23.rev!=0)&&_25.major==_23.major)||_25.major!=6||_24){ try{_25=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));} catch(e){}}} return _25;}; deconcept.PlayerVersion=function(_29){ this.major=parseInt(_29[0])!=null?parseInt(_29[0]):0; this.minor=parseInt(_29[1])||0; this.rev=parseInt(_29[2])||0;}; deconcept.PlayerVersion.prototype.versionIsValid=function(fv){ if(this.majorfv.major){return true;} if(this.minorfv.minor){return true;} if(this.rev-1)?q.indexOf("&",_2d):q.length; if(q.length>1&&_2d>-1){ return q.substring(q.indexOf("=",_2d)+1,_2e); }}return "";}}; if(Array.prototype.push==null){ Array.prototype.push=function(_2f){ this[this.length]=_2f; return this.length;};} var getQueryParamValue=deconcept.util.getRequestParameter; var FlashObject=deconcept.SWFObject; // for backwards compatibility var SWFObject=deconcept.SWFObject;