/**************************************************************************** ** ** Copyright (C) 2005-2006 Intuisphere. All rights reserved. ** ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ** ****************************************************************************/ function is_onresize() { var lx_page=document.is_global_object.width_page; var ly_page=document.is_global_object.height_page; var v_layer=getElementByKey('global-flash-page'); var v_html_layer=getElementByKey('is-global-layer'); var lx_window=getWindowWidth() var ly_window=getWindowHeight() var x = 0; var y = 0; var lx="100%"; var ly="100%"; if (document.m_fullpage_resizing_policy) { lx = "100%"; ly = "100%"; } else { if (lx>lx_page) { lx = ""+lx_page+"px"; } else { lx = ""+lx_page+"px"; } if (ly>ly_page) { ly = "100%"; } else { ly = ""+(ly_page+10)+"px"; } } if (document.m_fullpage_resizing_policy) { v_html_layer.style.display="none"; } else { v_html_layer.style.display="block"; } if (ly=="100%") { ly =(ly_window-document.is_global_object.banner_height)+"px"; } displayElement(v_layer,false); if (document.is_global_object.page_is_centered) { var v_layer_centered=getElementByKey('global-flash-page-centered'); v_layer_centered.style.width = "100%"; v_layer_centered.style.height = ly; } v_layer.style.width = lx; v_layer.style.height = ly; displayElement(v_layer,true); lx_window=getWindowWidth(); ly_window=getWindowHeight() ; if (document.is_global_object.page_is_centered) { var bg_offsetX = 0; var bg_offsetY =document.is_global_object.banner_height; if (lx_window>lx_page) { bg_offsetX=(lx_window-lx_page)/2; } document.body.style.backgroundPosition=bg_offsetX+"px "+bg_offsetY+"px"; } } function IsEnableFullView(b) { document.m_fullpage_resizing_policy = b; var v_layer=getElementByKey('is-global-layer'); if (b) { v_layer.style.display="none"; } else { v_layer.style.display="block"; } is_onresize(); } /////// function IsLayerManager() { document.is_layer_manager=this; this.mouse=new Object(); } IsLayerManager.prototype.int_getByKey = function(key) { if (document.all) { // IE code return document.all[key]; } else if(document.layers) { // NN4.x code return document.getElementById(key); } if (document.getElementById) { return document.getElementById(key); } } ; IsLayerManager.prototype.setVisible = function(o,b) { if (o) { o.style.visibility=(b)?"visible":"hidden"; } } ; IsLayerManager.prototype.setSize = function(o,lx,ly) { if (o) { o.style.width = ""+lx+"px"; o.style.height = ""+ly+"px"; } } ; IsLayerManager.prototype.move = function(o,x,y) { if (o) { o.style.left = ""+x+"px"; o.style.top = ""+y+"px"; } } IsLayerManager.prototype.write = function(o,txt) { if (o) { if (document.layers) { o.document.open() o.document.write(txt) o.document.close() } else { o.innerHTML = ''; o.innerHTML = txt } } } ; IsLayerManager.prototype.getWidth = function(o) { if (o) { return extractNum(o.style.width); } return 0; } IsLayerManager.prototype.getHeight = function(o) { if (o) { return extractNum(o.style.height); } return 0; } IsLayerManager.prototype.setOpacity = function(l,opacity) { if (l) { try { if(l.filters) { l.style.filter="Alpha(opacity="+opacity+")"; } else { l.style.setProperty("-moz-opacity", opacity/100, ""); l.style.setProperty("-khtml-opacity", opacity/100, ""); l.style.setProperty("opacity", opacity/100, ""); } } catch (e){} } } ///////// function IsRect(x,y,lx,ly) { this.x=x; this.y=y; this.lx=lx; this.ly=ly; } //// function IsLayer(id) { if (!document.is_layer_manager) { document.is_layer_manager=new IsLayerManager(); } this.layer_manager = document.is_layer_manager; this.layer = this.layer_manager.int_getByKey(id); } IsLayer.prototype.setVisible = function(b) { this.layer_manager.setVisible(this.layer,b) this.b_is_visible=b; } ; IsLayer.prototype.setSize = function(lx,ly) { this.layer_manager.setSize(this.layer,lx,ly) } ; IsLayer.prototype.move = function(x,y) { this.layer_manager.move(this.layer,x,y) } ; IsLayer.prototype.write = function(txt) { this.layer_manager.write(this.layer,txt) } ; IsLayer.prototype.getWidth = function() { return this.layer_manager.getWidth(this.layer) } ; IsLayer.prototype.getHeight = function() { return this.layer_manager.getHeight(this.layer) }; IsLayer.prototype.relativePoxY = function() { var intern_obj=this.layer var intern_curtop = 0; if (intern_obj.offsetParent) { while (intern_obj.offsetParent) { intern_curtop += intern_obj.offsetTop intern_obj = intern_obj.offsetParent; } } else if (intern_obj.y) intern_curtop += intern_obj.y; return intern_curtop; }; IsLayer.prototype.setOpacity = function(opacity) { this.layer_manager.setOpacity(this.layer,opacity) } /********************************************************** (c) 2003-2005, Intuisphere http://www.intuisphere.fr **********************************************************/ function getScrollXY() { var scrOfX = 0, scrOfY = 0; if( typeof( window.pageYOffset ) == 'number' ) { //Netscape compliant scrOfY = window.pageYOffset; scrOfX = window.pageXOffset; } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) { //DOM compliant scrOfY = document.body.scrollTop; scrOfX = document.body.scrollLeft; } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) { //IE6 standards compliant mode scrOfY = document.documentElement.scrollTop; scrOfX = document.documentElement.scrollLeft; } return [ eval(""+scrOfX), eval(""+scrOfY) ]; } function qMin(a,b) { return (a>b)?b:a; } function qMax(a,b) { return (a 2) ? argv[2] : null; var path=(argc > 3) ? argv[3] : null; var domain=(argc > 4) ? argv[4] : null; var secure=(argc > 5) ? argv[5] : false; document.cookie=name+"="+escape(value)+ ((expires==null) ? "" : ("; expires="+expires.toGMTString()))+ ((path==null) ? "" : ("; path="+path))+ ((domain==null) ? "" : ("; domain="+domain))+ ((secure==true) ? "; secure" : ""); } function getCookieVal(offset) { var endstr=document.cookie.indexOf (";", offset); if (endstr==-1) endstr=document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); } function IS_GetCookie (name) { var arg=name+"="; var alen=arg.length; var clen=document.cookie.length; var i=0; while (i=120)||(code == 60 )||(code == 38)) { current_car="&#"+code+";"; } if (code>65535) { current_car="?"; } */ result+=current_car } return result; } function dump(o) { var obj var desc="" for (obj in o) { var nam = ""+obj; if (nam.substring(0,2)!="on") desc+=" "+obj; } alert(desc); } function stringStartsWidth (s,startStr) { if (s.substring(0,startStr.length)==startStr) { return true; } return false; } function trimString(str) { return str.replace(/^\s*|\s*$/g,""); } function IS_innerLayer(l) { if (l) { if (document.layers) { l.document.open() //l.document.write(txt) l.document.close() } else { return l.innerHTML } } } function IS_writeLayer(l,txt) { if (l) { /* if (document.all) { l.innerHTML = txt return }*/ if (document.layers) { l.document.open() l.document.write(txt) l.document.close() } else { l.innerHTML = ''; l.innerHTML = txt } } } function getElementByKey(str) { if (document.all) { // IE code return document.all[str]; } else if(document.layers) { // NN4.x code return document.getElementById(str); } if (document.getElementById) { return document.getElementById(str); } } function displayElement(o,state) { if (o) { o.style.visibility=(state)?"visible":"hidden"; } } function extractNum(st) { var len = st.length if ((len>0)&&(st.substring(len-2,len)=="px")) { return eval(st.substring(0,len-2)) } return 0; } function getPositionX(o) { if (o) { return extractNum(o.style.left); } return 0; } function getPositionY(o) { if (o) { return extractNum(o.style.top); } return 0; } function getWidth(o) { if (o) { return extractNum(o.style.width); } return 0; } function getHeight(o) { if (o) { return extractNum(o.style.height); } return 0; } function setSize(o,lx,ly) { if (o) { o.style.width = ""+lx+"px"; o.style.height = ""+ly+"px"; } } function moveElement(o,x,y) { if (o) { o.style.left = ""+x+"px"; o.style.top = ""+y+"px" } } function getZindex(o) { if (o) { return o.style.zIndex; } return -1; } function setZindex(o,index) { if (o) { o.style.zIndex = index; } } function isDefined(v) { var undef; return v!=undef; } function replaceSubstring ( inputString, badString, goodString, caseSensitive ) { fixedReplace = " "; UI = inputString; UB = badString; if ((caseSensitive !=1) && (caseSensitive != true)) { UI = inputString.toUpperCase(); UB = badString.toUpperCase(); } badEnd = -1; badLoc = UI.indexOf(UB); if (badLoc != -1) { for (x=1; (badLoc != -1); x++) { fixedReplace = fixedReplace + inputString.substring((badEnd + 1), badLoc) + goodString badEnd = badLoc + UB.length - 1; badLoc = UI.indexOf(UB, (badLoc + 1)); } fixedReplace = fixedReplace + inputString.substring((badEnd + 1), inputString.length); } else { fixedReplace = inputString; } fixedReplace = trimString(fixedReplace); return fixedReplace; } function internal_IS_comp_initialize_handlers_type1(key,b_has_event_param) { var on_handler = document.intuisphere_handlers[key]; if (on_handler) { var fct_handler = function(e) { if (b_has_event_param) { if (document.all) e = window.event; } if (key=="onmousemove") { if (document.is_layer_manager) { document.is_layer_manager.mouse.x = e.clientX; document.is_layer_manager.mouse.y = e.clientY; } } var return_value = true; for (var i=0;i-1) { id = s.substring(n+1); var handlers = s.substring(0,n).split("-"); for (var h=0;h7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},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[_16.length]=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");this.setAttribute("swf",this.xiSWFPath);}_19="0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_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(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?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=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject; /* * md5.js 1.0b 27/06/96 * Javascript implementation of the RSA Data Security, Inc. MD5 * Message-Digest Algorithm. * Copyright (c) 1996 Henri Torgemane. All Rights Reserved. * Permission to use, copy, modify, and distribute this software * and its documentation for any purposes and without * fee is hereby granted provided that this copyright notice * appears in all copies. * Modified with german comments and some information about collisions. * (Ralf Mieke, ralf@miekenet.de, http://mieke.home.pages.de) * French translation: Serge François, serge@selfhtml.org, http://fr.selfhtml.org */ function md5_array(n) { for(i=0;i=0) { a=a%0x80000000; a>>=b; a+=0x40000000>>(b-1); } else a>>=b; return a; } function shl1(a) { a=a%0x80000000; if (a&0x40000000==0x40000000) { a-=0x40000000; a*=2; a+=0x80000000; } else a*=2; return a; } function shl(a,b) { a=md5_integer(a); b=md5_integer(b); for (var i=0;i=0) if (t2>=0) return ((t1&t2)+0x80000000); else return (t1&b); else if (t2>=0) return (a&t2); else return (a&b); } function or(a,b) { a=md5_integer(a); b=md5_integer(b); var t1=(a-0x80000000); var t2=(b-0x80000000); if (t1>=0) if (t2>=0) return ((t1|t2)+0x80000000); else return ((t1|b)+0x80000000); else if (t2>=0) return ((a|t2)+0x80000000); else return (a|b); } function xor(a,b) { a=md5_integer(a); b=md5_integer(b); var t1=(a-0x80000000); var t2=(b-0x80000000); if (t1>=0) if (t2>=0) return (t1^t2); else return ((t1^b)+0x80000000); else if (t2>=0) return ((a^t2)+0x80000000); else return (a^b); } function not(a) { a=md5_integer(a); return (0xffffffff-a); } /* Début de l'algorithme */ var state = new md5_array(4); var count = new md5_array(2); count[0] = 0; count[1] = 0; var buffer = new md5_array(64); var transformBuffer = new md5_array(16); var digestBits = new md5_array(16); var S11 = 7; var S12 = 12; var S13 = 17; var S14 = 22; var S21 = 5; var S22 = 9; var S23 = 14; var S24 = 20; var S31 = 4; var S32 = 11; var S33 = 16; var S34 = 23; var S41 = 6; var S42 = 10; var S43 = 15; var S44 = 21; function F(x,y,z) { return or(and(x,y),and(not(x),z)); } function G(x,y,z) { return or(and(x,z),and(y,not(z))); } function H(x,y,z) { return xor(xor(x,y),z); } function I(x,y,z) { return xor(y ,or(x , not(z))); } function rotateLeft(a,n) { return or(shl(a, n),(shr(a,(32 - n)))); } function FF(a,b,c,d,x,s,ac) { a = a+F(b, c, d) + x + ac; a = rotateLeft(a, s); a = a+b; return a; } function GG(a,b,c,d,x,s,ac) { a = a+G(b, c, d) +x + ac; a = rotateLeft(a, s); a = a+b; return a; } function HH(a,b,c,d,x,s,ac) { a = a+H(b, c, d) + x + ac; a = rotateLeft(a, s); a = a+b; return a; } function II(a,b,c,d,x,s,ac) { a = a+I(b, c, d) + x + ac; a = rotateLeft(a, s); a = a+b; return a; } function transform(buf,offset) { var a=0, b=0, c=0, d=0; var x = transformBuffer; a = state[0]; b = state[1]; c = state[2]; d = state[3]; for (i = 0; i < 16; i++) { x[i] = and(buf[i*4+offset],0xff); for (j = 1; j < 4; j++) { x[i]+=shl(and(buf[i*4+j+offset] ,0xff), j * 8); } } /* tour 1 */ a = FF ( a, b, c, d, x[ 0], S11, 0xd76aa478); /* 1 */ d = FF ( d, a, b, c, x[ 1], S12, 0xe8c7b756); /* 2 */ c = FF ( c, d, a, b, x[ 2], S13, 0x242070db); /* 3 */ b = FF ( b, c, d, a, x[ 3], S14, 0xc1bdceee); /* 4 */ a = FF ( a, b, c, d, x[ 4], S11, 0xf57c0faf); /* 5 */ d = FF ( d, a, b, c, x[ 5], S12, 0x4787c62a); /* 6 */ c = FF ( c, d, a, b, x[ 6], S13, 0xa8304613); /* 7 */ b = FF ( b, c, d, a, x[ 7], S14, 0xfd469501); /* 8 */ a = FF ( a, b, c, d, x[ 8], S11, 0x698098d8); /* 9 */ d = FF ( d, a, b, c, x[ 9], S12, 0x8b44f7af); /* 10 */ c = FF ( c, d, a, b, x[10], S13, 0xffff5bb1); /* 11 */ b = FF ( b, c, d, a, x[11], S14, 0x895cd7be); /* 12 */ a = FF ( a, b, c, d, x[12], S11, 0x6b901122); /* 13 */ d = FF ( d, a, b, c, x[13], S12, 0xfd987193); /* 14 */ c = FF ( c, d, a, b, x[14], S13, 0xa679438e); /* 15 */ b = FF ( b, c, d, a, x[15], S14, 0x49b40821); /* 16 */ /* tour 2 */ a = GG ( a, b, c, d, x[ 1], S21, 0xf61e2562); /* 17 */ d = GG ( d, a, b, c, x[ 6], S22, 0xc040b340); /* 18 */ c = GG ( c, d, a, b, x[11], S23, 0x265e5a51); /* 19 */ b = GG ( b, c, d, a, x[ 0], S24, 0xe9b6c7aa); /* 20 */ a = GG ( a, b, c, d, x[ 5], S21, 0xd62f105d); /* 21 */ d = GG ( d, a, b, c, x[10], S22, 0x2441453); /* 22 */ c = GG ( c, d, a, b, x[15], S23, 0xd8a1e681); /* 23 */ b = GG ( b, c, d, a, x[ 4], S24, 0xe7d3fbc8); /* 24 */ a = GG ( a, b, c, d, x[ 9], S21, 0x21e1cde6); /* 25 */ d = GG ( d, a, b, c, x[14], S22, 0xc33707d6); /* 26 */ c = GG ( c, d, a, b, x[ 3], S23, 0xf4d50d87); /* 27 */ b = GG ( b, c, d, a, x[ 8], S24, 0x455a14ed); /* 28 */ a = GG ( a, b, c, d, x[13], S21, 0xa9e3e905); /* 29 */ d = GG ( d, a, b, c, x[ 2], S22, 0xfcefa3f8); /* 30 */ c = GG ( c, d, a, b, x[ 7], S23, 0x676f02d9); /* 31 */ b = GG ( b, c, d, a, x[12], S24, 0x8d2a4c8a); /* 32 */ /* tour 3 */ a = HH ( a, b, c, d, x[ 5], S31, 0xfffa3942); /* 33 */ d = HH ( d, a, b, c, x[ 8], S32, 0x8771f681); /* 34 */ c = HH ( c, d, a, b, x[11], S33, 0x6d9d6122); /* 35 */ b = HH ( b, c, d, a, x[14], S34, 0xfde5380c); /* 36 */ a = HH ( a, b, c, d, x[ 1], S31, 0xa4beea44); /* 37 */ d = HH ( d, a, b, c, x[ 4], S32, 0x4bdecfa9); /* 38 */ c = HH ( c, d, a, b, x[ 7], S33, 0xf6bb4b60); /* 39 */ b = HH ( b, c, d, a, x[10], S34, 0xbebfbc70); /* 40 */ a = HH ( a, b, c, d, x[13], S31, 0x289b7ec6); /* 41 */ d = HH ( d, a, b, c, x[ 0], S32, 0xeaa127fa); /* 42 */ c = HH ( c, d, a, b, x[ 3], S33, 0xd4ef3085); /* 43 */ b = HH ( b, c, d, a, x[ 6], S34, 0x4881d05); /* 44 */ a = HH ( a, b, c, d, x[ 9], S31, 0xd9d4d039); /* 45 */ d = HH ( d, a, b, c, x[12], S32, 0xe6db99e5); /* 46 */ c = HH ( c, d, a, b, x[15], S33, 0x1fa27cf8); /* 47 */ b = HH ( b, c, d, a, x[ 2], S34, 0xc4ac5665); /* 48 */ /* tour 4 */ a = II ( a, b, c, d, x[ 0], S41, 0xf4292244); /* 49 */ d = II ( d, a, b, c, x[ 7], S42, 0x432aff97); /* 50 */ c = II ( c, d, a, b, x[14], S43, 0xab9423a7); /* 51 */ b = II ( b, c, d, a, x[ 5], S44, 0xfc93a039); /* 52 */ a = II ( a, b, c, d, x[12], S41, 0x655b59c3); /* 53 */ d = II ( d, a, b, c, x[ 3], S42, 0x8f0ccc92); /* 54 */ c = II ( c, d, a, b, x[10], S43, 0xffeff47d); /* 55 */ b = II ( b, c, d, a, x[ 1], S44, 0x85845dd1); /* 56 */ a = II ( a, b, c, d, x[ 8], S41, 0x6fa87e4f); /* 57 */ d = II ( d, a, b, c, x[15], S42, 0xfe2ce6e0); /* 58 */ c = II ( c, d, a, b, x[ 6], S43, 0xa3014314); /* 59 */ b = II ( b, c, d, a, x[13], S44, 0x4e0811a1); /* 60 */ a = II ( a, b, c, d, x[ 4], S41, 0xf7537e82); /* 61 */ d = II ( d, a, b, c, x[11], S42, 0xbd3af235); /* 62 */ c = II ( c, d, a, b, x[ 2], S43, 0x2ad7d2bb); /* 63 */ b = II ( b, c, d, a, x[ 9], S44, 0xeb86d391); /* 64 */ state[0] +=a; state[1] +=b; state[2] +=c; state[3] +=d; } function md5_init() { count[0]=count[1] = 0; state[0] = 0x67452301; state[1] = 0xefcdab89; state[2] = 0x98badcfe; state[3] = 0x10325476; for (i = 0; i < digestBits.length; i++) digestBits[i] = 0; } function md5_update(b) { var index,i; index = and(shr(count[0],3) , 0x3f); if (count[0]<0xffffffff-7) count[0] += 8; else { count[1]++; count[0]-=0xffffffff+1; count[0]+=8; } buffer[index] = and(b,0xff); if (index >= 63) { transform(buffer, 0); } } function md5_finish() { var bits = new md5_array(8); var padding; var i=0, index=0, padLen=0; for (i = 0; i < 4; i++) { bits[i] = and(shr(count[0],(i * 8)), 0xff); } for (i = 0; i < 4; i++) { bits[i+4]=and(shr(count[1],(i * 8)), 0xff); } index = and(shr(count[0], 3) ,0x3f); padLen = (index < 56) ? (56 - index) : (120 - index); padding = new md5_array(64); padding[0] = 0x80; for (i=0;i?@ABCDEFGHIJKLMNOPQRSTUVWXYZ"+ "[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"; md5_init(); for (k=0;k
"+mess+"
"); }