var compte="";
base_url="";
base_gmt="";
var platform="";
var name_browser="webpro";
var version="";

var clocknb;
if(isNaN(clocknb)){clocknb=1;}


function getCookieVal (offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}

function GetCookie (name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return getCookieVal (j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break;
}
return null;
}

function EcrireCookieGeo(nom,valeur)
{
   date= new Date();
   date.setMonth(date.getMonth()+120);
   var argv=EcrireCookieGeo.arguments;
   var argc=EcrireCookieGeo.arguments.length;
   var expires=(argc > 2) ? argv[2] : null;
   var expires=date;
   var path=("/") ;
   var domain=(argc > 4) ? argv[4] : null;
   var secure=(argc > 5) ? arg[5] : false;
   document.cookie=nom+"="+escape(valeur)+
      ((expires==null) ? "" : ("; expires="+expires.toGMTString()))+
       ((path==null) ? "" : ("; path="+path))+
      ((domain==null) ? "" : ("; domain="+domain))+
      ((secure==true) ? "; secure" : "");
}

var nb_couleur;
if(screen.colorDepth!=undefined){
 nb_couleur=screen.colorDepth;
}
else if(screen.pixelDepth!=undefined){
 nb_couleur=screen.pixelDepth;
}
else{
 nb_couleur=0;
}

var browser = parseInt(navigator.appVersion);
if (browser>=4){var resolution = (screen.height + "*" + screen.width)}
else{var resolution;}

if (navigator.appName.indexOf("Microsoft Internet Explorer")!=-1){langue=navigator.systemLanguage;}
else{langue=navigator.language;}
langue=langue.substring(0,2);

var date_geoloc = new Date();
dateloc = date_geoloc.getTime()/1000
var reg
var ref= document.referrer
page_stat = escape(document.URL)
if (ref==""){
ref="null";
}

var url = document.URL
 if(url.indexOf("/")== -1){
   reg2 = "index"
   }

   else{
   tab=url.split("/")
   var i =tab.length-1
   var page = tab[i]
    if((page == "index.htm")  || (page =="index.html") || (page == "index.php") || (page == "")|| (page == "index.php3")|| (page == "index.asp")){
    reg2 = "index"
    }
    else{
     var reg2
    }
    }
var couleur_lib;
var logo_lib;
var compteur_lib;
var categorie_lib;
var undefined

defautgif="http://clock1.mytictac.com/private/clock.php?compte="+compte



var md5="";
var date_test
date_test=1328102689;
dateloc+=10;
var date_mytictac = new Date();

function EcrireCookiemytictac(nom,valeur,nombre)
{
   var argv=EcrireCookiemytictac.arguments;
   var argc=EcrireCookiemytictac.arguments.length;
   var ladate=new Date();
   ladate.setTime(ladate.getTime()+Number(nombre));
   var path=("/") ;
   var domain=(argc > 4) ? argv[4] : null;
   var secure=(argc > 5) ? arg[5] : false;

   document.cookie=nom+"="+escape(valeur)+
      "; expires="+ladate+
       ((path==null) ? "" : ("; path="+path))+
      ((domain==null) ? "" : ("; domain="+domain))+
      ((secure==true) ? "; secure" : "");
}
function GetCookiemytictac (name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return getCookieValmytictac (j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break;
}
return null;
}
function getCookieValmytictac (offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
var date_init=new Date();
var test_cookie_value_mytictac;
var test_cookie_value_mytictac_nv;
var init_mytictac=1;
var init_mytictac_nv=1;
var acceptcookiemytictac;
acceptcookiemytictac = GetCookiemytictac('acceptcookiemytictac');
if(acceptcookiemytictac == null){
date=new Date;
date.setTime(date.getTime()+1000);
EcrireCookiemytictac('acceptcookiemytictac','ok','000');
}
acceptcookiemytictac = GetCookiemytictac('acceptcookiemytictac');

if (acceptcookiemytictac=='ok') {
test_cookie_value_mytictac = GetCookiemytictac('counter');
test_cookie_value_mytictac_nv = GetCookiemytictac('counter_nv');
   if(test_cookie_value_mytictac == null){
   init_mytictac=0;
   test_cookie_value_mytictac ='';
   EcrireCookiemytictac('counter',test_cookie_value_mytictac,'000');
   }
   if(test_cookie_value_mytictac_nv==null){
   test_cookie_value_mytictac_nv ='';
   EcrireCookiemytictac('counter_nv',test_cookie_value_mytictac_nv,'000');
   init_mytictac_nv=0;
   }
}
else {
var test_cookie_value_mytictac="no";
acceptcookiemytictac='no';
}



document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="150" height="150" id="movie">');
document.write('<param name="movie" wmode="transparent" value="http://www.mytictac.com/library/music/5.swf?compte=012e964f4ead286c2c51df8155b1f73c&p=002013&base=clock1&lg=en&u=1328102689">');
document.write('<param name="quality" value="high">');

document.write('<param name="wmode" value="transparent">');
document.write('<embed src="http://www.mytictac.com/library/music/5.swf?compte=012e964f4ead286c2c51df8155b1f73c&p=002013&base=clock1&lg=en&u=1328102689" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="150" height="150" wmode="transparent"  name="movie"></embed>');
document.write('</object>');

