/*
    ___®-------------------------------------------------®
    |##/   Cette fonction est MEGA IMPORTANTE, elle sert /|
    |#/    à initialiser les test pour les vidéos       /#|
    |/     Ioan Sameli - 04.04.2006                    /##|
    ®-------------------------------------------------®¯¯¯¯
*/

// Write the Testing zone, see the function in navigator_detect.js for more details

	try{initializeTestingZone();}
	catch(E){}
  /*******************************/
 /***   Functions for stats   ***/
/*******************************/


function currentSection() {
	var docurl = document.URL;
	var currentSect = "actu";


	if((getURLParam('siteSect') >= '100000') && (getURLParam('siteSect') <= '199999')) {
		currentSect = "home";
		return currentSect;
	}
	if((getURLParam('siteSect') >= '200000') && (getURLParam('siteSect') <= '299999')) {
		currentSect = "actu";
		return currentSect;
	}
	if((getURLParam('siteSect') >= '300000') && (getURLParam('siteSect') <= '399999')) {
		currentSect = "emissions";
		return currentSect;
	}
	if((getURLParam('siteSect') >= '400000') && (getURLParam('siteSect') <= '499999')) {
		currentSect = "interactif";
		return currentSect;
	}
	if((getURLParam('siteSect') >= '500000') && (getURLParam('siteSect') <= '599999')) {
		currentSect = "video";
		return currentSect;
	}
	if((getURLParam('siteSect') >= '601000') && (getURLParam('siteSect') <= '601010')) {
		currentSect = "programme tv";
		return currentSect;
	}
	if((getURLParam('siteSect') >= '603000') && (getURLParam('siteSect') <= '603100')) {
		currentSect = "meteo";
		return currentSect;
	}
	if((getURLParam('siteSect') >= '600000') && (getURLParam('siteSect') <= '600999') || (getURLParam('siteSect') >= '601011') && (getURLParam('siteSect') <= '602999') || (getURLParam('siteSect') >= '603101') && (getURLParam('siteSect') <= '699999')) {
		currentSect = "services";
		return currentSect;
	}
	if((getURLParam('siteSect') >= '700000') && (getURLParam('siteSect') <= '799999')) {
		currentSect = "evenements";
		return currentSect;
	}
	if((getURLParam('siteSect') >= '800000') && (getURLParam('siteSect') <= '899999')) {
		currentSect = "sport";
		return currentSect;
	}
	if((getURLParam('siteSect') >= '900000') && (getURLParam('siteSect') <= '999999')) {
		currentSect = "mobile";
		return currentSect;
	}
	if(docurl.match('archives.tsr.ch')) {
		currentSect = "services";
		return currentSect;
	}
	if(getURLParam('siteSect') == '' || getURLParam('siteSect') == null || getURLParam('siteSect') == undefined) {
		return currentSect;
	}
	else {
		currentSect = "actu";
		return currentSect;
	}
}

var sectionName = currentSection();
var IVW="http://tsr.wemfbox.ch/cgi-bin/ivw/CP/"+sectionName;
document.write("<IMG SRC=\""+IVW+"?r="+escape(document.referrer)+"\"WIDTH=\"1\" HEIGHT=\"1\">");


