function ShowHideDestGate(val, mainDiv, type)
    {

        var s_Result = '';

        $$('#' + mainDiv + ' div').each(

		function(o){

			clasnam = o.className

			if (clasnam.indexOf(type) >= 0)

			{

				o.style.display = "none";

				if (clasnam.indexOf(val) >= 0)

				{

					o.style.display = "block";

				}

				if (val == 'ALL')

				{

					o.style.display = "block";

				}

			}

		}

		);

	/*

		if (document.getElementById('AdvGatewayPCK').value != 'ALL' || document.getElementById('AdvDestPCK').value != 'ALL')

		{

			//show the text

			BuildText = AdvTextDescribeP1 + " " 

			if (document.getElementById('AdvGatewayPCK').value != 'ALL')

				BuildText += " " + AdvTextDescribeP2 + " " + document.getElementById('AdvGatewayPCK').options[document.getElementById('AdvGatewayPCK').selectedIndex].text 

			if (document.getElementById('AdvDestPCK').value != 'ALL')	

				BuildText += " " + AdvTextDescribeP3 + " " + document.getElementById('AdvDestPCK').options[document.getElementById('AdvDestPCK').selectedIndex].text

			BuildText += "."

			

			document.getElementById('TEXTFORGATEDEST').innerHTML = BuildText;

		}

		else

		{

			document.getElementById('TEXTFORGATEDEST').innerHTML = AdvTextDescribeP4+'.';

		}

	*/

    }

	

	

	

function ShowHideTaxedPrice(parentdiv)

{

	var children = parentdiv.childNodes;

	

	for(c=0;c<children.length;c++)

	{

		

		if(children[c].className)

			if (children[c].className == 'Taxed' || children[c].className == 'PlusTax')

			{

			

				if(children[c].style.display == 'block')

					children[c].style.display = 'none';

				else

					children[c].style.display = 'block';

			}

	}

}	



function RevertSelection(elem, index) 

{

	elem.selectedIndex = index;

	//alert(index)

}



function SetAmbassadeurCote()

{

	if(SetAmbassadeurCoteOnce)

	{

		if(readCookie('PotentielAmbassadeurName'))

		{

			SetAmbassadeurCoteOnce = false;

			

			$$('.AdvertiseAmbassadeurName').each(

			function(o){

				o.innerHTML = unescape(readCookie('PotentielAmbassadeurName'));

			}

			);

			

			

			$$('.AdvertiseAmbassadeurBlock').each(

			function(o){

				o.style.display = "block";

			}

			);

			

			$$('.buyButton').each(

			function(o){

				o.href = o.href + readCookie('PotentielAmbassadeurName');

			}

			);

			

			

		}

	}

}
