var netsc=false;
var ie5=false;
var ne7=false;
var fire1=false;
var ie55=false;
var noni_off='#000000';
var noni_on='#D42811';


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();




//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   = "DAEAB6";	// color name/code for cells on hover
	bgcolor      = "C0DB81";	// color name/code for the cells background

	background   = "";			// picture url in place of bgcolor
//font color
	fncolor      = "#909090";   // font color
	hfncolor     = "#D42811";   // 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    = ""; // url of arrow picture for submenus

//////////////////////////////////////////////////////
if(isIE45 || isNav6) { if(!background) { background=bgcolor; } else { background = "url("+background+")"; } }


function LayerSpecs(Left,Top,Width) { 



//cell background
	hovercolor   = "DAEAB6";	// color name/code for cells on hover
	bgcolor      = "C0DB81";	// color name/code for the cells background
	background="#C0DB81";
//font color
	fncolor      = "#000000";   // font color
	hfncolor     = "#D42811";   // 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='2' CELLSPACING='0' BORDER='0' BORDERCOLOR='"+border_color+"' STYLE='border:solid "+mborder+" "+mborder_color+"'>"
	 }
	 else
	 {
	   this.info +=  "<TABLE CELLPADDING='2' CELLSPACING='0' BORDER='"+menu_border+"' BORDERCOLOR='"+border_color+"' ><TR><TD>";
       this.info +=  "<TABLE BGCOLOR=#"+bgcolor+" WIDTH='+Width+' BORDER='"+cell_border+"' CELLPADDING='2' CELLSPACING='0' BORDERCOLOR='"+border_color+"'>"
     }


   

	for(i=3; i<arguments.length; i++) {
		if(isIE45) {this.info += "<TR><TD class='jus-de-noni-2-menu' WIDTH="+Width+" BGCOLOR='"+bgcolor+"' ONMOUSEOVER='this.bgColor=\""+hovercolor+"\";this.style.color=\""+hfncolor+"\"' ONMOUSEOUT='this.bgColor=\""+bgcolor+"\";this.style.color=\""+fncolor+"\"'><A  ONMOUSEOUT='this.bgColor=\"\";this.style.color=\""+fncolor+"\"' ONMOUSEOVER='this.bgColor=\""+hovercolor+"\";this.style.color=\""+hfncolor+"\"' class='jus-de-noni-2-menu' STYLE='CURSOR: HAND; text-decoration: none' HREF="+arguments[i++]+"<B>"+arguments[i]+"</B></A></TD></TR>";}
		else if (isNav6) { this.info += "<TR><TD class='jus-de-noni-2-menu' 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='jus-de-noni-2-menu' 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 ?'				
);



//Nos Produits Menu
Layer[2] =	new LayerSpecs(407,123,165,
			'"index.php?cPath=21" >', 'The vitality products',
			'"index.php?cPath=22" >', 'The beauty products',
			'"index.php?cPath=23">', 'The Animalia REX products',
			'"index.php?manufacturers_id=10">', 'All our products',
			'"produits_vrac.php">', 'Our bulk products',
			'"certificats.php">', 'Certificates – analysis '
			
);

//Noni Menu
Layer[3] =	new LayerSpecs(164,123,165,
			'"noni.php" >', 'What is  Noni ?',
			'"jus-de-noni.php" >', 'Demystifying Noni',
			'"noni-sante.php" >', 'The benefits of the Noni',
			'"index.php?cPath=24">', 'Our Noni products',
			'"noni-bio.php">', 'ORGANIC BIO Certification',
			'"faq.php">', 'Noni FAQ',
			'"noni-vrac.php">', 'Bulk Noni'
);


//Tamanu Menu
Layer[4] =	new LayerSpecs(223,123,165,
			'"tamanu.php" >', 'What is  Tamanu oil ?',
			'"tamanu-sante.php" >', 'The benefits of  Tamanu oil',
			'"index.php?cPath=25">', 'Our Tamanu products',
			'"tamanu-vrac.php">', 'Bulk Tamanu'	
);

//Monoï Menu
Layer[5] =	new LayerSpecs(289,123,185,
			'"monoi.php" >', 'What is Monoi de Tahiti ?',
			'"monoi-sante.php" >', 'The benefits of  Monoi de Tahiti ',
			'"index.php?cPath=26">', 'Our Monoi deTahiti  products',
			'"monoi-analyses.php">', 'Technical data',				
			'"monoi-vrac.php">', 'Bulk Monoi' 	
);




////////////////////////////////////////////////////////////////

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





