Your IP : 216.73.216.240


Current Path : /home/juvelize/www/administrator/components/com_proforms/js/
Upload File :
Current File : /home/juvelize/www/administrator/components/com_proforms/js/proforms-footer.js

// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// @license: Mad4Media Javascipt License - copyright Mad4Media - Fahrettin Kutyol - All rights reserved    ++
// (re-) publishing or forking for any purpose of commercial or non-commercial use is not allowed.		   ++
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
var _d=document;var _db;dojo.addOnLoad(function(){_db=_d.body;});var head=document.getElementsByTagName("head")[0];var _Browser={IE:!!(window.attachEvent&&navigator.userAgent.indexOf("Opera")===-1),Opera:navigator.userAgent.indexOf("Opera")>-1,WebKit:navigator.userAgent.indexOf("AppleWebKit/")>-1,Gecko:navigator.userAgent.indexOf("Gecko")>-1&&navigator.userAgent.indexOf("KHTML")===-1,MobileSafari:!!navigator.userAgent.match(/Apple.*Mobile.*Safari/),IEVersion:function getInternetExplorerVersion(){var rv=-1;if(navigator.appName=="Microsoft Internet Explorer"){var ua=navigator.userAgent;var re=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})");if(re.exec(ua)!=null){rv=parseFloat(RegExp.$1);}}return rv;}};function _(e){return dojo.byId(e);};function _S(e){return _(e).style;};function _Style(n,s,v){return (v)?dojo.style(n,s,v):dojo.style(n,s);};function _newElement(e){return _d.createElement(e);};function _newElement2Body(e,s,cN,id){var n=_newElement(e);n.className=cN;_Style(n,s);n.id=id;document.body.appendChild(n);return n;};function _removeNode(_1){_1.parentNode.removeChild(_1);};function _ToggleDisplay(e,hi){hi=(hi)?hi:"block";_S(e).display=(_S(e).display=="none")?hi:"none";};function _ToggleVisibility(e){hi=_S(e).visibility=(_S(e).visibility=="hidden")?"visible":"hidden";};function _ToggleFade(e){if(_S(e).opacity==0){dojo.fadeIn({node:_(e)}).play();}else{dojo.fadeOut({node:_(e)}).play();}};function funcExists(_2){var _3;try{eval("isset=typeof "+_2+" == 'function';");}catch(e){_3=false;}return _3;};function _WindowSize(){var w=0;var h=0;if(!window.innerWidth){if(!(document.documentElement.clientWidth==0)){w=document.documentElement.clientWidth;h=document.documentElement.clientHeight;}else{w=document.body.clientWidth;h=document.body.clientHeight;}}else{w=window.innerWidth;h=window.innerHeight;}return {width:w,height:h};};function _WindowCenter(){var _4=(arguments[0]!=null)?arguments[0]:{width:0,height:0};var _5=0;var _6=0;var _7=0;var _8=0;if(!window.pageYOffset){if(!(document.documentElement.scrollTop==0)){_8=document.documentElement.scrollTop;_7=document.documentElement.scrollLeft;}else{_8=document.body.scrollTop;_7=document.body.scrollLeft;}}else{_7=window.pageXOffset;_8=window.pageYOffset;}_5=((_WindowSize().width-_4.width)/2)+_7;_6=((_WindowSize().height-_4.height)/2)+_8;return {x:_5,y:_6};};var _AbsoluteBounds=function(_9){var _a=0,_b=0;do{_a+=_9.offsetTop||0;_b+=_9.offsetLeft||0;_9=_9.offsetParent;if(_9){if(_9.tagName.toUpperCase()=="BODY"){break;}var p=_9.style.position;if(p!=="static"){break;}}}while(_9);var _c=_Dimensions(_9);var _d=new Object();_d.l=_b;_d.t=_a;_d.w=_c.width;_d.h=_c.height;return _d;};function _Dimensions(_e){var _f=dojo.getComputedStyle(dojo.byId(_e));var _10=_f.display;_e=_(_e);if(_10!="none"&&_10!=null){return {width:_e.offsetWidth,height:_e.offsetHeight};}var stl=_S(_e);var _11=_f.visibility;var _12=_f.position;var _13=_f.display;_f.visibility="hidden";_f.position="absolute";_f.display="block";var _14=_e.clientWidth;var _15=_e.clientHeight;_f.display=_13;_f.position=_12;_f.visibility=_11;return {width:_14,height:_15};};function _ViewportOffset(_16,_17){var _18=_17?false:true;var _19=0,_1a=0;var _1b=_16;do{_19+=_1b.offsetTop||0;_1a+=_1b.offsetLeft||0;if(_1b.offsetParent==document.body&&_1b.style.position=="absolute"){break;}}while(_1b=_1b.offsetParent);_1b=_16;do{if(!_Browser.Opera||(_1b.tagName&&(_1b.tagName.toUpperCase()=="BODY"))){_19-=_1b.scrollTop||0;_1a-=_1b.scrollLeft||0;}}while(_1b=_1b.parentNode);var _1c=_cumulativeScrollOffset(_16);var dim=dojo.coords(_16);var _1d=new Object();_1d.l=_1a+(_18?_1c.left:0);_1d.t=_19+(_18?_1c.top:0);_1d.w=dim.w;_1d.h=dim.h;return _1d;};function _cumulativeScrollOffset(_1e){_1e=_(_1e);var _1f=0,_20=0;do{_1f+=_1e.scrollTop||0;_20+=_1e.scrollLeft||0;_1e=_1e.parentNode;}while(_1e);return {left:_20,top:_1f};};function _docScroll(){var t=0;var l=0;if(_Browser.IE){l=document.documentElement.scrollLeft;t=document.documentElement.scrollTop;}else{if(_Browser.Opera){l=document.body.scrollLeft;t=document.body.scrollTop;}else{l=window.pageXOffset;t=window.pageYOffset;}}return {left:l,top:t};};function _Percent(_21,_22,_23){return _23?Math.round((_21*_22/100)):(_21*_22/100);};Array.prototype.in_array=function(_24){for(var i=0;i<this.length;i++){if(this[i]===_24){return true;}}return false;};String.prototype.startsWith=function(_25){return this.indexOf(_25)===0;};String.prototype.endsWith=function(_26){var d=this.length-_26.length;return d>=0&&this.lastIndexOf(_26)===d;};var removeScript=new Array();function script2head(_27){for(t=0;t<removeScript.length;t++){_removeNode(removeScript[t]);}removeScript=new Array();var _28=_27.getElementsByTagName("script");var _29=head.getElementsByTagName("script");var _2a=new Array();var _2b=new Array();for(t=0;t<_29.length;t++){var _2c=_29[t].src;if(_2c){_2a.push(_2c);}else{_2b.push(_29[t]);}}var _2d=_2b.length;var _2e=_28.length;if(_2e!=0){dojo.forEach(_28,dojo.hitch(this,function(_2f){var src=_2f.getAttribute("src");var _30=_2f.innerHTML;var _31=true;if(_2a.in_array(src)){_31=false;}else{for(t=0;t<_2d;t++){if(_2b[t].innerHTML==_30){_31=false;break;}}}if(_31){var _32=document.createElement("script");_32.setAttribute("language","JavaScript");_32.setAttribute("type","text/javascript");if(src!=undefined){_32.setAttribute("src",src);}var _33=document.createTextNode(_30);if(_Browser.IE){_32.text=_30;}else{_32.appendChild(_33);}head.appendChild(_32);var _34=_2f.getAttribute("noCache");if(_34=="true"||_34=="1"){removeScript.push(_32);}}_removeNode(_2f);}));}};getKidsByTagName=function(_35,_36){if(_35==null){return null;}var _37=new Array();var c=_35.firstChild;if(c!=undefined){if(c.nodeName==_36){_37.push(c);}while(c=c.nextSibling){if(c.nodeName==_36){_37.push(c);}}}else{return null;}if(_37.length==0){return null;}return _37;};String.prototype.stripTags=function(){return this.replace(/(<([^>]+)>)/ig,"");};function _LoadTo(_38,_39,_3a,_3b){var lcb=dojo.hitch(this,function(_3c,_3d){_(_39).innerHTML=_3c;if(_3a){_3a(_3c);}return true;});var _3e=dojo.hitch(this,function(_3f,_40){if(_3b){_3b();}return false;});return dojo.xhrGet({url:_38,load:lcb,error:_3e});};var _fx={animateDim:function(_41,_42,_43,_44,_45,_46,_47,_48,_49){if(!_41){return false;}var _4a=new Object();if(_44!=undefined){_4a.width=new Object();if(_43!=undefined){_4a.width.start=_43;}_4a.width.end=_44;_4a.width.unit=_45||"px";}if(_47!=undefined){_4a.height=new Object();if(_46!=undefined){_4a.height.start=_46;}_4a.height.end=_47;_4a.height.unit=_48||"px";}if(_49==undefined){_49=function(){return true;};}dojo.animateProperty({node:_41,duration:_42,properties:_4a,onEnd:_49}).play();return true;},animToHeight:function(_4b,_4c,_4d,_4e){this.animateDim(_4b,_4c,undefined,undefined,undefined,undefined,_4d,"px",_4e);},animToWidth:function(_4f,_50,_51,_52){this.animateDim(_4f,_50,undefined,_51,"px",undefined,undefined,undefined,_52);},animatePosition:function(_53,_54,_55,_56,_57,_58,_59,_5a,_5b){if(!_53){return false;}var _5c=new Object();if(_56!=undefined){_5c.left=new Object();if(_55!=undefined){_5c.left.start=_55;}_5c.left.end=_56;_5c.left.unit=_57||"px";}if(_59!=undefined){_5c.top=new Object();if(_58!=undefined){_5c.top.start=_58;}_5c.top.end=_59;_5c.top.unit=_5a||"px";}if(_5b==undefined){_5b=function(){return true;};}dojo.animateProperty({node:_53,duration:_54,properties:_5c,onEnd:_5b}).play();return true;},animToTop:function(_5d,_5e,_5f,_60){this.animatePosition(_5d,_5e,undefined,undefined,undefined,undefined,_5f,"px",_60);},animToLeft:function(_61,_62,_63,_64){this.animatePosition(_61,_62,undefined,_63,"px",undefined,undefined,undefined,_64);},fadeOpacity:function(_65,_66,_67,_68,_69){_66=_66||300;if(_67==undefined){_67=0;}if(_68==undefined){_68=1;}_69=_69||function(){return true;};dojo.animateProperty({node:_65,duration:_66,properties:{opacity:{start:_67,end:_68}},onEnd:_69}).play();}};function makeParameters(_6a,_6b){var _6c=new Object;var ro=new Array();if(typeof _6b==="string"){ro.push(_6b);}else{ro=_6b;}var _6d="";for(t=0;t<_6a.length;t++){if(!ro.in_array(_6a[t].nodeName)){_6d+="params."+_6a[t].nodeName+" = '"+_6a[t].nodeValue+"';";}}if(_6d!=""){eval(_6d);}return _6c;};function extractNamespace(obj){var _6e=obj.namespace||("mooj"+nameSpaceCounter++);delete obj.namespace;return _6e;};function generalParameters(_6f){return makeParameters(_6f.attributes,["class","style","title","alt","align","valign","width","height","border","bgcolor"]);};function deleteParameters(_70,_71){var dob=new Array();if(typeof _71==="string"){dob.push(_71);}else{dob=_71;}for(t=0;t<_71.length;t++){eval("delete params."+dob[t]+";");}};function detectMouseButton(e){var _72;var _73;var _74;if(!e){var e=window.event;}if(e.which){_72=(e.which==1);_73=(e.which==2);_74=(e.which==3);}else{if(e.button){if(!_Browser.IE){_72=(e.button==0);_73=(e.button==1);_74=(e.button==2);}else{_72=(e.button==1);_73=(e.button==4);_74=(e.button==2);}}}var _75={left:_72,middle:_73,right:_74};return _75;};function detectMousePosition(e){if(!e){var e=window.event;}if(e.pageX||e.pageY){x=e.pageX;y=e.pageY;}else{if(e.clientX||e.clientY){x=e.clientX;y=e.clientY;}}return {x:x,y:y};};function _Absoulutize(_76,_77,_78){_77=_77||0;_78=_78||0;var _79=_ViewportOffset(_76,true);document.body.appendChild(_76);var ns=_76.style;ns.position="absolute";ns.display="block";ns.left=(_79.l+_77)+"px";ns.top=(_79.t+_78)+"px";ns.width=_79.w+"px";ns.height=_79.h+"px";ns.zIndex="999999999";return _79;};function _AppendBounds(b,_7a){var ns=_7a.style;ns.left=b.l+"px";ns.top=b.t+"px";ns.width=b.w+"px";ns.height=b.h+"px";return true;};function _toggleSpecialCheckbox(box,_7b,_7c){var _7d=_(_7b);if(_7d.value==="0"){box.id=(!_7c)?"":"right";_7d.value="1";}else{box.id=(!_7c)?"right":"";_7d.value="0";}};function _setSpecialCheckBox(box,_7e,_7f){var _80=_(box.getAttribute("lang"));if(_7e===1){box.id=(!_7f)?"":"right";_80.value="1";}else{box.id=(!_7f)?"right":"";_80.value="0";}};function _getSpecialCheckBox(box){var _81=_(box.getAttribute("lang"));return parseInt(_81.value);};function setCookie(_82,_83,_84){if(_84){var _85=new Date();_85.setTime(_85.getTime()+(_84*24*60*60*1000));var _86="; expires="+_85.toGMTString();}else{var _86="";}document.cookie=_82+"="+_83+_86+"; path=/";};function getCookie(_87){var _88=_87+"=";var ca=document.cookie.split(";");for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==" "){c=c.substring(1,c.length);}if(c.indexOf(_88)==0){return c.substring(_88.length,c.length);}}return null;};function _trim(str){var _89=" \n\r\t\f\v????????????????";for(var i=0;i<str.length;i++){if(_89.indexOf(str.charAt(i))===-1){str=str.substring(i);break;}}for(i=str.length-1;i>=0;i--){if(_89.indexOf(str.charAt(i))===-1){str=str.substring(0,i+1);break;}}return _89.indexOf(str.charAt(0))===-1?str:"";};var MultiSwitch={elements:[],parse:function(_8a){_8a=_8a||document.body;console.log("Multi Switch Parsing");dojo.query("DIV.multiSwitch",_8a).forEach(dojo.hitch(this,function(_8b){var _8c=_8b.getAttribute("data-name");var _8d=_8b.getAttribute("data-callback");var _8e=document.createElement("INPUT");_8e.setAttribute("type","hidden");_8e.setAttribute("name",_8c);_8b.appendChild(_8e);_8b.input=_8e;_8b.value=null;_8b.callback=function(){if(_8d){eval(_8d);}};_8b.options=dojo.query("DIV.option",_8b);dojo.forEach(_8b.options,dojo.hitch(this,function(opt){opt.parent=_8b;opt.onclick=function(evt){this.parent.setValue(this.getAttribute("data-value"));this.parent.callback();};}));_8b.setValue=function(_8f){this.value=_8f;this.input.value=_8f;dojo.forEach(_8b.options,dojo.hitch(this,function(_90){var _91=_90.getAttribute("data-value");if(_91==_8f){_90.className="option checked";}else{_90.className="option";}}));};console.log(_8b.options);_8b.setValue(_8b.getAttribute("data-value"));this.elements[_8c]=_8b;}));}};dojo.addOnLoad(function(){MultiSwitch.parse();});dojo.addOnLoad(function(){var _92=parseInt(getCookie("workarea"));if(_92){var _93=dojo.byId("m4jPanelExpand");dojo.addClass(_93,"shrink");_93.setAttribute("state","1");var _94=dojo.byId("m4jMain").parentNode.parentNode;var b=dojo.coords(_94);var w=b.w-20;dojo.style("m4jMain",{width:w+"px"});}});