﻿(function(){if(window!=parent){alert("Warning! The Iframe of behavior is invalid!");document.location="http://www.1stcore.com"}else{var h=document.location+"";var k=[49,115,116,99,111,114,101];var l=[121,101,101,111,104];var o="";var p="";var q="";for(var i=0;i<k.length;i++){o+=String.fromCharCode(k[i])}for(var i=0;i<l.length;i++){p+=String.fromCharCode(l[i])}q+="http://wwww.";if(h.indexOf(o)!=-1||h.indexOf(p)!=-1){}else{window.location=q+o+".com"}}String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)/g,"")};String.prototype.toHtml=function(){var b=/&lt;|&gt;|&quot;|&#39;|&amp;/ig;return this.replace(b,function(a){switch(a){case"&lt;":return"<";case"&gt;":return">";case"&quot;":return"\"";case"&#39;":return"'";case"&amp;":return"&";default:break}})};Array.prototype.Foreach=function(a){for(var i=0,j=this.length;i<j;i++){a.call(this[i],i)}};Array.prototype.AddRange=function(a){for(var i=0,j=a.length;i<j;i++){this.push(a[i])}return this};Array.prototype.AddItem=function(a){if(a){for(var i=0,j=newList.length;i<j;i++){this.push(a)}}return this};Array.prototype.Remove=function(a){for(var i=0,j=this.length;i<j;i++){if(this[i]==a){return this.splice(i,1)}}};Date.prototype.addYear=function(a){this.setFullYear(this.getFullYear()+a);return this};Date.prototype.addMonth=function(a){this.setMonth(this.getMonth()+a);return this};Date.prototype.addDay=function(a){this.setDate(this.getDate()+a);return this};Date.prototype.addHour=function(a){this.setHours(this.getHours()+a);return this};Date.prototype.addMinute=function(a){this.setMinutes(this.getMinutes()+a);return this};Date.prototype.addSecond=function(a){this.setSeconds(this.getSeconds()+a);return this};Date.prototype.addMS=function(a){this.setMilliseconds(this.getMilliseconds()+a);return this};Date.prototype.addWeek=function(a){this.setDate(this.getDate()+a*7);return this};var r;r=window.JSoul=function(a,b){return new r.prototype.Init(a,b)};r.fn=r.prototype={Init:function(a,b){a=a||document;if(a.nodeType){return this.setSingle(a)}else if(typeof(a)=="string"){return r(b).find(a)}return this.setArray(a.constructor==Array&&a||(a.jsoul||a.length&&a!=window&&!a.nodeType&&a[0]!==undefined&&a[0].nodeType)&&r.makeArray(a)||[a])},setSingle:function(a){this[0]=a;this.length=1;return this},length:0,jsoul:"1.0.0.0",get:function(a){return a===undefined?r.makeArray(this):this[a]},pushStack:function(a){var b=r(a);b.prevObject=this;this.nextObject=b;return b},setArray:function(a){this.length=0;Array.prototype.push.apply(this,a);return this},find:function(b){var c=r.map(this,function(a){return r.find(b,a)});return this.pushStack(c)},marge:function(a){Array.prototype.push.apply(this,r.makeArray(a));return this},each:function(a){for(var i=0,j=this.length;i<j;i++){a.call(this[i],i)}},forEach:function(a){this.each(function(i){a(this,i)});return this}};window.$=r;r.prototype.Init.prototype=r.prototype;r.extend=r.fn.extend=function(a){for(var i in a){this[i]=a[i]}};r.extend({makeArray:function(a){var b=[];if(typeof(a)!="array"){for(var i=0,length=a.length;i<length;i++){b.push(a[i])}}else{b=a.slice(0)}return b},map:function(a,b){var c=[];for(var i=0,j=a.length;i<j;i++){var d=b(a[i],i);if(d!==null&&d!==undefined){if(d.constructor!=Array){d=[d]}c=c.concat(d)}}return c},find:function(a,b){b=b||document;var c=/^(.)/.exec(a);if(c&&c[1]){switch(c[1]){case"#":return r.getByID(r.replaceToSplit(a,"#"),b);case"$":return r.getByAttr(r.replaceToSplit(a,"$"),b);case">":return r.getByFormSub(r.replaceToSplit(a,">"),b);default:return r.getByTag(r.replaceToSplit(a,""),b)}}},getByID:function(a,b){var c=[];for(var i=0,j=a.length;i<j;i++){var d=document.getElementById(r.trim(a[i]));if(d){c.push(d)}}return c},getByTag:function(a,b){var c=[];for(var i=0,j=a.length;i<j;i++){var d=b.getElementsByTagName(r.trim(a[i]));for(var m=0,n=d.length;m<n;m++){c.push(d[m])}}return c},getByAttr:function(a,b){var c=[];if(a.length==3){var d=a[0].split("|"),_attrNames=a[1].split("|"),_attrValues=a[2]=="*"?"*":a[2].split("|");c=r.getByTag(d,b);for(var i=0,j=c.length;i<j;i++){if(!r.checkAttr(c[i],_attrNames,_attrValues)){c.splice(i,1);i--;j--}}}return c},checkAttr:function(a,b,c){for(var m=0,n=b.length;m<n;m++){if(a[b[m]]){for(var x=0,y=c.length;x<y;x++){if(c=="*"||a[b[m]]==c[x]){return true}}}}return false},getByFormSub:function(a,b){var c=[];if(b&&b.tagName=="FORM"){for(var i=0,j=a.length;i<j;i++){var d=b[r.trim(a[i])];if(d){c.push(d)}}}return c}});var s=navigator.userAgent.toLowerCase();r.extend({browser:{version:(s.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(s),opera:/opera/.test(s),msie:/msie/.test(s)&&!(/opera/.test(s)),mozilla:/mozilla/.test(s)&&!(/(compatible|webkit)/.test(s))},setCookie:function(a,b,c,d){document.cookie=CookieName+"="+typeName+"="+typeValue+"; expires="+new Date().addDay(d).toGMTString()+"; path=/"},root:document.documentElement,UrlRewrite:function(a){window.location=a}});r.extend({DomFuns:[],DomArgs:[],DomRun:function(){if(arguments.callee.done){return}else{arguments.callee.done=true;for(i=0;i<r.DomFuns.length;i++){r.DomFuns[i](r.DomArgs[i])}}},$:function(a,b){this.DomFuns.push(arguments[0]);if(arguments.length>1){this.DomArgs.push(arguments[1])}else{this.DomArgs.push("")}if(document.addEventListener){document.addEventListener("DOMContentLoaded",r.DomRun,null)}if(/KHTML|WebKit/i.test(navigator.userAgent)){var c=setInterval(function(){if(/loaded|complete/.test(document.readyState)){clearInterval(c);delete c;r.DomRun()}},10)}if(this.browser.msie){var d="src='javascript:void(0)'";if(h.protocol=="https:"){d="src=//0"}document.write("<scr"+"ipt id=__ie_onload defer "+d+"><\/scr"+"ipt>");var e=document.getElementById("__ie_onload");e.onreadystatechange=function(){if(this.readyState=="complete"){r.DomRun()}}}window.onload=r.DomRun}});r.extend({$x:function(a,b,c,d,e,f,g){this.url=a;this.req=null;this.method=b;this.onload=c;this.postStr=e;this.onerror=(d)?d:this.defaultError;this.rel=f;this.stateNum=(g)?g:false;this.Init()}});r.$x.prototype={Init:function(){if(window.XMLHttpRequest){this.req=new XMLHttpRequest();if(this.req.overrideMimeType){this.req.overrideMimeType('text/xml')}}else if(window.ActiveXObject){var a=["Msxml3.XMLHTTP","Msxml2.XMLHTTP","Microsoft.XMLHTTP"];for(var i=0,j=a.length;i<j;i++){try{this.req=new ActiveXObject(a[i]);break}catch(e){}}}if(this.req){try{var b=this;this.req.onreadystatechange=function(){b.onReadyState.call(b)};this.req.open(this.method,this.url,true);this.req.setRequestHeader("Content-Type","application/x-www-form-urlencoded");this.req.send(this.postStr)}catch(err){this.onerror.call(this)}}},onReadyState:function(){var a=this.req;var b=a.readyState;if(this.stateNum&&b>=1&&b<=3){this.stateNum[b-1].call(this)}else if(b==4){var c=a.status;if(c==200||c===0){this.onload.call(this)}else{this.onerror.call(this)}}},defaultError:function(){alert("Data connection fail!"+"\n\nreadyState: "+this.req.readyState+"\nstatus: "+this.req.status+"\nheafers: "+this.req.getAllResponseHeaders())}};r.extend({replaceToSplit:function(a,b,c){return a.replace(b||"","").split(c||",")},trim:function(a){return(a||"").replace(/^\s+|\s+$/g,"")},parseXml:function(a,b){var c=new RegExp("<"+b+".*>([\\s\\S]*)<\/"+b+">","ig");text=c.exec(text);var d=[];for(var i=1,j=text.length;i<j;i++){d.push(strObj[i])}return d},parseJson:function(a,b){var c=new RegExp("<"+b+".*>([\\s\\S]*)<\/"+b+">","ig");a=c.exec(a);return a?a[1]:null},json:function(a){return eval("("+this.parseJson(a,"string")+")")},rex:{buttons:/button|submit|reset/ig,inputs:/textarea|text/ig,text:/text/ig,boxies:/checkbox|radio/ig,select:/select/ig}});r.fn.extend({bindEvent:function(a){this.each(function(i){this["Num"]=i;r.bindEvent(this,a)});return this},addEvent:function(a,b){this.each(function(i){r.addEvent(this,a,b)});return this},run:function(a){this.each(function(i){this[a]()});return this},appendChild:function(a){this.each(function(i){r.appendChild(this,a)});return this}});r.extend({bindEvent:function(a,b){for(var i=0,j=b.length;i<j;i++){r.attr(a,b[i][0],b[i][1])}},addEvent:function(a,b,c){if(a.addEventListener){a.addEventListener(b,c,false)}else if(a.attachEvent){a.attachEvent("on"+b,c)}else{a["on"+b]=c}},stopBubble:function(e){if(e&&e.stopPropagation){e.stopPropagation()}else{window.event.cancelBubble=true}},$e:function(e){return e||window.event},$eNode:function(e){e=this.$e(e);return e.target||e.srcElement},$eKey:function(e){e=this.$e(e);return e.keyCode||e.which},$eKeyNumber:function(e){var a=r.$eKey(e);if((a<48||a>57)&&(a<96||a>105)&&a!=8&&a!=9&&a!=46){return false}},setRelate:function(a,b,c,d){if(b.length==c.length){for(var i=0,j=b.length;i<j;i++){b[i].Relate=c[i];c[i].Relate=b[i];b[i].Main=c[i].Main=a;if(d){d(b[i],c[i])}}return true}else{return false}},appendChild:function(a,b){a.appendChild(b)}});r.fn.extend({setAlpha:function(a){this.each(function(i){r.setAlpha(this,a)});return this},css:function(a){var b=r.spliteCSSExp(a);this.each(function(i){r.batchSetCss(this,b)});return this},cssForPairs:function(a){this.each(function(i){r.batchSetCss(this,a)});return this},className:function(a){this.each(function(i){r.attr(this,"className",a)});return this},externalLinks:function(){this.each(function(i){r.externalLinks(this)});return this}});r.extend({attr:function(a,b,c){a[b]=c},isAttr:function(a,b,c){return a[b]&&a[b]==c},attrSet:function(a,b,c){a.setAttribute(b,c)},batchAttrSet:function(a,b){for(var i=0,j=b.length;i<j;i++){r.attrSet(a,b[i][0],b[i][1])}},setAlpha:function(a,b){if(r.browser.msie){r.attr(a.style,"filter","alpha(opacity="+b+")")}else{r.attr(a.style,"opacity",b/100)}},spliteCSSExp:function(a){a=r.styleToScript(a);var b=a.split(";"),ret=[];for(var i=0,j=b.length;i<j;i++){if(b[i]!==""){var c=b[i].split(":");ret.push({name:r.trim(c[0]),value:r.trim(c[1])})}}return ret},batchSetCss:function(a,b){for(var i=0,j=b.length;i<j;i++){r.attr(a.style,b[i].name,b[i].value)}},css:function(a,b){var c=r.spliteCSSExp(b);r.batchSetCss(a,c)},styleToScript:function(b){return b.replace(/-\w/ig,function(a){return a.slice(1).toUpperCase()})},externalLinks:function(a){if(a.getAttribute("href")){switch(a.getAttribute("rel")){case"external":r.batchAttrSet(a,[["className","external"],["target","_blank"]]);break;default:break}}}});r.fn.extend({clearInputValue:function(){this.each(function(i){if(r.rex.inputs.test(this.type||this.tagName)){r.attr(this,"value","")}});return this},setDisabled:function(a){this.each(function(i){r.attr(this,"disabled",a)});return this},disabledAutoComplete:function(){this.each(function(i){r.attrSet(this,"autocomplete","off")});return this},isCheckOn:function(){if(r.isFormSub(this,r.rex.boxies)){return r.isCheckOn(this[0])}},checkCount:function(){if(r.isFormSub(this,r.rex.boxies)){return r.checkCount(this[0])}},selectCount:function(){if(r.isFormSub(this,r.rex.select)){return r.selectCount(this[0])}}});r.extend({isFormSub:function(a,b){return a.length>0&&a[0].form&&(b.test(a[0].type||a[0].tagName))},isCheckOn:function(a){if(typeof(a.length)=="undefined"){return a.checked}else{for(var i=0,j=a.length;i<j;i++){if(a[i].checked){return true}}return false}},checkCount:function(a){var b=0;if(typeof(a.length)!="undefined"){for(var i=0,j=a.length;i<j;i++){if(a[i].checked){b++}}}return b},selectCount:function(a){var b=0;for(var i=0,j=a.options.length;i<j;i++){if(a.options[i].selected){b++}}return b}});r.fn.extend({cleanEmptyNode:function(){this.each(function(i){r.cleanEmptyNode(this)});return this},insertLast:function(a){this.each(function(i){r.insertLast(this,a)});return this},partnerShip:function(a){var b=this;this.each(function(i){r.partnerShip(this,b,a[i])});return this}});r.extend({cleanEmptyNode:function(a){for(var i=0;i<a.childNodes.length;i++){var b=a.childNodes[i];if(b.nodeType==3&&!(/\S/.test(b.nodeValue))){b.parentNode.removeChild(b)}}},$b:function(a){return document.createElement(a)},$text:function(a){return document.createTextNode(a)},insertLast:function(a,b){a.appendChild(b)},partnerShip:function(a,b,c){b[c[0]]=r.find(c[1],a)},includeCss:function(a,b){var c=r.$b("link");r.batchAttrSet(c,[["rel","stylesheet"],["type","text/css"],["href",a]]);r("head").insertLast(c);if(r.browser.msie||r.browser.opera){c.onload=function(){if(b){b()}}}else{if(b){b()}}return c},includeJS:function(a,b){var c=r.$b("script");r.batchAttrSet(c,[["type","text/javascript"],["src",a]]);r("head").insertLast(c);if(r.browser.msie){c.onreadystatechange=function(){if(this.readyState=="loaded"){if(b){b()}}}}else if(r.browser.mozilla){c.onload=function(){if(b){b()}}}else{if(b){b()}}return c}})})();
