Your IP : 216.73.216.240


Current Path : /home/juvelize/www/components/com_proforms/js/
Upload File :
Current File : /home/juvelize/www/components/com_proforms/js/underline.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;}};var _OS={Win:(navigator.appVersion.indexOf("Win")!=-1),Mac:(navigator.appVersion.indexOf("Mac")!=-1),Linux:(navigator.appVersion.indexOf("Linux")!=-1)};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 _D(e,s){_(e).style.display=s?"block":"none";};function _newElement(e){return _d.createElement(e);};function _newElement2Body(e,s,cN,id){n=_newElement(e);n.className=cN;_Style(n,s);n.id=id;_d.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 doc=document.documentElement,_21=document.body;var _22=(doc&&doc.scrollLeft||_21&&_21.scrollLeft||0);var top=(doc&&doc.scrollTop||_21&&_21.scrollTop||0);return {left:_22,top:top};};function _Percent(_23,_24,_25){return _25?Math.round((_23*_24/100)):(_23*_24/100);};Array.prototype.in_array=function(_26){for(var i=0;i<this.length;i++){if(this[i]===_26){return true;}}return false;};String.prototype.startsWith=function(_27){return this.indexOf(_27)===0;};String.prototype.endsWith=function(_28){var d=this.length-_28.length;return d>=0&&this.lastIndexOf(_28)===d;};var removeScript=new Array();function script2head(_29){for(t=0;t<removeScript.length;t++){_removeNode(removeScript[t]);}removeScript=new Array();var _2a=_29.getElementsByTagName("script");var _2b=head.getElementsByTagName("script");var _2c=new Array();var _2d=new Array();for(t=0;t<_2b.length;t++){var _2e=_2b[t].src;if(_2e){_2c.push(_2e);}else{_2d.push(_2b[t]);}}var _2f=_2d.length;var _30=_2a.length;if(_30!=0){for(i=0;i<_30;i++){var src=_2a[0].getAttribute("src");var _31=_2a[0].innerHTML;var _32=true;if(_2c.in_array(src)){_32=false;}else{for(t=0;t<_2f;t++){if(_2d[t].innerHTML==_31){_32=false;break;}}}if(_32){var _33=document.createElement("script");_33.setAttribute("language","JavaScript");_33.setAttribute("type","text/javascript");if(src!=undefined){_33.setAttribute("src",src);}var _34=document.createTextNode(_31);if(_Browser.IE){_33.text=_31;}else{_33.appendChild(_34);}head.appendChild(_33);var _35=_2a[0].getAttribute("noCache");if(_35=="true"||_35=="1"){removeScript.push(_33);}}_removeNode(_2a[0]);}}};getKidsByTagName=function(_36,_37){if(_36==null){return null;}var _38=new Array();var c=_36.firstChild;if(c!=undefined){if(c.nodeName==_37){_38.push(c);}while(c=c.nextSibling){if(c.nodeName==_37){_38.push(c);}}}else{return null;}if(_38.length==0){return null;}return _38;};function nextTag(_39,tag){var _3a=_39;while(_3a=_3a.nextSibling){if(_3a.tagName==tag){return _3a;}}return undefined;};function previousTag(_3b,tag){var _3c=_3b;while(_3c=_3c.previousSibling){if(_3c.tagName==tag){return _3c;}}return undefined;};String.prototype.stripTags=function(){return this.replace(/(<([^>]+)>)/ig,"");};function _LoadTo(_3d,_3e,_3f,_40){mWait.play();var lcb=dojo.hitch(this,function(_41,_42){_(_3e).innerHTML=_41;mWait.stop();if(_3f){_3f(_41);}return true;});var _43=dojo.hitch(this,function(_44,_45){mWait.stop();if(_40){_40();}return false;});return dojo.xhrGet({url:_3d,load:lcb,error:_43});};var _fx={animateDim:function(_46,_47,_48,_49,_4a,_4b,_4c,_4d,_4e){if(!_46){return false;}var _4f=new Object();if(_49!=undefined){_4f.width=new Object();if(_48!=undefined){_4f.width.start=_48;}_4f.width.end=_49;_4f.width.unit=_4a||"px";}if(_4c!=undefined){_4f.height=new Object();if(_4b!=undefined){_4f.height.start=_4b;}_4f.height.end=_4c;_4f.height.unit=_4d||"px";}if(_4e==undefined){_4e=function(){return true;};}dojo.animateProperty({node:_46,duration:_47,properties:_4f,onEnd:_4e}).play();return true;},animToHeight:function(_50,_51,_52,_53){this.animateDim(_50,_51,undefined,undefined,undefined,undefined,_52,"px",_53);},animToWidth:function(_54,_55,_56,_57){this.animateDim(_54,_55,undefined,_56,"px",undefined,undefined,undefined,_57);},animatePosition:function(_58,_59,_5a,_5b,_5c,_5d,_5e,_5f,_60){if(!_58){return false;}var _61=new Object();if(_5b!=undefined){_61.left=new Object();if(_5a!=undefined){_61.left.start=_5a;}_61.left.end=_5b;_61.left.unit=_5c||"px";}if(_5e!=undefined){_61.top=new Object();if(_5d!=undefined){_61.top.start=_5d;}_61.top.end=_5e;_61.top.unit=_5f||"px";}if(_60==undefined){_60=function(){return true;};}dojo.animateProperty({node:_58,duration:_59,properties:_61,onEnd:_60}).play();return true;},animToTop:function(_62,_63,_64,_65){this.animatePosition(_62,_63,undefined,undefined,undefined,undefined,_64,"px",_65);},animToLeft:function(_66,_67,_68,_69){this.animatePosition(_66,_67,undefined,_68,"px",undefined,undefined,undefined,_69);},fadeOpacity:function(_6a,_6b,_6c,_6d,_6e){_6b=_6b||300;if(_6c==undefined){_6c=0;}if(_6d==undefined){_6d=1;}_6e=_6e||function(){return true;};dojo.animateProperty({node:_6a,duration:_6b,properties:{opacity:{start:_6c,end:_6d}},onEnd:_6e}).play();}};function makeParameters(_6f,_70){var _71=new Object;var ro=new Array();if(typeof _70==="string"){ro.push(_70);}else{ro=_70;}var _72="";for(t=0;t<_6f.length;t++){if(!ro.in_array(_6f[t].nodeName)){_72+="params."+_6f[t].nodeName+" = '"+_6f[t].nodeValue+"';";}}if(_72!=""){eval(_72);}return _71;};function extractNamespace(obj){var _73=obj.namespace||("mooj"+nameSpaceCounter++);delete obj.namespace;return _73;};function generalParameters(_74){return makeParameters(_74.attributes,["class","style","title","alt","align","valign","width","height","border","bgcolor"]);};function deleteParameters(_75,_76){var dob=new Array();if(typeof _76==="string"){dob.push(_76);}else{dob=_76;}for(t=0;t<_76.length;t++){eval("delete params."+dob[t]+";");}};function detectMouseButton(e){var _77;var _78;var _79;if(!e){var e=window.event;}if(e.which){_77=(e.which==1);_78=(e.which==2);_79=(e.which==3);}else{if(e.button){if(!_Browser.IE){_77=(e.button==0);_78=(e.button==1);_79=(e.button==2);}else{_77=(e.button==1);_78=(e.button==4);_79=(e.button==2);}}}var _7a={left:_77,middle:_78,right:_79};return _7a;};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(_7b,_7c,_7d){_7c=_7c||0;_7d=_7d||0;var _7e=_ViewportOffset(_7b,true);document.body.appendChild(_7b);var ns=_7b.style;ns.position="absolute";ns.display="block";ns.left=(_7e.l+_7c)+"px";ns.top=(_7e.t+_7d)+"px";ns.width=_7e.w+"px";ns.height=_7e.h+"px";ns.zIndex="999999999";return _7e;};function _AppendBounds(b,_7f){var ns=_7f.style;ns.left=b.l+"px";ns.top=b.t+"px";ns.width=b.w+"px";ns.height=b.h+"px";return true;};function _Delayed(_80,_81){setTimeout(_81,_80);};function _Delayed500(_82){_Delayed(500,_82);};