<!--
/**********************************/

//MENU


function menuover(calque)
{ 
	var calque1 = calque + "1";
	var calque2 = calque + "2";
	document.getElementById(calque1).style.visibility='visible';
	document.getElementById(calque2).style.visibility='visible';
}

function menuout(calque) 
{
	var calque1 = calque + "1";
	var calque2 = calque + "2";
	document.getElementById(calque1).style.visibility='hidden';
	document.getElementById(calque2).style.visibility='hidden';
}

/**********************************/

// carte du monde

function newImage(arg) 
{
	if (document.images) 
	{
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() 
{
	if (document.images && (preloadFlag == true)) 
	{
		for (var i=0; i<changeImages.arguments.length; i+=2) 
		{
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;

function preloadImages() 
{
	if (document.images) 
	{
		map_1 = newImage("images/map_init.gif");
		map_2 = newImage("images/map_europe.gif");
		map_3 = newImage("images/map_asie.gif");
		map_4 = newImage("images/map_amerique.gif");
		map_5 = newImage("images/map_afrique.gif");
		map_6 = newImage("images/map_oceanie.gif");
		preloadFlag = true;
	}
}

/**********************************/

//LIEN

function changepage(ici)
{
		switch(ici) 
		{

		// de la home

		
		case "home":
		title('home','&nbsp;' ,'<IFRAME src="home.html" width="570" height="100%" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;

		case "aboutus":
		title('about&nbsp;us','&nbsp;' ,'<IFRAME src="about.html" width="577" height="300" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;
		
		case "contact":
		title('contact','&nbsp;' ,'<IFRAME src="contact.html" width="577" height="300" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;
		
		case "wireless":
		title('product','Wireless' ,'<IFRAME src="wireless.html" width="577" height="600" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;
		
		case "network":
		title('product','Network' ,'<IFRAME src="network.html" width="577" height="600" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;
		
		case "usb":
		title('product','USB' ,'<IFRAME src="usb.html" width="577" height="600" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;
		
		case "bag":
		title('product','Bag' ,'<IFRAME src="bag.html" width="577" height="100%" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;
		
		case "power":
		title('product','Power' ,'<IFRAME src="power.html" width="577" height="600" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;
		
		case "pccase":
		title('product','PC Case' ,'<IFRAME src="pccase.html" width="577" height="100%" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;
		
		case "link":
		title('product','Cables' ,'<IFRAME src="link.html" width="577" height="600" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;

		case "download":
		title('download','' ,'<IFRAME src="download.html" width="577" height="600" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;
		
		case "troubleshooting":
		title('troubleshooting','' ,'<IFRAME src="troubleshooting.html" width="577" height="600" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;
		
		case "techsupport":
		title('tech. support','' ,'<IFRAME src="techsupport.html" width="577" height="300" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;
		

		// de la map

		case "wtb_america":
		title('where to buy','in america' ,'<IFRAME src="wtb_america.html" width="577" height="300" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;
		
		case "wtb_europe":
		title('where to buy','in europe' ,'<IFRAME src="wtb_europe.html" width="577" height="700" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;
		
		case "wtb_africa":
		title('where to buy','in africa' ,'<IFRAME src="wtb_africa.html" width="577" height="300" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;
		
		case "wtb_asia":
		title('where to buy','in asia' ,'<IFRAME src="wtb_asia.html" width="577" height="300" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;
		
		case "wtb_oceania":
		title('where to buy','in oceania' ,'<IFRAME src="wtb_oceania.html" width="577" height="300" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;
		

		// des menus

		case "hotspot":
		title2('product','Wireless' ,'<IFRAME src="wireless/hotspot.html" width="577" height="550" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;

		case "accesspoint":
		title2('product','Wireless' ,'<IFRAME src="wireless/accesspoint.html" width="577" height="650" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;

		case "usbadapter":
		title2('product','Wireless' ,'<IFRAME src="wireless/usbadapter.html" width="577" height="550" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;

		case "wpcmciacard":
		title2('product','Wireless' ,'<IFRAME src="wireless/wpcmcia.html" width="577" height="700" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;

		case "clientbridge":
		title2('product','Wireless' ,'<IFRAME src="wireless/clientbridge.html" width="577" height="650" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;

		case "cardadapter":
		title2('product','Wireless' ,'<IFRAME src="wireless/cardadapter.html" width="577" height="550" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;

		case "pack":
		title2('product','Wireless' ,'<IFRAME src="wireless/pack.html" width="577" height="550" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;

		case "card":
		title2('product','network' ,'<IFRAME src="network/card.html" width="577" height="900" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;

		case "pcmcia":
		title2('product','network' ,'<IFRAME src="network/pcmcia.html" width="577" height="300" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;

		case "switch":
		title2('product','network' ,'<IFRAME src="network/switch.html" width="577" height="2000" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;

		case "router":
		title2('product','network' ,'<IFRAME src="network/router.html" width="577" height="400" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;

		case "networkadapter":
		title2('product','network' ,'<IFRAME src="network/networkadapter.html" width="577" height="300" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;

		case "kvm":
		title2('product','network' ,'<IFRAME src="network/kvm.html" width="577" height="300" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;

		case "cabinet":
		title2('product','network' ,'<IFRAME src="network/cabinet.html" width="577" height="300" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;

		case "flash":
		title2('product','USB' ,'<IFRAME src="usb/flash.html" width="577" height="550" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;

		case "pen":
		title2('product','USB' ,'<IFRAME src="usb/pen.html" width="577" height="300" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;

		case "mp3":
		title2('product','USB' ,'<IFRAME src="usb/mp3.html" width="577" height="650" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;
		
		case "cardreader":
		title2('product','USB' ,'<IFRAME src="usb/cardreader.html" width="577" height="300" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;

		case "camera":
		title2('product','USB' ,'<IFRAME src="usb/camera.html" width="577" height="300" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;

		case "case":
		title2('product','Bag' ,'<IFRAME src="bag/case.html" width="577" height="1750" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;

		case "multicase":
		title2('product','Bag' ,'<IFRAME src="bag/multicase.html" width="577" height="950" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;

		case "charger":
		title2('product','Power' ,'<IFRAME src="power/charger.html" width="577" height="600" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;

		case "organiser":
		title2('product','Power' ,'<IFRAME src="power/organiser.html" width="577" height="550" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;

		case "caseatx":
		title2('product','PC Case' ,'<IFRAME src="pccase/caseatx.html" width="577" height="950" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;
		
		case "screen":
		title2('product','Cables' ,'<IFRAME src="link/screen.html" width="577" height="800" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;
		
		case "computer":
		title2('product','Cables' ,'<IFRAME src="link/computer.html" width="577" height="1700" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;

		case "adapter":
		title2('product','Cables' ,'<IFRAME src="link/network.html" width="577" height="900" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;

		case "audio":
		title2('product','Cables' ,'<IFRAME src="link/audio.html" width="577" height="900" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;

		case "video":
		title2('product','Cables' ,'<IFRAME src="link/video.html" width="577" height="900" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;


		// du back
		
 		case "wireless2":
		title2('product','Wireless' ,'<IFRAME src="wireless.html" width="577" height="600" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;
		
		case "network2":
		title2('product','Network' ,'<IFRAME src="network.html" width="577" height="600" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;
		
		case "usb2":
		title2('product','USB' ,'<IFRAME src="usb.html" width="577" height="600" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;
		
		case "bag2":
		title2('product','Bag' ,'<IFRAME src="bag.html" width="577" height="100%" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;
		
		case "power2":
		title2('product','Power' ,'<IFRAME src="power.html" width="577" height="600" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;
		
		case "pccase2":
		title2('product','PC Case' ,'<IFRAME src="pccase.html" width="577" height="100%" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;
		
		case "link2":
		title2('product','Cables' ,'<IFRAME src="link.html" width="577" height="600" frameborder="0" marginheight="10" marginwidth="10" align="right"></IFRAME>');
		break;
	}
}


function title(first, second, page)
{
	document.getElementById('titre').innerHTML = first;
	document.getElementById('titrepage').innerHTML = second;
	document.getElementById('page').innerHTML = page;
}

function title2(first, second, page)
{
	window.top.document.getElementById('page').innerHTML = page;
}

/**********************************/

//pop-up image produit

function popup(chemin)
	{
	hauteur=400;
	largeur=400;
	var winl = (screen.width - largeur) / 2;
	var wint = (screen.height - hauteur) / 2;
    im = new Image;
    im.src = chemin;
	winprops = 'height='+hauteur+',width='+largeur+',top='+wint+',left='+winl+',toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=1';	
	html = '<HTML><HEAD><TITLE>deXlan</TITLE><META http-equiv="Content-Type" content="text/css; charset=iso-8859-1"><LINK rel="stylesheet" href="../style.css" type="text/css"></HEAD><BODY bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><TABLE width="100%" border="0" cellspacing="0" cellpadding="0" height="100%"><TR><TD align="center"><TABLE width="150" border="0" cellspacing="5" cellpadding="0"><TR><TD><IMG src="'+chemin+'" width="300" height="300"></TD></TR><TR><TD align="center" class="text"><BR><BR><A href="javascript:window.close();" class="menu">Close</A></TD></TR></TABLE></TD></TR></TABLE></BODY></HTML>';
	fen = window.open('','pop',winprops);
	if( self.focus ) fen.focus();
	fen.document.open();
	fen.document.write(html);
	fen.document.close();
	}; 

// -->