document.defaultCharset = 'UTF-8';

// +----------------------------------------------------------------+
// | TEEPSY - by netteo
// +----------------------------------------------------------------+
// | Copyright (c) 2005 netteo
// | Email         netteo_AT_netteo_DOT_net
// | Web           http://www.netteo.net/
// +----------------------------------------------------------------+
// | FR --
// | L'utilisation de TEEPSY est soumise à condition.
// | Il est totalement interdit d'utiliser TEEPSY sans l'accord écrit
// | de netteo.
// | Pour toute information : netteo_AT_netteo_DOT_net
// +----------------------------------------------------------------+
// | EN --
// | The use of TEEPSY is restricted.
// | You cannot use it unless you have a written authorization from
// | netteo.
// | For more information : netteo_AT_netteo_DOT_net
// +----------------------------------------------------------------+
// | Authors: Roberto PRESEDO  <presedo_AT_netteo_DOT_net> &
// |          Eric    PASQUIER <pasquier_AT_netteo_DOT_net>
// +----------------------------------------------------------------+


//********************************************************************************
//** //  Fichier : /dpn/apache/tpsy/TEEPSYlib/ustensiles/JSlib/generic.js //   **
//********************************************************************************


// +----------------------------------------------------------------+
// | TEEPSY - by netteo
// +----------------------------------------------------------------+
// | Copyright (c) 2005 netteo
// | Email         netteo_AT_netteo_DOT_net
// | Web           http://www.netteo.net/
// +----------------------------------------------------------------+
// | FR --
// | L'utilisation de TEEPSY est soumise à condition.
// | Il est totalement interdit d'utiliser TEEPSY sans l'accord écrit
// | de netteo.
// | Pour toute information : netteo_AT_netteo_DOT_net
// +----------------------------------------------------------------+
// | EN --
// | The use of TEEPSY is restricted.
// | You cannot use it unless you have a written authorization from
// | netteo.
// | For more information : netteo_AT_netteo_DOT_net
// +----------------------------------------------------------------+
// | Authors: Roberto PRESEDO  <presedo_AT_netteo_DOT_net> &
// |          Eric    PASQUIER <pasquier_AT_netteo_DOT_net>
// +----------------------------------------------------------------+
// | $Id: trads.js 34 2007-06-13 15:30:48Z netteo $
// +----------------------------------------------------------------+
//
// Initialisation du CHARSET pour javascript
document.charset = "UTF-8";
// Nécessaire pour le drag and drop du module navigation. Voir si ça foire pas tout ailleurs...
Position.includeScrollOffsets = true;
// Traduction pour le message d'avertissement onbeforeunload
var TEEPSYTRAD_OnBeforeUpload = "Toutes les informations non sauvées seront perdues.";

// Méthode pour savoir si une valeur est présente dans le tableau
Array.prototype.inArray = function(val)
{
for(var i = 0; i < this.length; i++)
{
if(this[i] == val) return i;
}
return false;
}


// Fonction pour avoir la valeur d'une valeur dans le get
function getVar(name)
{
get_string = document.location.search;
return_value = '';

do { //This loop is made to catch all instances of any get variable.
name_index = get_string.indexOf(name + '=');

if(name_index != -1)
{
get_string = get_string.substr(name_index + name.length + 1, get_string.length - name_index);

end_of_value = get_string.indexOf('&');
if(end_of_value != -1)
value = get_string.substr(0, end_of_value);
else
value = get_string;

if(return_value == '' || value == '')
return_value += value;
else
return_value += ', ' + value;
}
} while(name_index != -1)

//Restores all the blank spaces.
space = return_value.indexOf('+');
while(space != -1)
{
return_value = return_value.substr(0, space) + ' ' +
return_value.substr(space + 1, return_value.length);

space = return_value.indexOf('+');
}

return(return_value);
}



//********************************************************************************
//***** //  Fichier : /dpn/apache/tpsy/TEEPSYlib/ustensiles/dom/dom.js //   *****
//********************************************************************************


// +----------------------------------------------------------------+
// | TEEPSY - by netteo
// +----------------------------------------------------------------+
// | Copyright (c) 2005 netteo
// | Email         netteo_AT_netteo_DOT_net
// | Web           http://www.netteo.net/
// +----------------------------------------------------------------+
// | FR --
// | L'utilisation de TEEPSY est soumise à condition.
// | Il est totalement interdit d'utiliser TEEPSY sans l'accord écrit
// | de netteo.
// | Pour toute information : netteo_AT_netteo_DOT_net
// +----------------------------------------------------------------+
// | EN --
// | The use of TEEPSY is restricted.
// | You cannot use it unless you have a written authorization from
// | netteo.
// | For more information : netteo_AT_netteo_DOT_net
// +----------------------------------------------------------------+
// | Authors: Roberto PRESEDO  <presedo_AT_netteo_DOT_net> &
// |          Eric    PASQUIER <pasquier_AT_netteo_DOT_net>
// +----------------------------------------------------------------+
// | Id: strip.js 34 2007-06-13 15:30:48Z netteo
// +----------------------------------------------------------------+
//


/**
* Crée un identifiant pour un élément dans le DOM
*
* @param 	string 	Library			Nom de la librairie concernée

* Paramètres optionnels, mais dans cet ordre
* @param 	string 	Name			Nom de l'elément
* @param 	string 	ToolName		Nom de l'outil
* @param 	string 	BoxId			Identifiant de la BOX
* @param 	string 	SelectionId		Identifiant de l'élément
* @param 	string 	Etat			Etat de l'élément
* @param 	string 	moreClass		Nom d'une éventuelle seconde classe pour l'élément

* @return 	array	Un tableau contenant le nom de l'identifiant et de la classe associée
*/

function __DOM (Library) {
var ret = new Array();
// CLASS
ret[0] = "TEEPSY_"+__DOMcleanName(Library.toString());
// Définition du Name
if(__DOM.arguments.length>1 && __DOM.arguments[1]!=false && typeof __DOM.arguments[1]!='undefined')	{
var Name = __DOMcleanName(__DOM.arguments[1].toString());
ret[0] = ret[0]+"_"+ Name;
}
// ID
ret[1] = ret[0];
// Définition du ToolName
if(__DOM.arguments.length>2 && __DOM.arguments[2]!=false && typeof __DOM.arguments[2]!='undefined')	{
var ToolName = __DOMcleanName(__DOM.arguments[2].toString());
// CLASSWITHTOOLNAME
ret[4] = ret[0]+"_"+ ToolName;
// ID
ret[1] = ret[1]+"_"+ ToolName;
}
// Définition de BoxId
if(__DOM.arguments.length>3 && __DOM.arguments[3]!=false && typeof __DOM.arguments[3]!='undefined')	{
ret[1] = ret[1]+"_"+ __DOMcleanName(__DOM.arguments[3].toString());
}
// Définition de SelectionId
if(__DOM.arguments.length>4 && __DOM.arguments[4]!=false && typeof __DOM.arguments[4]!='undefined')	{
ret[1] = ret[1]+"_"+ __DOMcleanName(__DOM.arguments[4].toString());
}
// Définition de Etat
if(__DOM.arguments.length>5 && __DOM.arguments[5]!=false && typeof __DOM.arguments[5]!='undefined')	{
ret[1] = ret[1]+"_"+ __DOMcleanName(__DOM.arguments[5].toString());
}

// On créer les tags ID et CLASSE en ajoutant moreClass au cas ou.
if(__DOM.arguments.length>6 && __DOM.arguments[6]!=false && typeof __DOM.arguments[6]!='undefined')	{
// TAG
ret[3] = "id=\""+ret[1]+"\" class=\""+ret[0]+" "+__DOMcleanName(__DOM.arguments[6].toString())+"\" ";
// TAGWITHTOOLNAME
ret[5] = "id=\""+ret[1]+"\" class=\""+ret[0]+" "+ret[4]+" "+__DOMcleanName(__DOM.arguments[6].toString())+"\" ";
}
else  {
// TAG
ret[3] = "id=\""+ret[1]+"\" class=\""+ret[0]+"\" ";
// TAGWITHTOOLNAME
ret[5] = "id=\""+ret[1]+"\" class=\""+ret[0]+" "+ret[4]+"\" ";
}
return ret;
}

/**
* Raccourci pour __DOM pour avoir directement l'identifiant
*
* @param 	string 	Library			Nom de la librairie concernée

* Paramètres optionnels, mais dans cet ordre
* @param 	string 	Name			Nom de l'elément
* @param 	string 	ToolName		Nom de l'outil
* @param 	string 	BoxId			Identifiant de la BOX
* @param 	string 	SelectionId		Identifiant de l'élément
* @param 	string 	Etat			Etat de l'élément

* @return 	string	Le nom de l'identifiant créé
*/
function __ID (Library){
// Définition du Name
if(__ID.arguments.length>1 && __ID.arguments[1]!=false && typeof __ID.arguments[1]!='undefined') var Name 		= __ID.arguments[1];
else Name = false;
if(__ID.arguments.length>2 && __ID.arguments[2]!=false && typeof __ID.arguments[2]!='undefined')	var ToolName 	= __ID.arguments[2];
else var ToolName = false;
if(__ID.arguments.length>3 && __ID.arguments[3]!=false && typeof __ID.arguments[3]!='undefined')	var BoxId 		= __ID.arguments[3];
else var BoxId = false;
if(__ID.arguments.length>4 && __ID.arguments[4]!=false && typeof __ID.arguments[4]!='undefined')	var SelectionId = __ID.arguments[4];
else var SelectionId = false;
if(__ID.arguments.length>5 && __ID.arguments[5]!=false && typeof __ID.arguments[5]!='undefined')	var Etat 		= __ID.arguments[5];
else var Etat = false;

var ret = __DOM(Library, Name, ToolName, BoxId, SelectionId, Etat);
return ret[1];
}

/**
* Raccourci pour __DOM pour avoir directement le name
*
* @param 	string 	Library			Nom de la librairie concernée

* Paramètres optionnels, mais dans cet ordre
* @param 	string 	Name			Nom de l'elément
* @param 	string 	ToolName		Nom de l'outil
* @param 	string 	BoxId			Identifiant de la BOX
* @param 	string 	SelectionId		Identifiant de l'élément
* @param 	string 	Etat			Etat de l'élément

* @return 	string	Le nom de l'identifiant créé
*/
function __NAME (Library){
// Définition du Name
if(__NAME.arguments.length>1 && __NAME.arguments[1]!=false && typeof __NAME.arguments[1]!='undefined') var Name 		= __NAME.arguments[1];
else Name = false;
if(__NAME.arguments.length>2 && __NAME.arguments[2]!=false && typeof __NAME.arguments[2]!='undefined')	var ToolName 	= __NAME.arguments[2];
else var ToolName = false;
if(__NAME.arguments.length>3 && __NAME.arguments[3]!=false && typeof __NAME.arguments[3]!='undefined')	var BoxId 		= __NAME.arguments[3];
else var BoxId = false;
if(__NAME.arguments.length>4 && __NAME.arguments[4]!=false && typeof __NAME.arguments[4]!='undefined')	var SelectionId = __NAME.arguments[4];
else var SelectionId = false;
if(__NAME.arguments.length>5 && __NAME.arguments[5]!=false && typeof __NAME.arguments[5]!='undefined')	var Etat 		= __NAME.arguments[5];
else var Etat = false;

var ret = __ID(Library, Name, ToolName, BoxId, SelectionId, Etat);
return ret+"_NAME";
}

/**
* Raccourci pour __DOM pour avoir directement le nom de la class
*
* @param 	string 	Library			Nom de la librairie concernée

* Paramètres optionnels, mais dans cet ordre
* @param 	string 	Name			Nom de l'elément
* @param 	string 	ToolName		Nom de l'outil
* @param 	string 	Etat			Etat de l'élément

* @return 	string	Le nom de l'identifiant créé
*/
function __CLASS(Library){
if(__CLASS.arguments.length>1 && __CLASS.arguments[1]!=false && typeof __CLASS.arguments[1]!='undefined') var Name 		= __CLASS.arguments[1];
else Name = false;
if(__CLASS.arguments.length>2 && __CLASS.arguments[2]!=false && typeof __CLASS.arguments[2]!='undefined') var ToolName	= __CLASS.arguments[2];
else var ToolName = false;
if(__CLASS.arguments.length>3 && __CLASS.arguments[3]!=false && typeof __CLASS.arguments[3]!='undefined') var Etat 		= __CLASS.arguments[3];
else var Etat = false;
var ret = __DOM(Library, Name, ToolName, false, false, Etat);
return ret[0];
}

/**
* Raccourci pour __DOM pour avoir directement le tag à insérer
*
* @param 	string 	ToolName		Nom de l'outil

* Paramètres optionnels, mais dans cet ordre
* @param 	string 	Name			Nom de l'elément
* @param 	string 	BoxId			Identifiant de la BOX
* @param 	string 	SelectionId		Identifiant de l'élément
* @param 	string 	Etat			Etat de l'élément

* @return 	string	Le nom de l'identifiant créé
*/
function __TAG(Library){
if(__TAG.arguments.length>1 && __TAG.arguments[1]!=false && typeof __TAG.arguments[1]!='undefined')	var Name 		= __TAG.arguments[1];
else Name = false;
if(__TAG.arguments.length>2 && __TAG.arguments[2]!=false && typeof __TAG.arguments[2]!='undefined')	var ToolName 	= __TAG.arguments[2];
else var ToolName = false;
if(__TAG.arguments.length>3 && __TAG.arguments[3]!=false && typeof __TAG.arguments[3]!='undefined')	var BoxId 		= __TAG.arguments[3];
else var BoxId = false;
if(__TAG.arguments.length>4 && __TAG.arguments[4]!=false && typeof __TAG.arguments[4]!='undefined')	var SelectionId = __TAG.arguments[4];
else var SelectionId = false;
if(__TAG.arguments.length>5 && __TAG.arguments[5]!=false && typeof __TAG.arguments[5]!='undefined')	var Etat 		= __TAG.arguments[5];
else var Etat = false;
if(__TAG.arguments.length>6 && __TAG.arguments[6]!=false && typeof __TAG.arguments[6]!='undefined')	var moreClass 	= __TAG.arguments[6];
else var moreClass = false;
ret = __DOM (Library, Name, ToolName, BoxId, SelectionId, Etat, moreClass);
return ret[3];
}


/**
* Nettoie le code du nom (pas d'espace, majuscules, sans caractère spécial)
*
* @param string name Le nom a nettoyer
*/
function __DOMcleanName(name) {

return name.toUpperCase().replace(/[éèêëÊË]/gi,'e').replace(/[àâäÂÄ]/gi,'a').replace(/[îïÎÏ]/gi,'i').replace(/[ûùüÛÜ]/gi,'u').replace(/[ôöÔÖ]/gi,'o').replace(/[ç]/gi,'c').replace(/[ ]/gi,'').replace(/[^a-zA-Z0-9]/gi,'');
}


//********************************************************************************
// //  Fichier : /dpn/apache/tpsy/TEEPSYlib/ustensiles/JSlib/SWFobject/swfobject.js //
//********************************************************************************


/**
* SWFObject v1.4.4: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
*
* SWFObject is (c) 2006 Geoff Stearns and is released under the MIT License:
* http://www.opensource.org/licenses/mit-license.php
*
* **SWFObject is the SWF embed script formerly known as FlashObject. The name was changed for
*   legal reasons.
*/
if(typeof deconcept=="undefined"){var deconcept=new Object();}
if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}
if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}
deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a,_b){if(!document.getElementById){return;}
this.DETECT_KEY=_b?_b:"detectflash";
this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);
this.params=new Object();
this.variables=new Object();
this.attributes=new Array();
if(_1){this.setAttribute("swf",_1);}
if(id){this.setAttribute("id",id);}
if(w){this.setAttribute("width",w);}
if(h){this.setAttribute("height",h);}
if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}
this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();
if(c){this.addParam("bgcolor",c);}
var q=_8?_8:"high";
this.addParam("quality",q);
this.setAttribute("useExpressInstall",_7);
this.setAttribute("doExpressInstall",false);
var _d=(_9)?_9:window.location;
this.setAttribute("xiRedirectUrl",_d);
this.setAttribute("redirectUrl","");
if(_a){this.setAttribute("redirectUrl",_a);}};
deconcept.SWFObject.prototype={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.push(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");}
_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\"";
_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";
var _1a=this.getParams();
for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}
var _1c=this.getVariablePairs().join("&");
if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";
}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");}
_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\">";
_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";
var _1d=this.getParams();
for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}
var _1f=this.getVariablePairs().join("&");
if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}
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{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(_27){
this.major=_27[0]!=null?parseInt(_27[0]):0;
this.minor=_27[1]!=null?parseInt(_27[1]):0;
this.rev=_27[2]!=null?parseInt(_27[2]):0;
};
deconcept.PlayerVersion.prototype.versionIsValid=function(fv){
if(this.major<fv.major){return false;}
if(this.major>fv.major){return true;}
if(this.minor<fv.minor){return false;}
if(this.minor>fv.minor){return true;}
if(this.rev<fv.rev){
return false;
}return true;};
deconcept.util={getRequestParameter:function(_29){
var q=document.location.search||document.location.hash;
if(q){var _2b=q.substring(1).split("&");
for(var i=0;i<_2b.length;i++){
if(_2b[i].substring(0,_2b[i].indexOf("="))==_29){
return _2b[i].substring((_2b[i].indexOf("=")+1));}}}
return "";}};
deconcept.SWFObjectUtil.cleanupSWFs=function(){if(window.opera||!document.all){return;}
var _2d=document.getElementsByTagName("OBJECT");
for(var i=0;i<_2d.length;i++){_2d[i].style.display="none";for(var x in _2d[i]){
if(typeof _2d[i][x]=="function"){_2d[i][x]=function(){};}}}};
deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};
__flash_savedUnloadHandler=function(){};
if(typeof window.onunload=="function"){
var _30=window.onunload;
window.onunload=function(){
deconcept.SWFObjectUtil.cleanupSWFs();_30();};
}else{window.onunload=deconcept.SWFObjectUtil.cleanupSWFs;}};
if(typeof window.onbeforeunload=="function"){
var oldBeforeUnload=window.onbeforeunload;
window.onbeforeunload=function(){
deconcept.SWFObjectUtil.prepUnload();
oldBeforeUnload();};
}else{window.onbeforeunload=deconcept.SWFObjectUtil.prepUnload;}
if(Array.prototype.push==null){
Array.prototype.push=function(_31){
this[this.length]=_31;
return this.length;};}
var getQueryParamValue=deconcept.util.getRequestParameter;
var FlashObject=deconcept.SWFObject;
var SWFObject=deconcept.SWFObject;



//********************************************************************************
//* //  Fichier : /dpn/apache/tpsy/TEEPSYlib/ustensiles/browser/requests.js //   *
//********************************************************************************


// +----------------------------------------------------------------+
// | TEEPSY - by netteo
// +----------------------------------------------------------------+
// | Copyright (c) 2005 netteo
// | Email         netteo_AT_netteo_DOT_net
// | Web           http://www.netteo.net/
// +----------------------------------------------------------------+
// | FR --
// | L'utilisation de TEEPSY est soumise à condition.
// | Il est totalement interdit d'utiliser TEEPSY sans l'accord écrit
// | de netteo.
// | Pour toute information : netteo_AT_netteo_DOT_net
// +----------------------------------------------------------------+
// | EN --
// | The use of TEEPSY is restricted.
// | You cannot use it unless you have a written authorization from
// | netteo.
// | For more information : netteo_AT_netteo_DOT_net
// +----------------------------------------------------------------+
// | Authors: Roberto PRESEDO  <presedo_AT_netteo_DOT_net> &
// |          Eric    PASQUIER <pasquier_AT_netteo_DOT_net>
// +----------------------------------------------------------------+
// | $Id: requests.js 34 2007-06-13 15:30:48Z netteo $
// +----------------------------------------------------------------+
//


/////////////////////////////////////////////////////////////////////////////////////////////////////
// Recherche la valeur d'un paramètres passé dans l'url

function request(valeur)
{
var q=document.location.search||document.location.hash;
if(q)
{
var params=q.substring(1).split("&");
for(var i=0;i<params.length;i++)
{
if(params[i].substring(0,params[i].indexOf("="))==valeur)
{
return params[i].substring((params[i].indexOf("=")+1));
}
}
}
return "";
}


//********************************************************************************
// //  Fichier : /dpn/apache/tpsy/TEEPSYlib/ustensiles/browser/checkInit.js //
//********************************************************************************


// +----------------------------------------------------------------+
// | TEEPSY - by netteo
// +----------------------------------------------------------------+
// | Copyright (c) 2005 netteo
// | Email         netteo_AT_netteo_DOT_net
// | Web           http://www.netteo.net/
// +----------------------------------------------------------------+
// | FR --
// | L'utilisation de TEEPSY est soumise à condition.
// | Il est totalement interdit d'utiliser TEEPSY sans l'accord écrit
// | de netteo.
// | Pour toute information : netteo_AT_netteo_DOT_net
// +----------------------------------------------------------------+
// | EN --
// | The use of TEEPSY is restricted.
// | You cannot use it unless you have a written authorization from
// | netteo.
// | For more information : netteo_AT_netteo_DOT_net
// +----------------------------------------------------------------+
// | Authors: Roberto PRESEDO  <presedo_AT_netteo_DOT_net> &
// |          Eric    PASQUIER <pasquier_AT_netteo_DOT_net>
// +----------------------------------------------------------------+
// | $Id: checkInit.js 443 2008-02-01 10:05:41Z netteo $
// +----------------------------------------------------------------+
//


/////////////////////////////////////////////////////////////////////////////////////////////////////
// Configuration minimum requise pour TEEPSY
var minFlashVer = 7;
var minWidth    = 800;
var minHeight   = 600;
// Contrôles des minimums requis pour l'utilisation de TEEPSY
var flashOK     = 0;
var widthOK     = 0;
var heightOK    = 0;
var cookieOK    = 0;

var TEEPSYcheck    = false;
var browserOK 	= 0;



//********************************************************************************
// //  Fichier : /dpn/apache/tpsy/TEEPSYlib/ustensiles/browser/checkCookies.js //
//********************************************************************************


// +----------------------------------------------------------------+
// | TEEPSY - by netteo
// +----------------------------------------------------------------+
// | Copyright (c) 2005 netteo
// | Email         netteo_AT_netteo_DOT_net
// | Web           http://www.netteo.net/
// +----------------------------------------------------------------+
// | FR --
// | L'utilisation de TEEPSY est soumise à condition.
// | Il est totalement interdit d'utiliser TEEPSY sans l'accord écrit
// | de netteo.
// | Pour toute information : netteo_AT_netteo_DOT_net
// +----------------------------------------------------------------+
// | EN --
// | The use of TEEPSY is restricted.
// | You cannot use it unless you have a written authorization from
// | netteo.
// | For more information : netteo_AT_netteo_DOT_net
// +----------------------------------------------------------------+
// | Authors: Roberto PRESEDO  <presedo_AT_netteo_DOT_net> &
// |          Eric    PASQUIER <pasquier_AT_netteo_DOT_net>
// +----------------------------------------------------------------+
// | $Id: checkCookies.js 167 2007-10-10 14:27:28Z netteo $
// +----------------------------------------------------------------+
//


/////////////////////////////////////////////////////////////////////////////////////////////////////
// Contrôle si les cookies sont acceptés
var tmpcookie = new Date();
chkcookie = (tmpcookie.getTime() + '');
document.cookie = "chkcookie=" + chkcookie + "; path=/";
if (document.cookie.indexOf(chkcookie,0) < 0) cookieOK = 0;
else cookieOK = 1;


//********************************************************************************
// //  Fichier : /dpn/apache/tpsy/TEEPSYlib/ustensiles/browser/checkScreenSize.js //
//********************************************************************************


// +----------------------------------------------------------------+
// | TEEPSY - by netteo
// +----------------------------------------------------------------+
// | Copyright (c) 2005 netteo
// | Email         netteo_AT_netteo_DOT_net
// | Web           http://www.netteo.net/
// +----------------------------------------------------------------+
// | FR --
// | L'utilisation de TEEPSY est soumise à condition.
// | Il est totalement interdit d'utiliser TEEPSY sans l'accord écrit
// | de netteo.
// | Pour toute information : netteo_AT_netteo_DOT_net
// +----------------------------------------------------------------+
// | EN --
// | The use of TEEPSY is restricted.
// | You cannot use it unless you have a written authorization from
// | netteo.
// | For more information : netteo_AT_netteo_DOT_net
// +----------------------------------------------------------------+
// | Authors: Roberto PRESEDO  <presedo_AT_netteo_DOT_net> &
// |          Eric    PASQUIER <pasquier_AT_netteo_DOT_net>
// +----------------------------------------------------------------+
// | $Id: checkScreenSize.js 34 2007-06-13 15:30:48Z netteo $
// +----------------------------------------------------------------+
//


/////////////////////////////////////////////////////////////////////////////////////////////////////
// Contrôle si les cookies sont acceptés
if (screen.width  >= minWidth )
widthOK  = 1;
if (screen.height >= minHeight)
heightOK = 1;


//********************************************************************************
// //  Fichier : /dpn/apache/tpsy/TEEPSYlib/ustensiles/browser/checkFlash.js //
//********************************************************************************


// +----------------------------------------------------------------+
// | TEEPSY - by netteo
// +----------------------------------------------------------------+
// | Copyright (c) 2005 netteo
// | Email         netteo_AT_netteo_DOT_net
// | Web           http://www.netteo.net/
// +----------------------------------------------------------------+
// | FR --
// | L'utilisation de TEEPSY est soumise à condition.
// | Il est totalement interdit d'utiliser TEEPSY sans l'accord écrit
// | de netteo.
// | Pour toute information : netteo_AT_netteo_DOT_net
// +----------------------------------------------------------------+
// | EN --
// | The use of TEEPSY is restricted.
// | You cannot use it unless you have a written authorization from
// | netteo.
// | For more information : netteo_AT_netteo_DOT_net
// +----------------------------------------------------------------+
// | Authors: Roberto PRESEDO  <presedo_AT_netteo_DOT_net> &
// |          Eric    PASQUIER <pasquier_AT_netteo_DOT_net>
// +----------------------------------------------------------------+
// | $Id: checkFlash.js 34 2007-06-13 15:30:48Z netteo $
// +----------------------------------------------------------------+
//

var version = deconcept.SWFObjectUtil.getPlayerVersion();
if ((version['major'] >= minFlashVer))
{
flashOK = 1;
}
else
{
flashOK = 0;
}


//********************************************************************************
//* //  Fichier : /dpn/apache/tpsy/TEEPSYlib/ustensiles/browser/checkEnd.js //   *
//********************************************************************************


// +----------------------------------------------------------------+
// | TEEPSY - by netteo
// +----------------------------------------------------------------+
// | Copyright (c) 2005 netteo
// | Email         netteo_AT_netteo_DOT_net
// | Web           http://www.netteo.net/
// +----------------------------------------------------------------+
// | FR --
// | L'utilisation de TEEPSY est soumise à condition.
// | Il est totalement interdit d'utiliser TEEPSY sans l'accord écrit
// | de netteo.
// | Pour toute information : netteo_AT_netteo_DOT_net
// +----------------------------------------------------------------+
// | EN --
// | The use of TEEPSY is restricted.
// | You cannot use it unless you have a written authorization from
// | netteo.
// | For more information : netteo_AT_netteo_DOT_net
// +----------------------------------------------------------------+
// | Authors: Roberto PRESEDO  <presedo_AT_netteo_DOT_net> &
// |          Eric    PASQUIER <pasquier_AT_netteo_DOT_net>
// +----------------------------------------------------------------+
// | $Id: checkEnd.js 443 2008-02-01 10:05:41Z netteo $
// +----------------------------------------------------------------+
//
/////////////////////////////////////////////////////////////////////////////////////////////////////
// Contrôle des minimums requis pour TEEPSY
if (browserOK==1 && flashOK==1 && widthOK==1 && heightOK==1 && cookieOK==1)
{
TEEPSYcheck = true;
document.cookie = "TEEPSYchecks=OK; path=/";
}

logincode = "";
function ShowLogin()
{
document.getElementById('divloginform').innerHTML = logincode;
}
if (TEEPSYcheck)
{
var error = "";
var	lastvalue = "";
if (request('LastLogin')=='no') error = "<div id='TEEPSY_LOGIN_ERROR'>Il faut remplir les champs.</div>";
else if (request('LastLogin'))
{
lastvalue = request('LastLogin');
error = "<div id='TEEPSY_LOGIN_ERROR'>Il y a une erreur.</div>";
//lastvalue = getVar('LastLogin');
}
if (error!="")  var formclass = " class=\"TEEPSY_ERROR\"";
else
{
//		var formclass = "";
//		error = "<div id='TEEPSY_LOGIN_MESSAGE'>Mot de passe oublié ?</div>";
}

var logincode = "<form id=\"TEEPSY_LOGIN_FORM\" method=\"post\" action=\"http://noyau.teepsy.net/login.php5\""+formclass+" accept-charset=\"UTF-8\">";
logincode = logincode + '<a name="tpsyform"></a><div class="TEEPSY_LOGIN_FORMMAIL"><div class="TEEPSY_LOGIN_LIBELLE">E-mail</div><input name="TEEPSY_LOGIN_USERMAIL" id="TEEPSY_LOGIN_USERMAIL" class="TEEPSY_LOGIN_TEXTINPUT" size="" type="text" value="'+lastvalue+'"></div>'+
'<div class="TEEPSY_LOGIN_FORMPASS"><div class="TEEPSY_LOGIN_LIBELLE">Mot de passe</div><input name="TEEPSY_LOGIN_PASSWORD" id="TEEPSY_LOGIN_PASSWORD" class="TEEPSY_LOGIN_TEXTINPUT" size="" type="password"></div>'+
//	'<div class="TEEPSY_LOGIN_FORMREMEMBER"><input name="TEEPSY_LOGIN_REMEMBERME" id="TEEPSY_LOGIN_REMEMBERME" value="y" type="checkbox"><span>Se souvenir de moi</span></div>'+
'<div class="TEEPSY_LOGIN_FORMOK"><span class="bouton"><input type="submit" value="Gérer mon site"></span></div>'+
'</form>'+error;
}
else
{
if (!browserOK)
{
logincode = "Aïe... teepsy ne fonctionne pas encore avec votre navigateur. <br> Nous vous conseillons d'utiliser Firefox pour Windows, qui est en <a target=\"_blank\"  href=\"http://www.mozilla-europe.org/fr/\">téléchargement gratuit</a>.";
}
else if (!flashOK)   logincode = "Il faut installer Flash sur votre navigateur";
else if (!cookieOK)  logincode = "Il faut activer les cookies sur votre navigateur";
}
window.onload = ShowLogin;




