﻿function change_menu(id)
{
    var ifr_detail = document.getElementById('iframe_detail');		
	ifr_detail.src = "";
	
	var ifr_product = document.getElementById('iframe_result');
	ifr_product.src = "";
	
	var visitsite = document.getElementById('visit_site');
	visitsite.innerHTML = "";
	
	var id_label = document.getElementById(id);		
				
	var list_label = new Array();
	list_label[0] = document.getElementById('label_breitling');	
	list_label[1] = document.getElementById('label_charr');	
	list_label[2] = document.getElementById('label_cyma');	
	list_label[3] = document.getElementById('label_dior');		
	list_label[4] = document.getElementById('label_elini');	
	
	list_label[5] = document.getElementById('label_esq');		
	list_label[6] = document.getElementById('label_hamilton');		
	list_label[7] = document.getElementById('label_maurice');
	list_label[8] = document.getElementById('label_mich');	
	list_label[9] = document.getElementById('label_oris');
	
	list_label[10] = document.getElementById('label_raymond');	
	list_label[11] = document.getElementById('label_tagheuer');			
	list_label[12] = document.getElementById('label_victori');		
	list_label[13] = document.getElementById('label_zenith');		
	
	    var tit_img = new Array();
	    tit_img[0] = document.getElementById('tit_breitling');	
		tit_img[1] = document.getElementById('tit_charr');	
	    tit_img[2] = document.getElementById('tit_cyma');	
	    tit_img[3] = document.getElementById('tit_dior');		
	    tit_img[4] = document.getElementById('tit_elini');	
    	
	    tit_img[5] = document.getElementById('tit_esq');		
	    tit_img[6] = document.getElementById('tit_hamilton');		
	    tit_img[7] = document.getElementById('tit_maurice');
	    tit_img[8] = document.getElementById('tit_mich');	
	    tit_img[9] = document.getElementById('tit_oris');
    	
	    tit_img[10] = document.getElementById('tit_raymond');	
	    tit_img[11] = document.getElementById('tit_tagheuer');			
	    tit_img[12] = document.getElementById('tit_victori');		
	    tit_img[13] = document.getElementById('tit_zenith');		    
	
	var div_submenu = new Array();
	div_submenu[0] = document.getElementById('div_breitling');	
	div_submenu[1] = document.getElementById('div_charr');	
	div_submenu[2] = document.getElementById('div_cyma');	
	div_submenu[3] = document.getElementById('div_dior');		
	div_submenu[4] = document.getElementById('div_elini');	
	
	div_submenu[5] = document.getElementById('div_esq');		
	div_submenu[6] = document.getElementById('div_hamilton');		
	div_submenu[7] = document.getElementById('div_maurice');
	div_submenu[8] = document.getElementById('div_mich');	
	div_submenu[9] = document.getElementById('div_oris');
	
	div_submenu[10] = document.getElementById('div_raymond');		
	div_submenu[11] = document.getElementById('div_tagheuer');		
	div_submenu[12] = document.getElementById('div_victori');		
	div_submenu[13] = document.getElementById('div_zenith');		
	
	    var sitelink = new Array();
		sitelink[0] = "<a href='http://www.breitling.com/en/intro.php' target='_blank'>visit Breitling</a>";	
	    sitelink[1] = "<a href='http://www.charriol.com/' target='_blank'>visit Charriol</a>";	
	    sitelink[2] = "<a href='http://www.cymawatch.com/' target='_blank'>visit CYMA</a>";
	    sitelink[3] = "<a href='http://www.dior.com/' target='_blank'>visit Dior</a>";
	    sitelink[4] = "<a href='http://www.elini.com/' target='_blank'>visit Elini</a>";
    	
	    sitelink[5] = "<a href='http://www.esq-watch.com/' target='_blank'>visit ESQ</a>";
	    sitelink[6] = "<a href='http://www.hamiltonwatch.com/' target='_blank'>visit Hamilton</a>";
	    sitelink[7] = "<a href='http://www.mauricelacroix.com/' target='_blank'>visit Maurice Lacroix</a>";
	    sitelink[8] = "<a href='http://www.michele.com/' target='_blank'>visit Michele</a>";
	    sitelink[9] = "<a href='http://www.oris.ch/' target='_blank'>visit Oris</a>";
    	
	    sitelink[10] = "<a href='http://www.raymondweil.com/' target='_blank'>visit Raymond Weil</a>";
	    sitelink[11] = "<a href='http://www.tagheuer.com/' target='_blank'>visit Tag Heuer</a>";
	    sitelink[12] = "<a href='http://www.victorinoxswissarmy.com/' target='_blank'>visit Victorinox Swiss Army</a>";
	    sitelink[13] = "<a href='http://www.zenith-watches.com/' target='_blank'>visit Zenith</a>";	    
    
    var img_in_left_iframe = new Array();
	img_in_left_iframe[0] = "img_wat/breitling.jpg";	
	img_in_left_iframe[1] = "img_wat/charriol_03.gif";	
	img_in_left_iframe[2] = "img_wat/cyma2.gif";
	img_in_left_iframe[3] = "img_wat/dior watches.jpg";
	img_in_left_iframe[4] = "img_wat/elini.jpg";
	
	img_in_left_iframe[5] = "img_wat/esq.jpg";
	img_in_left_iframe[6] = "img_wat/hamilton.gif";
	img_in_left_iframe[7] = "img_wat/maurice lacroix.gif";
	img_in_left_iframe[8] = "img_wat/michele.jpg";
	img_in_left_iframe[9] = "img_wat/oris.gif";
	
	img_in_left_iframe[10] = "img_wat/Raymond Weil.gif";
	img_in_left_iframe[11] = "img_wat/tagheuer.jpg";
	img_in_left_iframe[12] = "img_wat/victorinox.gif";
	img_in_left_iframe[13] = "img_wat/zenith.gif";	
    	
    	var content_in_right_iframe = new Array();
	    content_in_right_iframe[0] = "/scripts/idleyisapi.dll/clients.GemofTheNet.List_items?c=000&Store_name=NQ&Dir_path=c%3A/inetpub/nq/&Database_name=inv.mdb&Image_path=/jpg/&query=select+*+from+stone+where+[General+Category]+like+'watch*'+and+[Gender]+like+'women*'+and+[Supplier]='BREITLING'+order+by+item+desc&Message1=BREITLING+Watch+Collection";
		content_in_right_iframe[1] = "/scripts/idleyisapi.dll/clients.GemofTheNet.List_items?c=000&Store_name=NQ&Dir_path=c%3A/inetpub/nq/&Database_name=inv.mdb&Image_path=/jpg/&query=select+*+from+stone+where+[General+Category]+like+'watch*'+and+[Gender]+like+'women*'+and+[Supplier]='CHARRIOL'+order+by+item+desc&Message1=CHARRIOL+Watch+Collection";
	    content_in_right_iframe[2] = "/scripts/idleyisapi.dll/clients.GemofTheNet.List_items?c=000&Store_name=NQ&Dir_path=c%3A/inetpub/nq/&Database_name=inv.mdb&Image_path=/jpg/&query=select+*+from+stone+where+[General+Category]+like+'watch*'+and+[Gender]+like+'women*'+and+[Supplier]='CYMA'+order+by+item+desc&Message1=CYMA+Watch+Collection";
	    content_in_right_iframe[3] = "/scripts/idleyisapi.dll/clients.GemofTheNet.List_items?c=000&Store_name=NQ&Dir_path=c%3A/inetpub/nq/&Database_name=inv.mdb&Image_path=/jpg/&query=select+*+from+stone+where+[General+Category]+like+'watch*'+and+[Gender]+like+'women*'+and+[Supplier]='CHRISTIAN DIOR'+order+by+item+desc&Message1=CHRISTIAN+DIOR+Watch+Collection";
	    content_in_right_iframe[4] = "/scripts/idleyisapi.dll/clients.GemofTheNet.List_items?c=000&Store_name=NQ&Dir_path=c%3A/inetpub/nq/&Database_name=inv.mdb&Image_path=/jpg/&query=select+*+from+stone+where+[General+Category]+like+'watch*'+and+[Gender]+like+'women*'+and+[Supplier]='ELINI'+order+by+item+desc&Message1=Elini+Watch+Collection";
    	
	    content_in_right_iframe[5] = "/scripts/idleyisapi.dll/clients.GemofTheNet.List_items?c=000&Store_name=NQ&Dir_path=c%3A/inetpub/nq/&Database_name=inv.mdb&Image_path=/jpg/&query=select+*+from+stone+where+[General+Category]+like+'watch*'+and+[Gender]+like+'women*'+and+[Supplier]='ESQ'+order+by+item+desc&Message1=ESQ+Watch+Collection";
	    content_in_right_iframe[6] = "/scripts/idleyisapi.dll/clients.GemofTheNet.List_items?c=000&Store_name=NQ&Dir_path=c%3A/inetpub/nq/&Database_name=inv.mdb&Image_path=/jpg/&query=select+*+from+stone+where+[General+Category]+like+'watch*'+and+[Gender]+like+'women*'+and+[Supplier]='HAMILTON'+order+by+item+desc&Message1=Hamilton+Watch+Collection";
	    content_in_right_iframe[7] = "/scripts/idleyisapi.dll/clients.GemofTheNet.List_items?c=000&Store_name=NQ&Dir_path=c%3A/inetpub/nq/&Database_name=inv.mdb&Image_path=/jpg/&query=select+*+from+stone+where+[General+Category]+like+'watch*'+and+[Gender]+like+'women*'+and+[Supplier]='MAURICE LACROIX'+order+by+item+desc&Message1=MAURICE+LACROIX+Watch+Collection";
	    content_in_right_iframe[8] = "/scripts/idleyisapi.dll/clients.GemofTheNet.List_items?c=000&Store_name=NQ&Dir_path=c%3A/inetpub/nq/&Database_name=inv.mdb&Image_path=/jpg/&query=select+*+from+stone+where+[General+Category]+like+'watch*'+and+[Gender]+like+'women*'+and+[Supplier]='MICHELE'+order+by+item+desc&Message1=MICHELE+Watch+Collection";
    	content_in_right_iframe[9] = "/scripts/idleyisapi.dll/clients.GemofTheNet.List_items?c=000&Store_name=NQ&Dir_path=c%3A/inetpub/nq/&Database_name=inv.mdb&Image_path=/jpg/&query=select+*+from+stone+where+[General+Category]+like+'watch*'+and+[Gender]+like+'women*'+and+[Supplier]='ORIS'+order+by+item+desc&Message1=ORIS+Watch+Collection";
    	
	    content_in_right_iframe[10] = "/scripts/idleyisapi.dll/clients.GemofTheNet.List_items?c=000&Store_name=NQ&Dir_path=c%3A/inetpub/nq/&Database_name=inv.mdb&Image_path=/jpg/&query=select+*+from+stone+where+[General+Category]+like+'watch*'+and+[Gender]+like+'women*'+and+[Supplier]='RAYMOND WEIL'+order+by+item+desc&Message1=Raymond+Weil+Watch+Collection";
	    content_in_right_iframe[11] = "/scripts/idleyisapi.dll/clients.GemofTheNet.List_items?c=000&Store_name=NQ&Dir_path=c%3A/inetpub/nq/&Database_name=inv.mdb&Image_path=/jpg/&query=select+*+from+stone+where+[General+Category]+like+'watch*'+and+[Gender]+like+'women*'+and+[Supplier]='TAG HEUER'+order+by+item+desc&Message1=Tag+Heuer+Watch+Collection";
	    content_in_right_iframe[12] = "/scripts/idleyisapi.dll/clients.GemofTheNet.List_items?c=000&Store_name=NQ&Dir_path=c%3A/inetpub/nq/&Database_name=inv.mdb&Image_path=/jpg/&query=select+*+from+stone+where+[General+Category]+like+'watch*'+and+[Gender]+like+'women*'+and+[Supplier]='SWISS ARMY'+order+by+item+desc&Message1=Swiss+Army++Watch+Collection";
	    content_in_right_iframe[13] = "/scripts/idleyisapi.dll/clients.GemofTheNet.List_items?c=000&Store_name=NQ&Dir_path=c%3A/inetpub/nq/&Database_name=inv.mdb&Image_path=/jpg/&query=select+*+from+stone+where+[General+Category]+like+'watch*'+and+[Gender]+like+'women*'+and+[Supplier]='ZENITH'+order+by+item+desc&Message1=Zenith+Watch+Collection";
    		
	var i = 0;    
    while(i < 14)
	{
	    list_label[i].style.color = "#fcae04";	
	    tit_img[i].src = '../../Images/Design/none_arrow_subMenu.gif';
	    div_submenu[i].style.display = 'none';
		if(list_label[i]==id_label)	
		{   
		    tit_img[i].src = '../../Images/Design/arrow_subMenu.gif';
		    list_label[i].style.color = "#ffffff";	
		    div_submenu[i].style.display = 'block';
		    visitsite.innerHTML = sitelink[i];
		    ifr_detail.src = img_in_left_iframe[i];
		    ifr_product.src = content_in_right_iframe[i];		    
		}	
		i++;	
		
	}

}
