var fr=0; 
var oT="tS().getHours()+'h'+lZ(tS().getMinutes())+'m '+lZ(tS().getSeconds())+'s'"; 
var today = new Date;
var tableau="";
var ns4=document.layers;
var ie4=document.all;
var ns6=document.getElementById&&!document.all;
var Objet="";
var CouleurFond="#E4FFCA";
var CouleurFond2="#D4EFBA";

var CouleurOver="#AAAAFF";//"#FFFFFF";
var CouleurBack="#EEEEFF";//"white";

var celwidth="150";
var result="";
var urlpage="";
var hidetime;
var mover="0";
var flecheM=new Array("","","","","");
var fleche0=new Array("","","","","");
var fleche1=new Array("","","","","");
var fleche2=new Array("","","","","");
var fleche3=new Array("","","","","");
var fleche4=new Array("","","","","");

var selection='<img src="scripts/case2.gif\" border=\"0\">&nbsp;';
var selectionS='<img src="scripts/case.gif\" border=\"0\">&nbsp;';

var photoback="";
var photobacklist=new Array("scripts/cccam_ban.jpg","scripts/cccam_ban2.jpg","scripts/cccam_ban3.jpg","scripts/cccam_ban4.jpg","scripts/cccam_ban5.jpg");

var menuTitles=new Array("Accueil","CC-CAM","MultiCam","CCPlayer","Antivol");
var menuLinks=new Array("index.html","cccam.html","multicam.html","ccplayer.html","antivol.html");

var sousmenuTitles0=new Array("&nbsp;","&nbsp;","Page d\'accueil","Contact");
var sousmenuLink0=new Array("&nbsp;","&nbsp;","index.html","index_contact.html");

var sousmenuTitles1=new Array("Page de CC-CAM","Notice de CC-CAM","Details","Achat");
var sousmenuLink1=new Array("cccam.html","cccam_notice1.html","cccam_detail.html","cccam_achat.html");

var sousmenuTitles2=new Array("Page de MultiCam","Notice de Multicam","MultiCam details","Achat");
var sousmenuLink2=new Array("multicam.html","multicam_notice1.html","multicam_detail.html","multicam_achat.html");

var sousmenuTitles3=new Array("&nbsp;","&nbsp;","Page de CCPlayer","Notice de CCPlayer");
var sousmenuLink3=new Array("&nbsp;","&nbsp;","ccplayer.html","ccplayer_notice.html");



var sousmenuTitles4=new Array("&nbsp;","Page de Antivol","Notice de Antivol","Achat");
var sousmenuLink4=new Array("&nbsp;","antivol.html","antivol_notice.html","antivol_achat.html");




var str="";
//33



///////////////////////////////////////////////////////////////
function isMenuLinkselected(lien, url)
{
var posA;
var posB;
var posC;
var chaine="";

posA=lien.lastIndexOf("/",lien.length)+1;
posB=lien.lastIndexOf("_",lien.length);
posC=lien.lastIndexOf(".html",lien.length)+5;
if (posB==-1){posB=posC}
chaine=lien.substring(posA,posB);

//document.write(chaine+"</br>");


if (url.search(chaine)!=-1)
{
return 1;
}
else
{
return -1;
}

}


function isLinkselected(lien, url)
{
var posA;
var posB;
var posC;
var chaine="";
var chaineU="";
posA=lien.lastIndexOf("/",lien.length)+1;
posB=lien.lastIndexOf(".html",lien.length)-1;

chaine=lien.substring(posA,posB);
chaineU=url.substring(0,url.length-6);

//document.write(chaine+"</br>");
if (chaine==chaineU)
{
//document.write(lien.match(bb)+"</br>");
return 1;
}
else
{
return -1;
}

}
///////////////////////////////////////////////////////////////



//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function navmenu() {
//var tmp="";
//tmp=(document.location.href);
//urlpage=tmp.substring(0,tmp.length-4);
urlpage=(document.location.href);
if (urlpage=='http://www.ccdeveloppement.com/'){urlpage="http://www.ccdeveloppement.com/index.html"}
//document.write(urlpage);
//document.write(menuLinks[1]);
//document.write(isLinkselected(urlpage,menuLinks[1]));
// <img src='scripts/ccdev.gif' border='0' class='cadrephoto' style='filter:progid:DXImageTransform.Microsoft.Pixelate(MaxSquare=15,Duration=0.9)' onLoad='run_filter(this)' onMouseOver='run_filter(this)'>



//////////// tableau encadrement
tableau+=("<table cellpadding=\"0\" cellspacing=\"0\" width=\"960\" height=\"290\" class=\"tabgeneral\">");
tableau+=("<tr>");
tableau+=("<td valign=\"top\">");
tableau+=("<p style=\"line-height:100%; margin-top:0; margin-bottom:0;\" align=\"right\"><img src=\"scripts/separation.jpg\" align=\"left\" border=\"0\" hspace=\"0\" vspace=\"0\"><font face=\"Arial\" color=\"black\" size=\"1\"><a href=\"index.html\">ACCUEIL</a>&nbsp;|&nbsp;<a href=\"index_contact.html\">CONTACT</a></font></p>");
tableau+=("<p style=\"line-height:100%; margin-top:0; margin-bottom:0;\" align=\"right\" class=\"date\"><img src='scripts/ccdeveloppement.gif' border='0' style='filter:progid:DXImageTransform.Microsoft.Pixelate(MaxSquare=25,Duration=0.9)' onLoad='run_filter(this)' onMouseOver='run_filter(this)' align=\"left\"><script>date();</script><script>dT();</script></p>");
//tableau+=("<p style=\"line-height:100%; margin-top:0; margin-bottom:0;\"><font face=\"Arial\" color=\"#999999\">CCDeveloppement.com</font></p>");
//tableau+=("<p style=\"line-height:100%; margin-top:0; margin-bottom:0;\">&nbsp;</p>");
//tableau+=("<p align=\"right\" style=\"line-height:100%; margin-top:0; margin-bottom:0;\" class=\"date\"><script>date();</script><script>dT();</script></p>");
tableau+=("</td>");
tableau+=("</tr>");
tableau+=("</table>");//fin tableau genearl

//////////// tableau encadrement



//////////// tableau de la photo
	for (i=0; i<menuLinks.length; i++)
	{
	result=isMenuLinkselected(urlpage,menuLinks[i]);
	if (result!=-1)	{photoback=photobacklist[i]}
	}

tableau+=("<table cellpadding=\"0\" cellspacing=\"0\" width=\"650\" class=\"baniere\">");
tableau+=("<tr>");
tableau+=("<td width=\"650\" height=\"200\" bgcolor=\"white\" background=\""+photoback+"\">&nbsp;");
tableau+=("</td>");
tableau+=("</tr>");
tableau+=("</table>");
//////////// 


//////////// fond menu/sousmenu
tableau+=("<table cellpadding=\"0\" cellspacing=\"0\" width=\"300\" class=\"tabmenu\" background=\"scripts/design.jpg\">");
tableau+=("<tr><td width=\"150\" height=\"200\" valign=\"top\"><p><span style=\"font-size:12pt;\"><b><font face=\"Arial\" color=\"white\"></font></b></span></p>");
tableau+=("</td>");
tableau+=("<td width=\"150\" height=\"200\" valign=\"top\"><p><span style=\"font-size:12pt;\"><b><font face=\"Arial\" color=\"white\"></font></b></span></p>");
tableau+=("</td>");
tableau+=("</tr>");
tableau+=("</table>");//fin tableau



//////////// tableau MENU
	tableau+=("<table class=\"menu\">");
	for (i=0; i<menuLinks.length; i++)
	{
	result=isMenuLinkselected(urlpage,menuLinks[i]);
	if (result!=-1)	{flecheM[i]=selection}
	tableau+=("<tr><td height=\"18\"><p style=\"line-height:100%; margin-top:0; margin-bottom:0;\"><a href='"+menuLinks[i]+"'\" class=\"link1\" id='idm"+i+"' onMouseOver=MouseOver('idm"+i+"') onMouseOut=MouseOut('idm"+i+"')>"+flecheM[i]+menuTitles[i]+"</a></p></td></tr>");
	}
	tableau+=("</table>");



//////////// tableau SOUS MENU
	tableau+=("<table class=\"sousmenu\">");
	for (i=0; i<sousmenuLink0.length; i++)
	{
		if (sousmenuLink0[i]=="&nbsp;")
		{
		tableau+=("<tr><td id='id0"+i+"' height=\"18\"><p style=\"line-height:100%; margin-top:0; margin-bottom:0;\">&nbsp;</p></td></tr>");
		}
		else
		{
		if (isLinkselected(urlpage,sousmenuLink0[i])!=-1) {fleche0[i]=selectionS}
		tableau+=("<tr><td height=\"18\"><p style=\"line-height:100%; margin-top:0; margin-bottom:0;\"><a href='"+sousmenuLink0[i]+"'\" class=\"link1\" id='id0"+i+"' onMouseOver=MouseOver('id0"+i+"') onMouseOut=MouseOut('id0"+i+"')>"+fleche0[i]+sousmenuTitles0[i]+"</a></p></td></tr>");
		}
	}
	tableau+=("</table>");
	///////////////////////////

	tableau+=("<table class=\"sousmenu\">");
	for (i=0; i<sousmenuLink1.length; i++)
	{
		if (sousmenuLink1[i]=="&nbsp;")
		{
		tableau+=("<tr><td id='id1"+i+"' height=\"18\"><p style=\"line-height:100%; margin-top:0; margin-bottom:0;\">&nbsp;</p></td></tr>");
		}
		else
		{
		if (isLinkselected(urlpage,sousmenuLink1[i])!=-1) {fleche1[i]=selectionS}
		tableau+=("<tr><td height=\"18\"><p style=\"line-height:100%; margin-top:0; margin-bottom:0;\"><a href='"+sousmenuLink1[i]+"'\" class=\"link1\" id='id1"+i+"' onMouseOver=MouseOver('id1"+i+"') onMouseOut=MouseOut('id1"+i+"')>"+fleche1[i]+sousmenuTitles1[i]+"</a></p></td></tr>");
		}
	}
	tableau+=("</table>");
	///////////////////////////

	tableau+=("<table class=\"sousmenu\">");
	for (i=0; i<sousmenuLink2.length; i++)
	{
		if (sousmenuLink2[i]=="&nbsp;")
		{
		tableau+=("<tr><td id='id2"+i+"' height=\"18\"><p style=\"line-height:100%; margin-top:0; margin-bottom:0;\">&nbsp;</p></td></tr>");
		}
		else
		{
		if (isLinkselected(urlpage,sousmenuLink2[i])!=-1) {fleche2[i]=selectionS}
		tableau+=("<tr><td height=\"18\"><p style=\"line-height:100%; margin-top:0; margin-bottom:0;\"><a href='"+sousmenuLink2[i]+"'\" class=\"link1\" id='id2"+i+"' onMouseOver=MouseOver('id2"+i+"') onMouseOut=MouseOut('id2"+i+"')>"+fleche2[i]+sousmenuTitles2[i]+"</a></p></td></tr>");
		}	
	}
	tableau+=("</table>");
	///////////////////////////

	tableau+=("<table class=\"sousmenu\">");
	for (i=0; i<sousmenuLink3.length; i++)
	{
		if (sousmenuLink3[i]=="&nbsp;")
		{
		tableau+=("<tr><td id='id3"+i+"' height=\"18\"><p style=\"line-height:100%; margin-top:0; margin-bottom:0;\">&nbsp;</p></td></tr>");
		}
		else
		{
		if (isLinkselected(urlpage,sousmenuLink3[i])!=-1) {fleche3[i]=selectionS}
		tableau+=("<tr><td height=\"18\"><p style=\"line-height:100%; margin-top:0; margin-bottom:0;\"><a href='"+sousmenuLink3[i]+"'\" class=\"link1\" id='id3"+i+"' onMouseOver=MouseOver('id3"+i+"') onMouseOut=MouseOut('id3"+i+"')>"+fleche3[i]+sousmenuTitles3[i]+"</a></p></td></tr>");
		}
	}
	tableau+=("</table>");




	///////////////////////////

	tableau+=("<table class=\"sousmenu\">");
	for (i=0; i<sousmenuLink4.length; i++)
	{
		if (sousmenuLink4[i]=="&nbsp;")
		{
		tableau+=("<tr><td id='id4"+i+"' height=\"18\"><p style=\"line-height:100%; margin-top:0; margin-bottom:0;\">&nbsp;</p></td></tr>");
		}
		else
		{
		if (isLinkselected(urlpage,sousmenuLink4[i])!=-1) {fleche4[i]=selectionS}
		tableau+=("<tr><td height=\"18\"><p style=\"line-height:100%; margin-top:0; margin-bottom:0;\"><a href='"+sousmenuLink4[i]+"'\" class=\"link1\" id='id4"+i+"' onMouseOver=MouseOver('id4"+i+"') onMouseOut=MouseOut('id4"+i+"')>"+fleche4[i]+sousmenuTitles4[i]+"</a></p></td></tr>");
		}
	}
	tableau+=("</table>");

////


document.write(tableau);

initpage();

}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


///////////////////////////////////////////////////////////////
function initpage()
{
if (mover=="0")
{
for (i=0; i<menuLinks.length; i++)
{
result=isMenuLinkselected(urlpage,menuLinks[i]);
	if (result!=-1)
	{
	reset('idm'+i);
	}
}
}
}
///////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////
function reset(nObjet)
{

if (nObjet=="idm0")
{
Aff_Hide('id0');
}

if (nObjet=="idm1")
{
Aff_Hide('id1');
}

if (nObjet=="idm2")
{
Aff_Hide('id2');
}

if (nObjet=="idm3")
{
Aff_Hide('id3');
}

if (nObjet=="idm4")
{
Aff_Hide('id4');
}



//document.getElementById(nObjet).visibility='block';
}
////////////////////////////////////////////////////////////////



///////////////////////////////////////////////////////////////
function MouseOver(nObjet)
{
document.getElementById(nObjet).style.color=CouleurOver;
mover="1";
if (nObjet=="idm0")
{
Aff_Hide('id0');
}

if (nObjet=="idm1")
{
Aff_Hide('id1');
}

if (nObjet=="idm2")
{
Aff_Hide('id2');
}

if (nObjet=="idm3")
{
Aff_Hide('id3');
}

if (nObjet=="idm4")
{
Aff_Hide('id4');
}

//document.getElementById(nObjet).visibility='block';
}
////////////////////////////////////////////////////////////////



////////////////////////////////////////////////////////////////
function Aff_Hide(hideObjet)
{

	str=left(hideObjet,3);
	//document.getElementById("formtext1").value=hideObjet+str;
	for (i=0; i<sousmenuLink0.length; i++)
	{
		if (str!='id0') {
		document.getElementById('id0'+i).style.display="none";
		}else{
		document.getElementById('id0'+i).style.display="block";
		}
	}
	for (i=0; i<sousmenuLink1.length; i++)
		{
		if (str!='id1') {
		document.getElementById('id1'+i).style.display="none";
		}else{
		document.getElementById('id1'+i).style.display="block";
		}
	}
	for (i=0; i<sousmenuLink2.length; i++)
		{
		if (str!='id2') {
		document.getElementById('id2'+i).style.display="none";
		}else{
		document.getElementById('id2'+i).style.display="block";
		}
	}
	for (i=0; i<sousmenuLink3.length; i++)
	{
		if (str!='id3') {
		document.getElementById('id3'+i).style.display="none";
		}else{
		document.getElementById('id3'+i).style.display="block";
		}

	}

	for (i=0; i<sousmenuLink4.length; i++)
	{
		if (str!='id4') {
		document.getElementById('id4'+i).style.display="none";
		}else{
		document.getElementById('id4'+i).style.display="block";
		}

	}


}
////////////////////////////////////////////////////////////////



///////////////////////////////////////////////////////////////
function MouseOut(nObjet) {
document.getElementById(nObjet).style.color=CouleurBack;
mover="0";
window.clearTimeout(hidetime);
hidetime=setTimeout("initpage()",2000);
}
////////////////////////////////////////////////////////////////


////////////////////////////////////////////////////////////////
function left(str,nbr) {
     //return str.substr(1, str.length-nbr);
	return str.substr(0, 3);
}
////////////////////////////////////////////////////////////////





























////////////////////////////////////////////////////////////////
function run_filter(obj){	
	if(obj && obj.filters[0]){
		obj.filters[0].apply();
		obj.visibility="visible";
		obj.filters[0].play();
	}
}
////////////////////////////////////////////////////////////////




////////////////////////////////////////////////////////////////
function VersionNavigateur(Netscape, Explorer) {
  if ((navigator.appVersion.substring(0,3) >= Netscape && navigator.appName == 'Netscape') ||      
      (navigator.appVersion.substring(0,3) >= Explorer && navigator.appName.substring(0,9) == 'Microsoft'))
    return true;
else return false;
}
////////////////////////////////////////////////////////////////




////////////////////////////////////////////////////////////////
function Semaine(){
           this[0] = "Dimanche";  this[1] = "Lundi";
           this[2] = "Mardi";     this[3] = "Mercredi";
           this[4] = "Jeudi";     this[5] = "Vendredi";
           this[6] = "Samedi";
           }
////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////
function Mois(){
           this[0] = "Janvier";    this[1] = "F&eacute;vrier";
           this[2] = "Mars";       this[3] = "Avril";
           this[4] = "Mai";        this[5] = "Juin";
           this[6] = "Juillet";    this[7] = "Ao&ucirc;t";
           this[8] = "Septembre";  this[9] = "Octobre";
           this[10] = "Novembre";  this[11] = "D&eacute;cembre";
           }
////////////////////////////////////////////////////////////////



////////////////////////////////////////////////////////////////
function date(){
        var semaine=new Semaine();
        var mois=new Mois();
        var myDate=new Date();
        annee = today.getFullYear();
  

        var result=semaine[myDate.getDay()]+" "+myDate.getDate()+" "+mois[myDate.getMonth()]+" "+annee;
        document.writeln(result);
    }
        function openWin( windowURL, windowName, windowFeatures ) { 
                return window.open( windowURL, windowName, windowFeatures ) ; 
        }
////////////////////////////////////////////////////////////////



////////////////////////////////////////////////////////////////
function tS(){ 
    x=new Date(); 
    x.setTime(x.getTime()); 
    return x; 
}
////////////////////////////////////////////////////////////////



//////////////////////////////////////////////////////////////// 
function lZ(x){ 
    return (x>9)?x:'0'+x; 
} 
////////////////////////////////////////////////////////////////



////////////////////////////////////////////////////////////////
function dT(){ 
    if(fr==0){ 
        fr=1; 
        document.write(" " + '<span id="tP">'+eval(oT)+'</span>'); 
    } 
    document.getElementById("tP").innerHTML =  eval(oT); 
    setTimeout('dT()',1000); 
} 
////////////////////////////////////////////////////////////////



function copyright() {
var txtcopy="";
txtcopy="<p style=\"line-height:100%; margin-top:0; margin-bottom:0;\"><font face=\"Arial\"><span style=\"font-size:8pt;\">Copyright "+String.fromCharCode(169)+" 2005-2010 Rambeau Christophe. Tous droits r"+String.fromCharCode(233)+"serv"+String.fromCharCode(233)+"s.</span></font></p>";
document.write(txtcopy);
}
