sCookievar = 'spirituser'; sDivid = 'spiritDiv2'; sFrameid = 'spiritFrame2'; sUrlbase = 'http://www.playspirit.net/ramses/webclient/'; sTextbase = 'null'; sEventover = function() { return false; }; sEventout = function() { return false; }; sEventclick = function() { sOpen2() }; sCss = '#spiritDiv2 { background-color: transparent; padding: 2px; text-align: center; width: 200px; } #spiritDiv2 a { border: none; text-decoration: none; } #spiritDiv2 img { border: none; cursor: pointer; margin-top: 10px; } #spiritDiv2 iframe { display: none; }'; sCid2 = '2a0e333108b765bf95a3a8db88c2buta'; sImgreagir = 'null'; sAddScript( sUrlbase + 'lib/overlib.js' ); sAddCss( sCss ); document.write('
' ); document.getElementById( sDivid ).appendChild( sAddVisualElements( sFrameid, sEventover, sEventout, sEventclick, '', '', '', sTextbase ) ); /******************************************************************************/ function sRequete2() { return sUrlbase + 'interface/index.php?cid=' + sCid2 + '&src=' + location.href; } function sOpen2() { var link = sRequete2(); var x = screen.width - Math.round((screen.width * 300) / 800); var y = screen.height - Math.round((screen.height * 600) / 640); sp = window.open( link, 'PlaySpirit', 'directories=no,menubar=no,status=no,location=no,scrollbars=no,resizable=no,width=300,height=340,top=' + y + ',left=' + x); //sp = window.open( link, 'PlaySpirit'); sp.focus(); } function sAddScript( source ) { var s = document.createElement('script'); s.type = 'text/javascript'; s.src = source; document.getElementsByTagName('head')[0].appendChild( s ); } function sAddCss( source ){ if(document.createStyleSheet) { // for IE var cs= document.createStyleSheet(); var c = cs.owningElement || cs.ownerNode; c.setAttribute("type", 'text/css'); var rs = source.split("}"); for (var i=0; i < rs.length - 1; i++) { var r = trim(rs[i]); var el = r.split("{"); var name = trim(el[0]); var value = trim(el[1]); cs.addRule(name, value, i); } } else { // for Others var c=document.createElement("style"); c.setAttribute("type", 'text/css'); c.appendChild(document.createTextNode(source + "\n")); document.getElementsByTagName("head")[0].appendChild(c); } } function sAddEvent ( o, t, f ) { var to=''; t = t.toLowerCase(); if(t.indexOf("on") == 0) { to = t; t = t.substring(2, t.length); } else { to = "on" + t; } if( typeof o.attachEvent == 'object' ) o.attachEvent( to, f ); else if( typeof o.addEventListener == 'function' ) o.addEventListener( t, f, false ); else sAddAttribute( o, to, f ); } function sAddAttribute( o, p, q ) { if( typeof o.setAttribute == 'function' ) { o.setAttribute( p, q ); } else if ( typeof o.setAttribute == 'object' ) { o.setAttribute( p, q, false ); } } function sIsw() { var o = document.getElementById( 'spirit2' ); if(o.src == 'http://www.playspirit.net/ramses/webclient/images/buta2.gif') o.src= 'http://www.playspirit.net/ramses/webclient/images/buta.gif'; else o.src= 'http://www.playspirit.net/ramses/webclient/images/buta2.gif'; } function sAddVisualElements( f, g, h, i, o, p, r, t ) { var ln2 = document.createElement('a'); ln2.href='#'; if( t == 'null' ) { } else { ln2.innerHTML = sTextbase; } sAddEvent( ln2, 'click', i ); if( t == 'null' ) { var iL2 = document.createElement('img'); sAddAttribute( iL2, 'id', 'spirit2' ); sAddAttribute( iL2, 'alt', '' ); sAddAttribute( iL2, 'src', 'http://www.playspirit.net/ramses/webclient/images/buta.gif' ); sAddEvent( iL2, 'mouseover', sIsw ); sAddEvent( iL2, 'mouseout', sIsw ); } var fm2 = document.createElement('iframe'); fm2.id=f; sAddAttribute( fm2, 'id', f ); fm2.style.display = 'none'; if( t == 'null' ) { ln2.appendChild(iL2); } ln2.appendChild(fm2); return ln2; } /*** joomla 1.5 code under GNU/GPL License ************************************/ // LTrim(string) : Returns a copy of a string without leading spaces. function ltrim(str) { var whitespace = new String(" \t\n\r"); var s = new String(str); if (whitespace.indexOf(s.charAt(0)) != -1) { var j=0, i = s.length; while (j < i && whitespace.indexOf(s.charAt(j)) != -1) j++; s = s.substring(j, i); } return s; } //RTrim(string) : Returns a copy of a string without trailing spaces. function rtrim(str) { var whitespace = new String(" \t\n\r"); var s = new String(str); if (whitespace.indexOf(s.charAt(s.length-1)) != -1) { var i = s.length - 1; // Get length of string while (i >= 0 && whitespace.indexOf(s.charAt(i)) != -1) i--; s = s.substring(0, i+1); } return s; } // Trim(string) : Returns a copy of a string without leading or trailing spaces function trim(str) { return rtrim(ltrim(str)); } function EcrireCookie(nom, valeur) { var argv=EcrireCookie.arguments; var argc=EcrireCookie.arguments.length; var expires=(argc > 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=nom+"="+escape(valeur)+ ((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 LireCookie(nom) { var arg=nom+"="; var alen=arg.length; var clen=document.cookie.length; var i=0; while (i