function Init(b,a,c){glbar={};CheckDevice();glbar.baseInfor={pageurl:document.URL,referrer:document.referrer,domain:document.domain,rootdir:document.domain.match(/http/)?document.domain+"/":"http://"+document.domain+"/",cgi_extension:".cgi"};glbar.baseSend={pageurl:document.URL,referrer:document.referrer,domain:document.domain,generic:{}};glbar.generic={};glbctr={clickControl:{disable:false},subWindowControl:{shown:false,id:""},dialogControl:{shown:false,id:""},openOptionMenu:false};glbval={pageCtr:"",cache:{},partners:[],selectFortune:{usermode:"",select1:"",select2:"",option:"",adddata:""},olduserdata:{},advertise:{contract:{},selected:{personal:{},love:{},fortune:{},tarot:{}}}};glbIndex={dialogInput:{}};glbar.baseInfor.domain=document.domain?glbar.baseInfor.domain:"www.qabalah.jp";CSSHack();SetLibrary(b,a,c)}function SetLibrary(h,g,i){var l=i?"js/develop/":"js/release/",c="1.0.2",d=c+"/",j=h.match(/,/)?h.split(","):[h,c],b='<script type="text/javascript" src="'+glbar.baseInfor.rootdir+l,a='.js" charset="UTF-8"><\/script>',e="prd-lib/",f="pub-lib/",k="jq-plugin/";if(!i){document.write(b+e+d+"mother-"+c+a);document.write(b+e+d+"common-"+c+a);document.write(b+e+d+"object-"+c+a);document.write(b+e+d+"advertise-"+c+a);document.write(b+e+d+j[0]+"-"+j[1]+a)}g.match(/flash/)&&document.write(b+f+"swfobject-2.0.0"+a);if(g.match(/datasend/)){document.write(b+f+"json-2.0.0"+a);document.write(b+k+"jquery.cookie"+a);!i&&document.write(b+e+d+"utility-"+c+a)}g.match(/localdata/)&&document.write(b+f+"crypt"+a)}function CSSHack(){$.browser.msie&&parseInt($.browser.version)<=7&&$("body").css("font-family","Verdana,'\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af', 'MS PGothic', Osaka, sans-serif")}function CheckDevice(){if(navigator.userAgent.indexOf("iPhone")>0&&navigator.userAgent.indexOf("iPad")==-1||navigator.userAgent.indexOf("iPod")>0||navigator.userAgent.indexOf("Android")>0)if(window.name!="href_smph"){window.name="href_smph";location.href=document.domain.match(/http/)?document.domain+"/smartphone/":"http://"+document.domain+"/smartphone/"}}
