var actwin = 0;
function $(t) {
    return document.getElementById(t);
}
var isIE = document.all ? true: false;
function cl(event, city, points) {
    actwin = 1;
    co = document.getElementById('winitemp');
    co.style['display'] = "block";
    co.innerHTML = ' <b style="color:#690">' + city + '</b>: ';
    for (ico = 0, cco = points.length, lenx = 0; ico < cco; ico++, lenx += (points[ico] != undefined ? points[ico].length: 0)) {
        if (lenx > 100) {
            break;
        }
        if (ico > 2) {
            break;
        } else {
            co.innerHTML += points[ico] + ', ';
        }
    }
    co.innerHTML += '<a href="' + event + '"><b>m&aacute;s &raquo;</b></a>';
}
function cb() {}

function cou(o) {}

function windowed(u, w, h) {
    window.open(u, 'acadomia', 'width=' + w + ',height=' + h + ',scrollbars=yes');
}

function phoneChange(t){
	var phone = t.value.replace(/[ ]/g,'');
	if(phone.match(/^[56789][0-9]{8}$/i)){
		t.style.color = 'darkGreen';
	}
	else if(phone.match(/^[56789][0-9]{0,8}$/i)){
		t.style.color = '#ff6c00';
	}
	else {
		t.style.color = 'darkRed';
	}
};

function postalChange(t){
	var code = t.value.replace(/[ ]/g,'');
	if(code.match(/^[0-9]{5}$/i)){
		t.style.color = 'darkGreen';
	}
	else if(code.match(/^[0-9]{1,5}$/i)){
		t.style.color = '#ff6c00';
	}
	else {
		t.style.color = 'darkRed';
	}
};

/*res*/
function res() {
    de = $("ed");
    iO = de.offsetTop + de.offsetHeight;
    b = $("bdy");
    gg = $("mn");
    if (b.clientHeight > gg.offsetHeight) {
        iO = (b.offsetHeight - 230);
        c = $("footer");
        c.style["position"] = "absolute";
        c.style["top"] = iO + "px";
    } else if (iO < gg.offsetHeight - 258) {
        iO = (gg.offsetHeight - 258);
        c = $("footer");
        c.style["position"] = "absolute";
        c.style["top"] = iO + "px";
    }

    res2();
    tracking();
}
function res2() {}

/*conversion.js*/
function convF(REV, LABEL) {
    return false;
    var CLI_ID = 100921;
    var SIT_ID = 7745;
    var tps = new Date();
    var tps_db = parseInt(tps.getTime() / 1000);
    var ref = '' + escape(document.referrer);
    if (parseInt(navigator.appVersion.charAt(0)) >= 4) {
        tps_db -= 60 * tps.getTimezoneOffset();
    }
    var ima = "http://stats.searchtrack.net/REC.aspx?PU=TRAN&CLI_ID=" + CLI_ID + "&SIT_ID=" + SIT_ID + "&LABEL=" + escape(LABEL) + "&REV=" + escape(REV);
    ima += "&timing=" + tps_db;
    var nbs_t = " border='0' height='1' width='1' alt=''>";
    document.write('<IMG SRC=' + ima + nbs_t);
}

/*tracking code*/
function RObj(ea) {
}
function tracking() {
try {
 if((document.location+"").match(/scrnsht=1/).length>0){
  document.body.style.borderTop = '1px';
  document.body.style.borderColor = 'red';
  document.body.style.borderStyle = 'solid';
  document.body.style.borderLeft = document.body.style.borderRight = document.body.style.borderBottom = '0px';
  document.getElementById('mn').style.borderLeft='1px solid pink';
 }
}
catch(e){
}

}

/**
ClickHeat : Suivi et analyse des clics / Tracking and clicks analysis
@author Yvan Taviaud - LabsMedia - www.labsmedia.com/clickheat/
@since 27/10/2006
@update 01/03/2007 - Yvan Taviaud : correctif Firefox (K&aacute;roly Marton)
@update 23/03/2007 - Yvan Taviaud : protection de 2 secondes entre chaque clic, et X clics maximum par page
@update 18/05/2007 - Yvan Taviaud : suppression de clickHeatPage, ajout de clickHeatGroup et clickHeatSite
@update 27/08/2007 - Yvan Taviaud : changement du syst&egrave;me de d&eacute;bug
@update 28/09/2007 - Yvan Taviaud : ajout de quelques messages de d&eacute;bug
@update 19/10/2007 - Adaptation for confort-it - Jedrzej Majko
*/
function catchClickHeat(j){try{if(clickHeatQuota==0){return true}if(j==undefined){j=window.event;c=j.button;element=j.srcElement}else{c=j.which;element=null}if(c==0){return true}if(element!=null&&element.tagName.toLowerCase()=="iframe"){if(element.sourceIndex==clickHeatLastIframe){return true}clickHeatLastIframe=element.sourceIndex}else{clickHeatLastIframe=-1}var m=j.clientX;var l=j.clientY;var n=clickHeatDocument.clientWidth!=undefined?clickHeatDocument.clientWidth:window.innerWidth;var g=clickHeatDocument.clientHeight!=undefined?clickHeatDocument.clientHeight:window.innerHeight;var f=window.pageXOffset==undefined?clickHeatDocument.scrollLeft:window.pageXOffset;var d=window.pageYOffset==undefined?clickHeatDocument.scrollTop:window.pageYOffset;if(m>n||l>g){return true}clickTime=new Date();if(clickTime.getTime()-clickHeatTime<2000){return true}clickHeatTime=clickTime.getTime();if(clickHeatQuota>0){clickHeatQuota=clickHeatQuota-1}params="s="+clickHeatSite+"&u="+clickHeatUri+"&x="+(m+f)+"&y="+(l+d)+"&w="+n+"&h="+g+"&b="+clickHeatBrowser+"&c="+c+"&random="+Date();var k=false;var b=false;try{b=new ActiveXObject("Msxml2.XMLHTTP")}catch(j){try{b=new ActiveXObject("Microsoft.XMLHTTP")}catch(a){b=null}}if(!b&&typeof XMLHttpRequest!=undefined){b=new XMLHttpRequest()}if(b){b.open("GET","/click/s.php?"+params,j.target&&(j.target.tagName=="A"||(j.target.parentNode&&j.target.parentNode.tagName=="A"))?false:true);b.setRequestHeader("Connection","close");b.send(null);k=true}if(k==false){var o=new Image();o.src=clickHeatServer+"?"+params}}catch(j){}return true}var clickHeatSite="";var clickHeatUri="";var clickHeatLastIframe=-1;var clickHeatTime=0;var clickHeatQuota=-1;var clickHeatBrowser="";var clickHeatDocument="";function initClickHeat(){if(document.clickheat){return true}document.clickheat=1;domain=window.location.href.match(/http:\/\/[^/]+\//);uri=window.location.href.substring(domain[0].length);clickHeatUri=escape(uri==null?"index.php":uri);clickHeatSite=domain[0];if(typeof document.onmousedown=="function"){currentFunc=document.onmousedown;document.onmousedown=function(b){catchClickHeat(b);return currentFunc(b)}}else{document.onmousedown=catchClickHeat}iFrames=document.getElementsByTagName("iframe");for(i=0;i<iFrames.length;i++){if(typeof iFrames[i].onfocus=="function"){currentFunc=iFrames[i].onfocus;iFrames[i].onfocus=function(b){catchClickHeat(b);return currentFunc(b)}}else{iFrames[i].onfocus=catchClickHeat}}clickHeatDocument=document.documentElement!=undefined&&document.documentElement.clientHeight!=0?document.documentElement:document.body;var a=navigator.userAgent!=undefined?navigator.userAgent.toLowerCase().replace(/-/g,""):"";clickHeatBrowser=a.replace(/iceweasel/,"firefox").replace(/^.*(firefox|kmeleon|safari|msie|opera).*$/,"[#code]");if(a==clickHeatBrowser||clickHeatBrowser==""){clickHeatBrowser="unknown"}};

function focus() {
 /* if(focusme = document.getElementById("name__text __R")) {
  focusme.focus();
 }; */
};
