var netsc=false;
var ie5=false;
var ne7=false;
var fire1=false;
var ie55=false;


function testnavig(){
version=0;
if(navigator.appName ==  "Netscape")
{
netsc = true;
if (navigator.userAgent.indexOf("Netscape")!=-1){
navnetscape = true;
temp=navigator.userAgent.split("Netscape/");
version=parseFloat(temp[1]);
if (version>=7.0)
net7 = true;
}
if (navigator.userAgent.indexOf("Firefox")!=-1){
navfirefox = true;
temp=navigator.userAgent.split("Firefox/");
version=parseFloat(temp[1]);
if (version>=1.0)
fire1 = true;
}
}
if (navigator.appVersion.indexOf("MSIE")!=-1){
navie = true;
temp=navigator.appVersion.split("MSIE");
version=parseFloat(temp[1])
if (version>=5.5)
{
ie55 = true;
}
else
ie5 = true;
}
else
{
netsc = true;
}
}


testnavig();

var photos=new Array()
var photoslink=new Array()
var numeffet = 100;
var which=0;
var imName;




photos[0]="images/en/carrier-strategy-services-off.gif"
photos[2]="images/en/carrier-strategy-about-off.gif"
photos[4]="images/en/carrier-strategy-glossary-off.gif"
photos[6]="images/en/carrier-strategy-contact-off.gif"
photos[8]="images/en/carrier-strategy-extranet-off.gif"



photos[1]="images/en/carrier-strategy-services-on.gif"
photos[3]="images/en/carrier-strategy-about-on.gif"
photos[5]="images/en/carrier-strategy-glossary-on.gif"
photos[7]="images/en/carrier-strategy-contact-on.gif"
photos[9]="images/en/carrier-strategy-extranet-on.gif"


function changeimage(numimage, imNom, numeff){
which = numimage;
imName = imNom;
numeffet = numeff;
if (numeff != 1000)
{
applyeffect();
document.images[imNom].src=photos[which];
playeffect();
keeptrack();
}
else
{
document.images[imNom].src=photos[which];
}

}

function playeffect(){
if (document.all)
document.images[imName].filters.revealTrans.play()
}



function keeptrack(){
window.status="Carrier Consult "
}








//Object detection
var isIE45= document.all;
var isNav6= 0;
var isNav4= document.layers;
var messageattente="Here you will find further information soon, meanwhile, please contact us :\n\nEmail: info@carrierconsult.com. \nPhone: + 33 8 71 70 66 80. \nFax: + 33 1 70 99 33 58.";

if (document.getElementById && !isIE45)
{  isNav6=true; }

//center page
var ww=800;
var w_offset=0;

if(!isIE45)
{ww = window.innerWidth;}
else
{ww= document.body.clientWidth;
}

// Subtract from ww(window width) the width of your web page
// then divide by two to get the offset necessary to center
// the menu.  Make sure to change 600 to equal the width of
// your web page.avant 300.
w_offset = (ww - 800)/2 ;

//if(ww<400) { w_offset = 112; }


//Menu
No3 = (parseInt(navigator.appVersion) > 3) ? 1:0;
layer = (isIE45 && No3) ? "document.all['L'+menu].style" : (isNav4 && No3) ? "document.layers['L'+menu]" :(isNav6 && No3) ? "document.getElementById('L'+menu).style" : 0;


var timer;

function Show() { if(layer) {
	if(timer) clearTimeout(timer);
	for(menu=0; menu<Layer.length; menu++) { 
	if(Layer[menu]) { eval(layer).visibility = "hidden"; }
	if (mservices != 1)
	changeimage(0, 'services', 1000);
	if (mabout != 1)
	changeimage(2, 'about', 1000);
	}
	for(i=0; i<arguments.length; i++) { menu=arguments[i]; eval(layer).visibility = "visible"; eval(layer).zIndex = 2;}
} 
}
function Hide() { timer = setTimeout("Show()", 700); }



//cell background
	hovercolor   = "F6F4FE";	// color name/code for cells on hover
	bgcolor      = "F6F4FE";	// color name/code for the cells background

	background   = "";			// picture url in place of bgcolor
//font color
	fncolor      = "#909090";   // font color
	hfncolor     = "#B588FF";   // font color on hover
//main table border
	mborder  = 0;			       // size of border around drop menus
	mborder_color = "#FFFFFF";  //	color of border around drop menus
//cell tables
	cell_border = 0;            //size of border around cells
	menu_border = 0;            //size of border around cells

	border_color = "#FFFFFF";   //color of border around cells
//misc
	arrow_pic    = "http://www.oznet.ksu.edu/plantpath/images/tri.gif"; // url of arrow picture for submenus

//////////////////////////////////////////////////////
if(isIE45 || isNav6) { if(!background) { background=bgcolor; } else { background = "url("+background+")"; } }


function LayerSpecs(Left,Top,Width) { 


   if (Width == 220)//services
   {
//cell background
	hovercolor   = "F6F4FE";	// color name/code for cells on hover
	bgcolor      = "F6F4FE";	// color name/code for the cells background
	background="#F6F4FE";
//font color
	fncolor      = "#909090";   // font color
	hfncolor     = "#B588FF";   // font color on hover   
   }
   else
   {
//cell background
	hovercolor   = "FBEAC6";	// color name/code for cells on hover
	bgcolor      = "FBEAC6";	// color name/code for the cells background
	background="#FBEAC6";
//font color
	fncolor      = "#909090";   // font color
	hfncolor     = "#F1AA1B";   // font color on hover	   
   }

   

	if(No3) {
	if(isIE45) { Top+=7; Left+=2; Width-=6; }
	this.left  = Left + w_offset;
	this.top   = Top;
	this.info  = "";
	


	var t = Top;
	if (isNav6)
    { this.info +=  "<TABLE BORDER='"+mborder+"' BORDERCOLOR='"+mborder_color+"'>"
	   this.info +=  "<TABLE BGCOLOR=#"+bgcolor+" WIDTH="+Width+" CELLPADDING='4' CELLSPACING='2' BORDER='0' BORDERCOLOR='"+border_color+"' STYLE='border:solid "+mborder+" "+mborder_color+"'>"
	 }
	 else
	 {
	   this.info +=  "<TABLE CELLPADDING='0' CELLSPACING='0' BORDER='"+menu_border+"' BORDERCOLOR='"+border_color+"' ><TR><TD>";
       this.info +=  "<TABLE BGCOLOR=#"+bgcolor+" WIDTH='+Width+' BORDER='"+cell_border+"' CELLPADDING='4' CELLSPACING='2' BORDERCOLOR='"+border_color+"'>"
     }


   

	for(i=3; i<arguments.length; i++) {
		if(isIE45) {this.info += "<TR><TD class='text01menu' WIDTH="+Width+" BGCOLOR='"+bgcolor+"' ONMOUSEOVER='this.bgColor=\""+hovercolor+"\";this.style.color=\""+hfncolor+"\"' ONMOUSEOUT='this.bgColor=\""+hovercolor+"\";this.style.color=\""+fncolor+"\"'><A  ONMOUSEOUT='this.bgColor=\"\";this.style.color=\""+fncolor+"\"' ONMOUSEOVER='this.bgColor=\""+hovercolor+"\";this.style.color=\""+hfncolor+"\"' class='text01menu' STYLE='CURSOR: HAND; text-decoration: none' HREF="+arguments[i++]+"<B>"+arguments[i]+"</B></A></TD></TR>";}
		else if (isNav6) {this.info += "<TR><TD class='text01menu' WIDTH="+Width+" BGCOLOR='"+bgcolor+"' STYLE='CURSOR: HAND; text-decoration: none; COLOR:"+fncolor+"; FONT-SIZE: 8pt; FONT-FAMILY: Tahoma, verdana, arial, helvetica' ONMOUSEOVER='this.bgColor=\""+hovercolor+"\";this.style.color=\""+hfncolor+"\"' ONMOUSEOUT='this.bgColor=\""+bgcolor+"\";this.style.color=\""+fncolor+"\"'><B><A ONMOUSEOVER='this.bgColor=\""+hovercolor+"\";this.style.color=\""+hfncolor+"\"' ONMOUSEOUT='this.bgColor=\""+bgcolor+"\";this.style.color=\""+fncolor+"\"' class='text01menu' STYLE='COLOR: "+fncolor+"' HREF="+arguments[i++]+""+arguments[i]+"</A></B></TD></TR>";}

		else {this.info += "<TR><TD><ILAYER><LAYER ONMOUSEOVER='this.bgColor=\""+hovercolor+"\"; this.bgColor=\""+hovercolor+"\"' ONMOUSEOUT='this.bgColor=\""+bgcolor+"\"' WIDTH="+Width+"><B><A HREF="+arguments[i++]+"<FONT COLOR="+fncolor+">"+arguments[i]+"</A></B> </LAYER></ILAYER></TD></TR>"; }
		t = t + 20;
	}

	this.info += "</TABLE>"
	this.info += "</TABLE>"
} }


Layer = new Array();
arrow = "<IMG BORDER=0 SRC='"+arrow_pic+"'  ALT=''>";

//////////////////////////////////////////////
/*	Create Your layers below by typing:
	 Layer[incrementing number] = new LayerSpecs( Left Position, Top Position, Width,
	 													 ' "Link URL" onMouseOver="Show(#,#,#)">',
	 													 'Link Name' );
   	The order of parameters for the show function as follows:
	Show(	Layer Number to Open,
			Current Layer,
			Any Layers Opened before the current layer)

	Keep in mind punctuation is very important!!
*/

//Home Menu left top width
Layer[1] =	new LayerSpecs(100,145,130,
				'"sharewares.html" >', //Link URL
				'Catalogue',   																 //Link Name-Don't forget comma
				'"mediamixer.html">', 								 //Link URL
				'MediaMixer',		    															 //Link Name-Last parameter No Comma
				'"twinplayer.html" >', 								 //Link URL
				'TwinPlayer',
				'"webmixer.html">', 								 //Link URL
				'WebMixer',
				'"http://www.cdromstudio.com/fr/webstory.html" >', 								 //Link URL
				'WebStory',
				'"sharewares-differences.html">', 								 //Link URL
				'Lequel choisir ?'				
);



//About us Menu
Layer[2] =	new LayerSpecs(368,127,100,
			'"management-team.html" >', 'Management team',
			'"track-record.html" >', 'Track record',
			'"career.html">', 'Career'
);

//Services Menu
Layer[3] =	new LayerSpecs(274,127,220,
				'"network-planning.html" >', //Link URL
				'Network Planning & Route Optimisation',   																 //Link Name-Don't forget comma
				'"carrier-strategy.html">', 								 //Link URL
				'Carrier Strategy & Regulations',		    															 //Link Name-Last parameter No Comma
				'"market-entry.html" >', 								 //Link URL
				'Market Entry & Sales Strategy',
				'"carrier-wholesale.html">', 								 //Link URL
				'Carrier Wholesale Services',
				'"carrier-procurement.html" >', 								 //Link URL
				'Carrier Procurement & Bid Management',
				'"carrier-hr-services.html">', 								 //Link URL
				'Carrier HR Services & Training',
				'"carrier-investment.html">', 								 //Link URL
				'Carrier Investment Services',
				'"specific-solutions.html" >', 								 //Link URL
				'Specific Solutions'				
);



////////////////////////////////////////////////////////////////

j = (Layer[0]) ? 0:1;

for(i=j; i<Layer.length; i++) {
	if(isIE45 && No3 || isNav6) { document.write("<SPAN ONMOUSEOVER='clearTimeout(timer)' ONMOUSEOVER='Hide("+i+")' ID='L"+i+"' STYLE='POSITION:ABSOLUTE; VISIBILITY:HIDDEN; BACKGROUND:"+background+"; TOP:"+Layer[i].top+"; LEFT:"+Layer[i].left+";'>"+Layer[i].info+"</SPAN>"); }
	else if(isNav4 && No3) { document.write("<LAYER ONMOUSEOUT='clearTimeout(timer)' ONMOUSEOUT='Hide("+i+")' ID='L"+i+"' POSITION=ABSOLUTE VISIBILITY=HIDDEN BGCOLOR='"+bgcolor+"' BACKGROUND='"+background+"' TOP="+Layer[i].top+" LEFT="+Layer[i].left+">"+Layer[i].info+"</LAYER>"); }
}

function regenerate(){
window.location.reload()
}
function regenerate2(){
setTimeout("window.onresize=regenerate",450)
}
window.onload=regenerate2





