
//*****************************************

//**********************************


function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

path = '';

function TopMainMenu(level,mainlink){

//	if (level == "home")	path = "";
if (level == 1) path = "";
else if (level == 2) path = "../";

strTop1="<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr valign=\"bottom\"><td width=\"169\"><a href=\"index.html\"><img src=\"images/home/Logo.jpg\" width=\"169\" height=\"86\" border=\"0\"></a></td><td width=\"99\">";


//About Us
 if (mainlink==1){
    strTop2="<a href=\"about.html\"><img src=\"images/home/01Main_2.jpg\" width=\"99\" height=\"86\" name=\"main1\" border=\"0\"></a></td><td width=\"1\"><img src=\"images/home/LineMainMenu.gif\" width=\"1\" height=\"60\"></td><td width=\"95\">";
 

}else{
    strTop2="<a href=\"about.html\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('main1','','images/home/01Main_2.jpg',1)\"><img src=\"images/home/01Main_1.jpg\" width=\"99\" height=\"86\" name=\"main1\" border=\"0\"></a></td><td width=\"1\"><img src=\"images/home/LineMainMenu.gif\" width=\"1\" height=\"60\"></td><td width=\"95\">";
}

//Product
 if (mainlink==2){
    strTop3="<a href=\"product.html\"><img src=\"images/home/02Main_2.jpg\" width=\"95\" height=\"86\" name=\"main2\" border=\"0\"></a></td><td width=\"1\"><img src=\"images/home/LineMainMenu.gif\" width=\"1\" height=\"60\"></td><td width=\"94\">";
}else{
    strTop3="<a href=\"product.html\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('main2','','images/home/02Main_2.jpg',1)\"><img src=\"images/home/02Main_1.jpg\" width=\"95\" height=\"86\" name=\"main2\" border=\"0\"></a></td><td width=\"1\"><img src=\"images/home/LineMainMenu.gif\" width=\"1\" height=\"60\"></td><td width=\"94\">";
}

 
//Gallery
if (mainlink==3){
	strTop4="<a href=\"gallery.html\"><img src=\"images/home/03Main_2.jpg\" width=\"94\" height=\"86\" name=\"main3\" border=\"0\"></a></td><td width=\"1\"><img src=\"images/home/LineMainMenu.gif\" width=\"1\" height=\"60\"></td><td width=\"121\">";
}else{
	strTop4="<a href=\"gallery.html\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('main3','','images/home/03Main_2.jpg',1)\"><img src=\"images/home/03Main_1.jpg\" width=\"94\" height=\"86\" name=\"main3\" border=\"0\"></a></td><td width=\"1\"><img src=\"images/home/LineMainMenu.gif\" width=\"1\" height=\"60\"></td><td width=\"121\">";
}



//Promotion Materials
if (mainlink==4){
	strTop5="<a href=\"promotion.html\"><img src=\"images/home/04Main_2.jpg\" width=\"121\" height=\"86\" name=\"main4\" border=\"0\"></a></td><td width=\"1\"><img src=\"images/home/LineMainMenu.gif\" width=\"1\" height=\"60\"></td><td width=\"111\">";
}else{
	strTop5="<a href=\"promotion.html\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('main4','','images/home/04Main_2.jpg',1)\"><img src=\"images/home/04Main_1.jpg\" width=\"121\" height=\"86\" name=\"main4\" border=\"0\"></a></td><td width=\"1\"><img src=\"images/home/LineMainMenu.gif\" width=\"1\" height=\"60\"></td><td width=\"111\">";
}



//Contact Us
 if (mainlink==5){
    strTop6="<a href=\"contact.html\"><img src=\"images/home/05Main_2.jpg\" width=\"111\" height=\"86\" name=\"main5\" border=\"0\"></a></td><td width=\"1\"><img src=\"images/home/LineMainMenu.gif\" width=\"1\" height=\"60\"></td><td>";
}else{
    strTop6="<a href=\"contact.html\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('main5','','images/home/05Main_2.jpg',1)\"><img src=\"images/home/05Main_1.jpg\" width=\"111\" height=\"86\" name=\"main5\" border=\"0\"></a></td><td width=\"1\"><img src=\"images/home/LineMainMenu.gif\" width=\"1\" height=\"60\"></td><td>";
}



//Bisazza
 if (mainlink==6){
    strTop7="<a href=\"http://www.bisazza.com\" target=\"_blank\"><img src=\"images/home/06Main_2.jpg\" width=\"86\" height=\"86\" name=\"main6\" border=\"0\"></a></td></tr></table>";
}else{
    strTop7="<a href=\"http://www.bisazza.com\" target=\"_blank\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('main6','','images/home/06Main_2.jpg',1)\"><img src=\"images/home/06Main_1.jpg\" width=\"86\" height=\"86\" name=\"main6\" border=\"0\"></a></td></tr></table>";
}



strFinal="";


strFinal=strTop1+strTop2+strTop3+strTop4+strTop5+strTop6+strTop7;
document.write(strFinal);

}



////////////////////////////////////////////////////////////
function writefooter()
{
document.write("Copyright 2007 By Imex International Co., Ltd. All Right Reserved.");
}


//////////////////////////////////////////////////////////

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

path = '';

function TopSubMenu(level,mainlink){
	

//	if (level == "home")	path = "";
if (level == 1) path = "";
else if (level == 2) path = "../";

strTop1="<table width=\"780\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td width=\"154\">";


//Glass Tiles
 if (mainlink==1){
    strTop2="<a href=\"tiles_colour.html\"><img src=\"images/home/01Sub_2.gif\" width=\"120\" height=\"26\" name=\"sl_1\" border=\"0\"></a></td><td width=\"120\">";
}else{
    strTop2="<a href=\"tiles_colour.html\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('sl_1','','images/home/01Sub_2.gif',1)\"><img src=\"images/home/01Sub_1.gif\" width=\"120\" height=\"26\" name=\"sl_1\" border=\"0\"></a></td><td width=\"120\">";
}


//Glass Mosaics
 if (mainlink==2){
    strTop3="<a href=\"pro_mosaic.html\"><img src=\"images/home/02Sub_2.gif\" width=\"120\" height=\"26\" name=\"sl_2\" border=\"0\"></a></td><td width=\"120\">";
}else{
    strTop3="<a href=\"pro_mosaic.html\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('sl_2','','images/home/02Sub_2.gif',1)\"><img src=\"images/home/02Sub_1.gif\" width=\"120\" height=\"26\" name=\"sl_2\" border=\"0\"></a></td><td width=\"120\">";
}


//Ceramic
if (mainlink==3){
	strTop4="<a href=\"pro_ceramic.html\"><img src=\"images/home/03Sub_2.gif\" width=\"120\" height=\"26\" name=\"sl_3\" border=\"0\"></a></td><td width=\"120\">";
}else{
	strTop4="<a href=\"pro_ceramic.html\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('sl_3','','images/home/03Sub_2.gif',1)\"><img src=\"images/home/03Sub_1.gif\" width=\"120\" height=\"26\" name=\"sl_3\" border=\"0\"></a></td><td width=\"120\">";
}



//Setting & Grouting
 if (mainlink==4){
    strTop5="<a href=\"pro_setting.html\"><img src=\"images/home/04Sub_2.gif\" width=\"120\" height=\"26\" name=\"sl_4\" border=\"0\"></a></td><td>";
}else{
    strTop5="<a href=\"pro_setting.html\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('sl_4','','images/home/04Sub_2.gif',1)\"><img src=\"images/home/04Sub_1.gif\" width=\"140\" height=\"26\" name=\"sl_4\" border=\"0\"></a></td><td>";
}





//Decoration Design
 if (mainlink==6){
    strTop7="<a href=\"Decoration_Design.html\"><img src=\"images/home/06Sub_2.gif\" width=\"150\" height=\"26\" name=\"sl_5\" border=\"0\"></a></td></tr></table>";
}else{
    strTop7="<a href=\"Decoration_Design.html\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('sl_6','','images/home/06Sub_2.jpg',1)\"><img src=\"images/home/06Sub_1.gif\" width=\"150\" height=\"26\" name=\"sl_6\" border=\"0\"></a></td></tr></table>";
}
strFinal="";


//Live Wall
 if (mainlink==5){
    strTop6="<a href=\"livewall.html\"><img src=\"images/home/05Sub_2.gif\" width=\"140\" height=\"26\" name=\"sl_5\" border=\"0\"></a></td></tr></table>";
}else{
    strTop6="<a href=\"livewall.html\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('sl_5','','images/home/05Sub_2.jpg',1)\"><img src=\"images/home/05Sub_1.gif\" width=\"120\" height=\"26\" name=\"sl_5\" border=\"0\"></a></td></tr></table>";
}


//strFinal=strTop7;
//document.write(strFinal);

}


////////////////////////////////////

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

path = '';

function TopMenuPromotion(level,mainlink){

//	if (level == "home")	path = "";
if (level == 1) path = "";
else if (level == 2) path = "../";

strTop1="<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td width=\"155\">";


//Sample Book
 if (mainlink==1){
    strTop2="<a href=\"promotion.html\"><img src=\"images/Promotional/sl01_2.gif\" width=\"155\" height=\"27\" name=\"sl01\" border=\"0\"></a></td><td width=\"155\">";

	
}else{
    strTop2="<a href=\"promotion.html\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('sl01','','images/Promotional/sl01_2.gif',1)\"><img src=\"images/Promotional/sl01_1.gif\" width=\"155\" height=\"27\" name=\"sl01\" border=\"0\"></a></td><td width=\"155\">";
}

//Pattern Design
 if (mainlink==2){
    strTop3="<a href=\"promotion_pattern.html\"><img src=\"images/Promotional/sl02_2.gif\" width=\"155\" height=\"27\" name=\"sl02\" border=\"0\"></a></td><td width=\"158\">";
}else{
    strTop3="<a href=\"promotion_pattern.html\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('sl02','','images/Promotional/sl02_2.gif',1)\"><img src=\"images/Promotional/sl02_1.gif\" width=\"155\" height=\"27\" name=\"sl02\" border=\"0\"></a></td><td width=\"158\">";
}

 
//Imex Tower
if (mainlink==3){
	strTop4="<a href=\"promotion_tower.html\"><img src=\"images/Promotional/sl03_2.gif\" width=\"158\" height=\"27\" name=\"sl03\" border=\"0\"></a></td><td>";
}else{
	strTop4="<a href=\"promotion_tower.html\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('sl03','','images/Promotional/sl03_2.gif',1)\"><img src=\"images/Promotional/sl03_1.gif\" width=\"158\" height=\"27\" name=\"sl03\" border=\"0\"></a></td><td>";
}


//Leaflet & Download
 if (mainlink==4){
    strTop5="<a href=\"promotion_leaflet.html\"><img src=\"images/Promotional/sl04_2.gif\" width=\"312\" height=\"27\" name=\"sl04\" border=\"0\"></a></td></tr></table>";
}else{
    strTop5="<a href=\"promotion_leaflet.html\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('sl04','','images/Promotional/sl04_2.gif',1)\"><img src=\"images/Promotional/sl04_1.gif\" width=\"312\" height=\"27\" name=\"sl04\" border=\"0\"></a></td></tr></table>";
}




strFinal="";


strFinal=strTop1+strTop2+strTop3+strTop4+strTop5;
document.write(strFinal);

}

