/*
var ViewBigImageWin;

function ViewBigImage(obj)
{
	ViewBigImageWin = window.open('', 'ViewBigImage', 'width=500,height=500,resizable=1');
	ViewBigImageWin.document.write('<body leftmargin=2 topmargin=2><img name=img1 src=' + obj.src + '><img name=img2 width=0 height=0 src=' + obj.src + '></body>');
	setTimeout('ViewBigImage2()', 10);				
}

function ViewBigImage2()
{
	if( !ViewBigImageWin.img2)
	{
		setTimeout('ViewBigImage2()', 100);
	}
	else
	{
		ViewBigImageWin.resizeBy(	ViewBigImageWin.img1.width	-ViewBigImageWin.document.body.clientWidth, 
									ViewBigImageWin.img1.height	-ViewBigImageWin.document.body.clientHeight);
		ViewBigImageWin.focus();
	}
}
*/
// image view -----------------------------------------------------------------------------

var submenuontopList=[
//09-15-2005 Kim Sang Min
//'<table border="0" cellpadding="0" cellspacing="0" width="139" height="85"><tr><td width="139" background="images/new/button/cabinet_4.jpg" height="85" style="padding-left: 16px; padding-right: 5px; padding-top: 2px; padding-bottom:2px"><table border="0" cellpadding="0" cellspacing="0" width="100%" style="border-collapse: collapse" bordercolor="#111111"><tr><td width="100%" height="20" valign="middle" class="NHBodySmallText" id="submenu01" style="padding-top:4px" onClick="selectmenu(\'submenu01\')" onmouseover="submenuon(\'submenu01\')" onmouseout="submenuoff(\'submenu01\')">Cabinet Ratings</td></tr><tr><td width="100%" height="20" valign="middle" class="NHBodySmallText" id="submenu02" style="padding-top:2px" onClick="selectmenu(\'submenu02\')" onmouseover="submenuon(\'submenu02\')" onmouseout="submenuoff(\'submenu02\')">Diamond Cabinets</td></tr><tr><td width="100%" height="20" valign="middle" class="NHBodySmallText" id="submenu03" style="padding-top:1px" onClick="selectmenu(\'submenu03\')" onmouseover="submenuon(\'submenu03\')" onmouseout="submenuoff(\'submenu03\')">Aristokraft Cabinets</td></tr><tr><td width="100%" height="20" valign="middle" class="NHBodySmallText" id="submenu04" style="padding-top:1px" onClick="selectmenu(\'submenu04\')" onmouseover="submenuon(\'submenu04\')" onmouseout="submenuoff(\'submenu04\')">Custom Cabinets</td></tr></table></td></tr></table>',

'<table border="0" cellpadding="0" cellspacing="0" width="139" height="85"><tr><td width="139" background="images/new/button/cabinet_four.jpg" height="85" style="padding-left: 16px; padding-right: 5px; padding-top: 2px; padding-bottom:2px"><table border="0" cellpadding="0" cellspacing="0" width="100%" style="border-collapse: collapse" bordercolor="#111111"><tr><td width="100%" height="20" valign="middle" class="NHBodySmallText" id="submenu02" style="padding-top:2px" style="cursor:hand" onClick="selectmenu(\'submenu02\')" onmouseover="submenuon(\'submenu02\')" onmouseout="submenuoff(\'submenu02\')">Diamond Cabinets</td></tr><tr><td width="100%" height="20" valign="middle" class="NHBodySmallText" id="submenu03" style="padding-top:1px" style="cursor:hand" onClick="selectmenu(\'submenu03\')" onmouseover="submenuon(\'submenu03\')" onmouseout="submenuoff(\'submenu03\')">Aristokraft Cabinets</td></tr><tr><td width="100%" height="20" valign="middle" class="NHBodySmallText" id="submenu04" style="padding-top:1px" style="cursor:hand" onClick="selectmenu(\'submenu04\')" onmouseover="submenuon(\'submenu04\')" onmouseout="submenuoff(\'submenu04\')">Columbia Cabinets</td></tr><tr><td width="100%" height="20" valign="middle" class="NHBodySmallText" id="submenu05" style="padding-top:1px" style="cursor:hand" onClick="location.href=\'submenu03-1.html\'" onmouseover="submenuon(\'submenu05\')" onmouseout="submenuoff(\'submenu05\')">Kraftmaid</td></tr></table></td></tr></table>',

'<table width="139" border="0" cellspacing="0" cellpadding="0"><tr><td width="139" height="57" background="images/new/button/cabinet_3.jpg" style="padding-left:16px; padding-right:5px; padding-top:6px" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td width="139" class="NHBodySmallText" id="submenu11" style="cursor:hand" onClick="selectmenu(\'submenu11\')" onmouseover="submenuon(\'submenu11\')" onmouseout="submenuoff(\'submenu11\')">About Wood Floor</td></tr><tr><td width="139" class="NHBodySmallText" id="submenu12" style="padding-top:5px " style="cursor:hand" onClick="selectmenu(\'submenu12\')" onmouseover="submenuon(\'submenu12\')" onmouseout="submenuoff(\'submenu12\')">Gallery</td></tr><tr><td width="139" class="NHBodySmallText" id="submenu13" style="padding-top:5px " style="cursor:hand" onClick="selectmenu(\'submenu13\')" onmouseover="submenuon(\'submenu13\')" onmouseout="submenuoff(\'submenu13\')">Wood FAQs</td></tr></table></td></tr></table>',

'<table border="0" cellpadding="0" cellspacing="0" width="139" height="44"><tr><td width="139" height="44" valign="top" background="images/new/button/cabinet_4.jpg" style="padding-left: 16px; padding-right: 5px; padding-top: 2px; padding-bottom:2px"><table border="0" cellpadding="0" cellspacing="0" width="100%" ><tr><td width="100%" class="NHBodySmallText" valign="middle" style="padding-top:8px " id="submenu20" onmouseover="submenuon(\'submenu21\')" onmouseout="submenuoff(\'submenu21\')" style="cursor:hand" onClick="selectmenu(\'submenu21\')">Gallery</td></tr><tr><td width="100%" class="NHBodySmallText" valign="middle" style="padding-top:6px " id="submenu21" onmouseover="submenuon(\'submenu21\')" onmouseout="submenuoff(\'submenu21\')" style="cursor:hand" onClick="selectmenu(\'submenu21\')">- Kitchen</td></tr><tr><td width="100%" class="NHBodySmallText" valign="middle" style="padding-top:6px " id="submenu23" onmouseover="submenuon(\'submenu23\')" onmouseout="submenuoff(\'submenu23\')" style="cursor:hand" onClick="selectmenu(\'submenu23\')">- Bathroom</td></tr><tr><td width="100%" class="NHBodySmallText" valign="middle" style="padding-top:6px " id="submenu22" onmouseover="submenuon(\'submenu22\')" onmouseout="submenuoff(\'submenu22\')" style="cursor:hand" onClick="selectmenu(\'submenu22\')">- Custom Design</td></tr></table></td></tr></table>',

'<TABLE id="Table1" height="178" cellSpacing="0" cellPadding="0" width="142" border="0"><TR><TD style="cursor:hand;PADDING-RIGHT: 5px; PADDING-LEFT: 16px; PADDING-BOTTOM: 2px; PADDING-TOP: 2px"vAlign="top" width="142" background="images/sidemenu6.jpg" height="85"><TABLE id="Table2" cellSpacing="0" cellPadding="0" width="100%" border="0"><TR><TD class="NHBodySmallText" id="submenu30" onmouseover="submenuon(\'submenu30\')" style="cursor:hand;PADDING-TOP: 8px"onmouseout="submenuoff(\'submenu30\')" vAlign="middle"width="100%" onclick="location.href=\'CaesarStone.html\'">Caesar Stone</TD></TR><TR><TD class="NHBodySmallText" id="submenu31" onmouseover="submenuon(\'submenu31\')" style="cursor:hand;PADDING-TOP: 6px"onmouseout="submenuoff(\'submenu31\')" vAlign="middle"width="100%" onclick="location.href=\'EuroStone.html\'">Euro Stone</TD></TR><TR><TD class="NHBodySmallText" id="submenu32" onmouseover="submenuon(\'submenu32\')" style="cursor:hand;PADDING-TOP: 6px"onmouseout="submenuoff(\'submenu32\')" vAlign="middle"width="100%" onclick="location.href=\'Zodiaq.html\'">Zodiaq</TD></TR><TR><TD class="NHBodySmallText" id="submenu33" onmouseover="submenuon(\'submenu33\')" style="cursor:hand;PADDING-TOP: 6px"onmouseout="submenuoff(\'submenu33\')" vAlign="middle"width="100%" onclick="location.href=\'SileStone.html\'">Sile Stone</TD></TR><TR><TD class="NHBodySmallText" id="submenu34" onmouseover="submenuon(\'submenu34\')" style="cursor:hand;PADDING-TOP: 6px"onmouseout="submenuoff(\'submenu34\')" vAlign="middle"width="100%" onclick="location.href=\'Viatera.html\'">Viatera</TD></TR><TR><TD class="NHBodySmallText" id="submenu35" onmouseover="submenuon(\'submenu35\')" style="cursor:hand;PADDING-TOP: 6px"onmouseout="submenuoff(\'submenu35\')" vAlign="middle"width="100%" onclick="location.href=\'Hanstone.html\'">Hanstone</TD></TR><TR><TD class="NHBodySmallText" id="submenu36" onmouseover="submenuon(\'submenu36\')" style="cursor:hand;PADDING-TOP: 6px"onmouseout="submenuoff(\'submenu36\')" vAlign="middle"width="100%" onclick="location.href=\'QuartzGallery.html\'">Caesar Stone Gallery</TD></TR>  <TR>    <TD class="NHBodySmallText" id="submenu37" onmouseover="submenuon(\'submenu37\')" style="cursor:hand;PADDING-TOP: 6px"onmouseout="submenuoff(\'submenu37\')" vAlign="middle" onclick="location.href=\'Cambria.html\'">Cambria</TD>  </TR>  <TR>    <TD class="NHBodySmallText" id="submenu38" onmouseover="submenuon(\'submenu38\')" style="cursor:hand;PADDING-TOP: 6px"onmouseout="submenuoff(\'submenu38\')" vAlign="middle" onclick="location.href=\'Technistone.html\'">Technistone</TD>  </TR></TABLE></TD></TR></TABLE>'

];

//submenu vertical position
//cabinet,	wood floor, design, caesor stone
var submenuontoptop=[282,344,370,250];


var photodescList=[
'Carlisle Maple<br>Shown in Cider.',
'Liberty Maple<br>Shown in Parchment.',
'Monterey Maple<br>Shown in Cider.',
'Montgomery Maple<br>Shown in Wheat.',
'Kane Cherry<br>Shown in Light.<br>Kane is also available in Maple, Oak and Hickory.',
'Prescott Maple<br>Shown in Natural.',
'Ridgefield Maple<br>Shown in Wheat.',
'Selena Maple<br>Shown in Toasted Almond Glaze.',
'Sterling Maple<br>Shown in Harvest.',
'Windham Maple<br>Shown in Parchment.',
'Sullivan Cherry<br>Shown in Coffee Glaze.',
'Bayport Cherry<br>Shown in Harvest.',
'Dublin Cherry<br>Shown in Cranberry and Harvest.',
'Aurora Oak<br>Shown in Harvest.',
'Brighton Oak<br>Shown in Light.',
'Brittany Oak<br>Shown in Harvest.',
'Astoria Hickory<br>Shown in Natural.',
'Kane Hickory<br>Shown in Harvest.<br>Kane is also available in Maple, Cherry and Oak.',
'Addison Thermofoil<br>Shown in Cashmere.',
'Catalina Thermofoil<br>Shown in White.',
'Geneva Thermofoil<br>Shown in White.',
'Kane Oak<br>Shown in Light.<br>Kane is also available in Maple, Oak and Hickory.',
'Lynton Hickory<br>Shown in Auburn.',
'Shaylen Maple<br>Shown in Harvest.',
'Selena Cherry<br>Shown in Coffee.',
'Aylesford Character Maple<br>Shown in Natural.',
'Carlisle Cherry<br>Shown in Diamond Wet bar.',
'Montgomery Maple<br>Shown in White.',
'Liberty Maple<br>Shown in Amaretto Creme.',
];


function selectmenu(id){

	//09-14-2005 Kim Sang Min
	if( id == "submenu04" )
	{
		parent.location = "CabinetKitchen.html";
	}
	else
	{
		parent.location = id.toString()+".html";
	}
}

function photogalleryximagear(folder, targetimage){
document.getElementById('subphotogallery').background = "images/aristokraft.door/"+folder+"/"+targetimage+".jpg";
}


//diamond.gallery
function photogalleryximage(targetfolder,targetimage){
document.getElementById('photogallery').background = "images/"+targetfolder+"/"+targetimage+".jpg";
var subhtml=document.all.photodesc;
var index=parseInt(targetimage.substring(1))-1;

subhtml.innerHTML="<font color=#808080 face=Arial size=2>"+photodescList[index]+"</font>";
}


function submenuon(id){
 var identity=document.getElementById(id);
 identity.className="NHBodySmallTextBold";
}

function submenuoff(id){
  var identity=document.getElementById(id);
  identity.className="NHBodySmallText";
}

function disableontopmenu(){
var wb = whatbrowser();
if(wb=="IE"){
submenu = document.all.submenuontop;
}
else{
submenu = document.getElementById('submenuontop');
}
var display = submenu.style.display.toString();
if(display!="none") submenu.style.display = "none";
}

function whatbrowser(){
var thisbrowser="IE";
if(document.layers){
thisbrowser="NN4";
}
if(document.all){
thisbrowser="IE"
}
if(!document.all && document.getElementById){
thisbrowser="NN6";
}
return thisbrowser;
}
//open sub menu
function ximage(index){	
	var wb = whatbrowser();
	if(wb=="IE"){
		submenu = document.all.submenuontop;
		submenu.style.display = "block";
		submenuoffset = document.getElementById('maintable');
		myoffset = submenuoffset.offsetLeft+117;
		submenu.style.filter= "alpha(opacity=100)";		
		submenu.style.left = myoffset+"px";
		submenu.style.top=submenuontoptop[index];
		submenu.style.height=35;		
		submenu.style.width=94;
		submenu.innerHTML = submenuontopList[index];	//open sub menu
	}
}



if (document.images){
   image1on = new Image();
   image1on.src = "images/HomeOn.gif";
   image2on = new Image();
   image2on.src = "images/AboutOn.gif";
   image3on = new Image();
   image3on.src = "images/GalleryOn.gif";
   image4on = new Image();
   image4on.src = "images/ReferOn.gif";
   image5on = new Image();
   image5on.src = "images/MaintOn.gif";
   image6on = new Image();
   image6on.src = "images/cabwoodon.gif";
   image7on = new Image();
   image7on.src = "images/EdgeOn.gif";
   image8on = new Image();
   image8on.src = "images/MapOn.gif";
   image9on = new Image();
   image9on.src = "images/ContactOn.gif";
   image10on = new Image();
   image10on.src = "images/StoneOn.gif";
   image11on = new Image();
   image11on.src = "images/caesaron.gif";
   image12on = new Image();
   image12on.src = "images/cabineton.gif";
   image13on = new Image();
   image13on.src = "images/woodflooron.gif";
   image14on = new Image();
   image14on.src = "images/designsampleon.gif";
   image15on = new Image();
   image15on.src = "images/faqon.gif";
   image16on = new Image();
   image16on.src = "images/estimateon.gif";
   image17on = new Image();
   image17on.src = "images/kraftmaidon.gif";
   image20on = new Image();
   image20on.src = "images/zodiaqon.jpg";
   image21on = new Image();
   image21on.src = "images/silestone/sileStoneBon.jpg";
   image22on = new Image();
   image22on.src = "images/eurostone/euroStoneBon.jpg";
   
   //quartz.jpg
   image23on = new Image();
   image23on.src = "images/caesaron.gif";
   
   
   image1off = new Image();
   image1off.src = "images/HomeOff.gif";
   image2off = new Image();
   image2off.src = "images/AboutOff.gif";
   image3off = new Image();
   image3off.src = "images/GalleryOff.gif";
   image4off = new Image();
   image4off.src = "images/ReferOff.gif";
   image5off = new Image();
   image5off.src = "images/MaintOff.gif";
   image6off = new Image();
   image6off.src = "images/cabwoodoff.gif";
   image7off = new Image();
   image7off.src = "images/EdgeOff.gif";
   image8off = new Image();
   image8off.src = "images/MapOff.gif";
   image9off = new Image();
   image9off.src = "images/ContactOff.gif";
   image10off = new Image();
   image10off.src = "images/StoneOff.gif";
   image11off = new Image();
   image11off.src = "images/caesaroff.gif";
   image12off = new Image();
   image12off.src = "images/cabinetoff.gif";
   image13off = new Image();
   image13off.src = "images/woodflooroff.gif";
   image14off = new Image();
   image14off.src = "images/designsampleoff.gif";
   image15off = new Image();
   image15off.src = "images/faqoff.gif";
   image16off = new Image();
   image16off.src = "images/estimateoff.gif";
   image17off = new Image();
   image17off.src = "images/kraftmaidoff.gif";
   image20off = new Image();
   image20off.src = "images/zodiaqoff.jpg";
   image21off = new Image();
   image21off.src = "images/silestone/sileStoneBoff.jpg";
   image22off = new Image();
   image22off.src = "images/eurostone/euroStoneBoff.jpg";
   
   //quartz.jpg
   image23off = new Image();
   image23off.src = "images/caesaroff.gif";
}


function turnOn(imageName){
   if (document.images){
     document[imageName].src=eval(imageName + "on.src");
     var menuname=imageName.toString();
     switch(menuname){
       case "image12": ximage(0); break;	//open sub menu
       case "image13": ximage(1); break;	//open sub menu
       case "image14": ximage(2); break;	//open sub menu
       case "image23": ximage(3); break;	//open sub menu	//quartz_on.jpg
       default: disableontopmenu();
     }
   }
}

function turnOff(imageName){
   if (document.images){
     document[imageName].src=eval(imageName + "off.src");
   }
}


function checkrequired(which) {
var pass=true;
if (document.images) {
for (i=0;i<which.length;i++) {
var tempobj=which.elements[i];
if (tempobj.name.substring(0,3)=="req") {
if (((tempobj.type=="text"||tempobj.type=="textarea")&&
tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&&
tempobj.selectedIndex==0)) {
pass=false;
break;
         }
      }
   }
}
if (!pass) {
shortFieldName=tempobj.name.substring(3,30).toUpperCase();
alert("Please make sure the "+shortFieldName+" field was properly completed.");
return false;
}
else
return true;
}


function MM_openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}

var newwindow = '';

function popitup(url) {
newurl="images/diamond.storage/large/"+url;
var newimage = new Image();
newimage.src=newurl;
niwidth=newimage.width;
niheight=newimage.height;

var newhtml="popup.html?nhn="+newurl.toString();
var newdesc="location=0,status=0,scrollbars=0,width=386,height=266";
var newcategory=url.toString();
newcategory=newcategory.substring(0,2);
if(newcategory=="wc" || newcategory=="vc" || newcategory=="bc" || newcategory=="pc"){
newdesc="location=0,status=0,scrollbars=0,width=266,height=337";
}
xwinpopup(newhtml,newdesc);
}


function popitupwood(url) {
newurl="images/wood.gallery/large/"+url;
var newimage = new Image();
newimage.src=newurl;
niwidth=newimage.width;
niheight=newimage.height;

var newhtml="popup.html?nhn="+newurl.toString();
var newdesc="location=0,status=0,scrollbars=0,width=450,height=450";
xwinpopup(newhtml,newdesc);
}



function popitupdoor(url) {
newurl="images/diamond.door/large/"+url;
var newimage = new Image();
newimage.src=newurl;
niwidth=newimage.width;
niheight=newimage.height;

var newhtml="popup.html?nhn="+newurl.toString();
var newdesc="location=0,status=0,scrollbars=0,width=125,height=205";
xwinpopup(newhtml,newdesc);
}



function popitupx(url) {
var newimage = new Image();
newimage.src=url;
niwidth=newimage.width;
niheight=newimage.height;
var newhtml="popup.html?nhn="+url.toString();
var newdesc="location=0,status=0,scrollbars=0,width=446,height=328";
xwinpopup(newhtml,newdesc);
}


function xwinpopup(url,xy){
newwindow=window.open(url,"",xy);

}


function popitupy(url) {
var newimage = new Image();
newimage.src=url;
niwidth=newimage.width;
niheight=newimage.height;
var newhtml="popup.html?nhn="+url.toString();
var newdesc="location=0,status=0,scrollbars=0,width=361,height=482";
xwinpopup(newhtml,newdesc);
}


function popituphtml(url) {
var name=url.toString();
if(name=="maple.html"){
window.open(url,"",'width=500,height=650, resizable=1');
}
else{
window.open(url,"",'width=500,height=530, resizable=1');
}
}


function automaticalonclick()
{
var myString = parent.location.toString();
var index = myString.indexOf("?nhn=");
if(index!=-1){
var myParam = myString.substring(index+5);
document.getElementById('popupwin').src=myParam;
}
}


//for design
function photogalleryyimage(targetimage){
document.getElementById('designphotogallery').background = "images/design.gallery/large/"+targetimage;
}

function designstyleximage(targetimage){
parent.document.getElementById('designstyle').background = "images/design.style/"+targetimage+".jpg";
}


var designcontrolmenu=[
//09-15-2005 Kim Sangmin
//'<table width=\"160\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr align=\"center\"><td><img src=\"images/designstylemenu/floor0.jpg\" width=\"50\" height=\"50\" border=\"0\" onClick=\"getcustomizeddesignstyle(\'fl\',1)\"></td><td><img src=\"images/designstylemenu/floor1.jpg\" width=\"50\" height=\"50\" border=\"0\" onClick=\"getcustomizeddesignstyle(\'fl\',2)\"></td><td><img src=\"images/designstylemenu/floor2.jpg\" width=\"50\" height=\"50\" border=\"0\" onClick=\"getcustomizeddesignstyle(\'fl\',3)\"></td></tr><tr align=\"center\"><td><img src=\"images/designstylemenu/floor3.jpg\" width=\"50\" height=\"50\" border=\"0\" onClick=\"getcustomizeddesignstyle(\'fl\',4)\"></td><td><img src=\"images/designstylemenu/floor4.jpg\" width=\"50\" height=\"50\" border=\"0\" onClick=\"getcustomizeddesignstyle(\'fl\',5)\"></td><td><img src=\"images/designstylemenu/floor5.jpg\" width=\"50\" height=\"50\" border=\"0\" onClick=\"getcustomizeddesignstyle(\'fl\',6)\"></td></tr><tr align=\"center\"><td><img src=\"images/designstylemenu/floor6.jpg\" width=\"50\" height=\"50\" border=\"0\" onClick=\"getcustomizeddesignstyle(\'fl\',7)\"></td><td><img src=\"images/designstylemenu/floor7.jpg\" width=\"50\" height=\"50\" border=\"0\" onClick=\"getcustomizeddesignstyle(\'fl\',8)\"></td><td>&nbsp;</td></tr></table>',
'<table width=\"160\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr align=\"center\"><td><img src=\"images/designstylemenu/floor0.jpg\" width=\"50\" height=\"50\" border=\"0\" onClick=\"getcustomizeddesignstyle(\'fl\',1)\"></td><td><img src=\"images/designstylemenu/floor1.jpg\" width=\"50\" height=\"50\" border=\"0\" onClick=\"getcustomizeddesignstyle(\'fl\',2)\"></td><td><img src=\"images/designstylemenu/floor2.jpg\" width=\"50\" height=\"50\" border=\"0\" onClick=\"getcustomizeddesignstyle(\'fl\',3)\"></td></tr><tr align=\"center\"><td><img src=\"images/designstylemenu/floor3.jpg\" width=\"50\" height=\"50\" border=\"0\" onClick=\"getcustomizeddesignstyle(\'fl\',4)\"></td><td><img src=\"images/designstylemenu/floor4.jpg\" width=\"50\" height=\"50\" border=\"0\" onClick=\"getcustomizeddesignstyle(\'fl\',5)\"></td><td><img src=\"images/designstylemenu/floor5.jpg\" width=\"50\" height=\"50\" border=\"0\" onClick=\"getcustomizeddesignstyle(\'fl\',6)\"></td></tr><tr align=\"center\"><td><img src=\"images/designstylemenu/floor6.jpg\" width=\"50\" height=\"50\" border=\"0\" onClick=\"getcustomizeddesignstyle(\'fl\',7)\"></td><td><img src=\"images/designstylemenu/floor7.jpg\" width=\"50\" height=\"50\" border=\"0\" onClick=\"getcustomizeddesignstyle(\'fl\',8)\"></td><td>&nbsp;</td></tr></table>',

//09-15-2005 Kim Sangmin wall
//'<table width="160" border="0" cellspacing="0" cellpadding="0"><tr align="center"><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td width="50" height="50" bgcolor="#E8D7BD" onClick="getcustomizeddesignstyle(\'wa\',0)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#DE5800" onClick="getcustomizeddesignstyle(\'wa\',1)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#FFD29E" onClick="getcustomizeddesignstyle(\'wa\',2)">&nbsp;</td></tr></table></td></tr><tr align="center"><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td width="50" height="50" bgcolor="#FEF7F5" onClick="getcustomizeddesignstyle(\'wa\',3)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#B70300" onClick="getcustomizeddesignstyle(\'wa\',4)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#CAC7B6" onClick="getcustomizeddesignstyle(\'wa\',5)">&nbsp;</td></tr></table></td></tr><tr align="center"><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td width="50" height="50" bgcolor="#E9F1F1" onClick="getcustomizeddesignstyle(\'wa\',6)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#DAC3C4" onClick="getcustomizeddesignstyle(\'wa\',7)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#AAC0C9" onClick="getcustomizeddesignstyle(\'wa\',8)">&nbsp;</td></tr></table></td></tr><tr align="center"><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td width="50" height="50" bgcolor="#DFD17A" onClick="getcustomizeddesignstyle(\'wa\',9)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#AB5556" onClick="getcustomizeddesignstyle(\'wa\',10)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#FBB973" onClick="getcustomizeddesignstyle(\'wa\',11)">&nbsp;</td></tr></table></td></tr><tr align="center"><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td width="50" height="50" bgcolor="#BBA840" onClick="getcustomizeddesignstyle(\'wa\',12)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#F1E4B3" onClick="getcustomizeddesignstyle(\'wa\',13)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#5A3600" onClick="getcustomizeddesignstyle(\'wa\',14)">&nbsp;</td></tr></table></td></tr><tr align="center"><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td width="50" height="50" bgcolor="#BE9E70" onClick="getcustomizeddesignstyle(\'wa\',15)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#750000" onClick="getcustomizeddesignstyle(\'wa\',16)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#C0B3A1" onClick="getcustomizeddesignstyle(\'wa\',17)">&nbsp;</td></tr></table></td></tr><tr align="center"><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td width="50" height="50" bgcolor="#9A9087" onClick="getcustomizeddesignstyle(\'wa\',18)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#816748" onClick="getcustomizeddesignstyle(\'wa\',19)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#001B37" onClick="getcustomizeddesignstyle(\'wa\',20)">&nbsp;</td></tr></table></td></tr><tr align="center"><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td width="50" height="50" bgcolor="#76BDF1" onClick="getcustomizeddesignstyle(\'wa\',21)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#00463B" onClick="getcustomizeddesignstyle(\'wa\',22)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#EAF2F1" onClick="getcustomizeddesignstyle(\'wa\',23)">&nbsp;</td></tr></table></td></tr><tr align="center"><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td width="50" height="50" bgcolor="#55A5D1" onClick="getcustomizeddesignstyle(\'wa\',24)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#D4EAF2" onClick="getcustomizeddesignstyle(\'wa\',25)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#003D1C" onClick="getcustomizeddesignstyle(\'wa\',26)">&nbsp;</td></tr></table></td></tr><tr align="center"><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td width="50" height="50" bgcolor="#00102F" onClick="getcustomizeddesignstyle(\'wa\',27)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#94C0CF" onClick="getcustomizeddesignstyle(\'wa\',28)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#C2CBD0" onClick="getcustomizeddesignstyle(\'wa\',29)">&nbsp;</td></tr></table></td></tr></table>',//wall
'<table width="160" border="0" cellspacing="0" cellpadding="0"><tr align="center"><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td width="50" height="50" bgcolor="#E8D7BD" onClick="getcustomizeddesignstyle(\'wa\',0)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#DE5800" onClick="getcustomizeddesignstyle(\'wa\',1)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#FFD29E" onClick="getcustomizeddesignstyle(\'wa\',2)">&nbsp;</td></tr></table></td></tr><tr align="center"><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td width="50" height="50" bgcolor="#FEF7F5" onClick="getcustomizeddesignstyle(\'wa\',3)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#B70300" onClick="getcustomizeddesignstyle(\'wa\',4)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#CAC7B6" onClick="getcustomizeddesignstyle(\'wa\',5)">&nbsp;</td></tr></table></td></tr><tr align="center"><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td width="50" height="50" bgcolor="#E9F1F1" onClick="getcustomizeddesignstyle(\'wa\',6)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#DAC3C4" onClick="getcustomizeddesignstyle(\'wa\',7)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#AAC0C9" onClick="getcustomizeddesignstyle(\'wa\',8)">&nbsp;</td></tr></table></td></tr><tr align="center"><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td width="50" height="50" bgcolor="#DFD17A" onClick="getcustomizeddesignstyle(\'wa\',9)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#AB5556" onClick="getcustomizeddesignstyle(\'wa\',10)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#FBB973" onClick="getcustomizeddesignstyle(\'wa\',11)">&nbsp;</td></tr></table></td></tr><tr align="center"><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td width="50" height="50" bgcolor="#BBA840" onClick="getcustomizeddesignstyle(\'wa\',12)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#F1E4B3" onClick="getcustomizeddesignstyle(\'wa\',13)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#5A3600" onClick="getcustomizeddesignstyle(\'wa\',14)">&nbsp;</td></tr></table></td></tr><tr align="center"><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td width="50" height="50" bgcolor="#BE9E70" onClick="getcustomizeddesignstyle(\'wa\',15)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#750000" onClick="getcustomizeddesignstyle(\'wa\',16)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#C0B3A1" onClick="getcustomizeddesignstyle(\'wa\',17)">&nbsp;</td></tr></table></td></tr><tr align="center"><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td width="50" height="50" bgcolor="#9A9087" onClick="getcustomizeddesignstyle(\'wa\',18)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#816748" onClick="getcustomizeddesignstyle(\'wa\',19)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#001B37" onClick="getcustomizeddesignstyle(\'wa\',20)">&nbsp;</td></tr></table></td></tr><tr align="center"><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td width="50" height="50" bgcolor="#76BDF1" onClick="getcustomizeddesignstyle(\'wa\',21)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#00463B" onClick="getcustomizeddesignstyle(\'wa\',22)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#EAF2F1" onClick="getcustomizeddesignstyle(\'wa\',23)">&nbsp;</td></tr></table></td></tr><tr align="center"><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td width="50" height="50" bgcolor="#55A5D1" onClick="getcustomizeddesignstyle(\'wa\',24)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#D4EAF2" onClick="getcustomizeddesignstyle(\'wa\',25)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#003D1C" onClick="getcustomizeddesignstyle(\'wa\',26)">&nbsp;</td></tr></table></td></tr><tr align="center"><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td width="50" height="50" bgcolor="#00102F" onClick="getcustomizeddesignstyle(\'wa\',27)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#94C0CF" onClick="getcustomizeddesignstyle(\'wa\',28)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#C2CBD0" onClick="getcustomizeddesignstyle(\'wa\',29)">&nbsp;</td></tr></table></td></tr></table>',//wall


'<table width="160" border="0" cellspacing="0" cellpadding="0"><tr align="center"><td><img src="images/designstylemenu/door0.jpg" width="42" height="71" onClick="getcustomizeddesignstyle(\'ca\',1)"></td><td><img src="images/designstylemenu/door1.jpg" width="42" height="69" onClick="getcustomizeddesignstyle(\'ca\',2)"></td><td><img src="images/designstylemenu/door2.jpg" width="42" height="70" onClick="getcustomizeddesignstyle(\'ca\',7)"></td></tr><tr align="center"><td height="5" colspan="3">&nbsp;</td></tr><tr align="center"><td><img src="images/designstylemenu/door3.jpg" width="42" height="71" onClick="getcustomizeddesignstyle(\'ca\',3)"></td><td><img src="images/designstylemenu/door4.jpg" width="42" height="71" onClick="getcustomizeddesignstyle(\'ca\',4)"></td><td><img src="images/designstylemenu/door5.jpg" width="42" height="71" onClick="getcustomizeddesignstyle(\'ca\',5)"></td></tr><tr align="center"><td height="5" colspan="3">&nbsp;</td></tr><tr align="center"><td><img src="images/designstylemenu/door6.jpg" width="42" height="71" onClick="getcustomizeddesignstyle(\'ca\',6)"></td><td>&nbsp;</td><td>&nbsp;</td></tr></table>',

//09-15-2005 Kim Sangmin ceiling
//'<table width="160" border="0" cellspacing="0" cellpadding="0"><tr align="center"><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td width="50" height="50" bgcolor="#E8D7BD" onClick="getcustomizeddesignstyle(\'ce\',0)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#DE5800" onClick="getcustomizeddesignstyle(\'ce\',1)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#FFD29E" onClick="getcustomizeddesignstyle(\'ce\',2)">&nbsp;</td></tr></table></td></tr><tr align="center"><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td width="50" height="50" bgcolor="#FEF7F5" onClick="getcustomizeddesignstyle(\'ce\',3)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#B70300" onClick="getcustomizeddesignstyle(\'ce\',4)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#CAC7B6" onClick="getcustomizeddesignstyle(\'ce\',5)">&nbsp;</td></tr></table></td></tr><tr align="center"><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td width="50" height="50" bgcolor="#E9F1F1" onClick="getcustomizeddesignstyle(\'ce\',6)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#DAC3C4" onClick="getcustomizeddesignstyle(\'ce\',7)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#AAC0C9" onClick="getcustomizeddesignstyle(\'ce\',8)">&nbsp;</td></tr></table></td></tr><tr align="center"><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td width="50" height="50" bgcolor="#DFD17A" onClick="getcustomizeddesignstyle(\'ce\',9)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#AB5556" onClick="getcustomizeddesignstyle(\'ce\',10)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#FBB973" onClick="getcustomizeddesignstyle(\'ce\',11)">&nbsp;</td></tr></table></td></tr><tr align="center"><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td width="50" height="50" bgcolor="#BBA840" onClick="getcustomizeddesignstyle(\'ce\',12)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#F1E4B3" onClick="getcustomizeddesignstyle(\'ce\',13)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#5A3600" onClick="getcustomizeddesignstyle(\'ce\',14)">&nbsp;</td></tr></table></td></tr><tr align="center"><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td width="50" height="50" bgcolor="#BE9E70" onClick="getcustomizeddesignstyle(\'ce\',15)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#750000" onClick="getcustomizeddesignstyle(\'ce\',16)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#C0B3A1" onClick="getcustomizeddesignstyle(\'ce\',17)">&nbsp;</td></tr></table></td></tr><tr align="center"><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td width="50" height="50" bgcolor="#9A9087" onClick="getcustomizeddesignstyle(\'ce\',18)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#816748" onClick="getcustomizeddesignstyle(\'ce\',19)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#001B37" onClick="getcustomizeddesignstyle(\'ce\',20)">&nbsp;</td></tr></table></td></tr><tr align="center"><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td width="50" height="50" bgcolor="#76BDF1" onClick="getcustomizeddesignstyle(\'ce\',21)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#00463B" onClick="getcustomizeddesignstyle(\'ce\',22)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#EAF2F1" onClick="getcustomizeddesignstyle(\'ce\',23)">&nbsp;</td></tr></table></td></tr><tr align="center"><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td width="50" height="50" bgcolor="#55A5D1" onClick="getcustomizeddesignstyle(\'ce\',24)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#D4EAF2" onClick="getcustomizeddesignstyle(\'ce\',25)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#003D1C" onClick="getcustomizeddesignstyle(\'ce\',26)">&nbsp;</td></tr></table></td></tr><tr align="center"><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td width="50" height="50" bgcolor="#00102F" onClick="getcustomizeddesignstyle(\'ce\',27)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#94C0CF" onClick="getcustomizeddesignstyle(\'ce\',28)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#C2CBD0" onClick="getcustomizeddesignstyle(\'ce\',29)">&nbsp;</td></tr></table></td></tr></table>',//ceiling
'<table width="160" border="0" cellspacing="0" cellpadding="0"><tr align="center"><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td width="50" height="50" bgcolor="#E8D7BD" onClick="getcustomizeddesignstyle(\'ce\',0)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#DE5800" onClick="getcustomizeddesignstyle(\'ce\',1)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#FFD29E" onClick="getcustomizeddesignstyle(\'ce\',2)">&nbsp;</td></tr></table></td></tr><tr align="center"><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td width="50" height="50" bgcolor="#FEF7F5" onClick="getcustomizeddesignstyle(\'ce\',3)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#B70300" onClick="getcustomizeddesignstyle(\'ce\',4)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#CAC7B6" onClick="getcustomizeddesignstyle(\'ce\',5)">&nbsp;</td></tr></table></td></tr><tr align="center"><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td width="50" height="50" bgcolor="#E9F1F1" onClick="getcustomizeddesignstyle(\'ce\',6)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#DAC3C4" onClick="getcustomizeddesignstyle(\'ce\',7)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#AAC0C9" onClick="getcustomizeddesignstyle(\'ce\',8)">&nbsp;</td></tr></table></td></tr><tr align="center"><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td width="50" height="50" bgcolor="#DFD17A" onClick="getcustomizeddesignstyle(\'ce\',9)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#AB5556" onClick="getcustomizeddesignstyle(\'ce\',10)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#FBB973" onClick="getcustomizeddesignstyle(\'ce\',11)">&nbsp;</td></tr></table></td></tr><tr align="center"><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td width="50" height="50" bgcolor="#BBA840" onClick="getcustomizeddesignstyle(\'ce\',12)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#F1E4B3" onClick="getcustomizeddesignstyle(\'ce\',13)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#5A3600" onClick="getcustomizeddesignstyle(\'ce\',14)">&nbsp;</td></tr></table></td></tr><tr align="center"><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td width="50" height="50" bgcolor="#BE9E70" onClick="getcustomizeddesignstyle(\'ce\',15)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#750000" onClick="getcustomizeddesignstyle(\'ce\',16)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#C0B3A1" onClick="getcustomizeddesignstyle(\'ce\',17)">&nbsp;</td></tr></table></td></tr><tr align="center"><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td width="50" height="50" bgcolor="#9A9087" onClick="getcustomizeddesignstyle(\'ce\',18)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#816748" onClick="getcustomizeddesignstyle(\'ce\',19)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#001B37" onClick="getcustomizeddesignstyle(\'ce\',20)">&nbsp;</td></tr></table></td></tr><tr align="center"><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td width="50" height="50" bgcolor="#76BDF1" onClick="getcustomizeddesignstyle(\'ce\',21)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#00463B" onClick="getcustomizeddesignstyle(\'ce\',22)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#EAF2F1" onClick="getcustomizeddesignstyle(\'ce\',23)">&nbsp;</td></tr></table></td></tr><tr align="center"><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td width="50" height="50" bgcolor="#55A5D1" onClick="getcustomizeddesignstyle(\'ce\',24)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#D4EAF2" onClick="getcustomizeddesignstyle(\'ce\',25)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#003D1C" onClick="getcustomizeddesignstyle(\'ce\',26)">&nbsp;</td></tr></table></td></tr><tr align="center"><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td width="50" height="50" bgcolor="#00102F" onClick="getcustomizeddesignstyle(\'ce\',27)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#94C0CF" onClick="getcustomizeddesignstyle(\'ce\',28)">&nbsp;</td></tr></table></td><td><table width="50" border="0" cellspacing="0" cellpadding="0"><tr><td height="50" bgcolor="#C2CBD0" onClick="getcustomizeddesignstyle(\'ce\',29)">&nbsp;</td></tr></table></td></tr></table>',//ceiling


'<table width="160" border="0" cellspacing="0" cellpadding="0"><tr align="center"><td><img src="images/designstylemenu/ap1.jpg" width="52" height="50" onClick="getcustomizeddesignstyle(\'ap\',1)"></td><td><img src="images/designstylemenu/ap2.jpg" width="50" height="51" onClick="getcustomizeddesignstyle(\'ap\',3)"></td><td><img src="images/designstylemenu/ap3.jpg" width="50" height="50" onClick="getcustomizeddesignstyle(\'ap\',2)"></td></tr></table>',//app
'<table width="160" border="0" cellspacing="0" cellpadding="0"><tr align="center"><td><img src="images/designstylemenu/counter0.jpg" width="50" height="50" onClick="getcustomizeddesignstyle(\'co\',1)"></td><td><img src="images/designstylemenu/counter1.jpg" width="50" height="50" onClick="getcustomizeddesignstyle(\'co\',2)"></td><td><img src="images/designstylemenu/counter2.jpg" width="50" height="50" onClick="getcustomizeddesignstyle(\'co\',3)"></td></tr><tr align="center"><td><img src="images/designstylemenu/counter3.jpg" width="50" height="50" onClick="getcustomizeddesignstyle(\'co\',4)"></td><td><img src="images/designstylemenu/counter4.jpg" width="50" height="50" onClick="getcustomizeddesignstyle(\'co\',5)"></td><td><img src="images/designstylemenu/counter5.jpg" width="50" height="50" onClick="getcustomizeddesignstyle(\'co\',6)"></td></tr><tr align="center"><td><img src="images/designstylemenu/counter6.jpg" width="50" height="50" onClick="getcustomizeddesignstyle(\'co\',7)"></td><td><img src="images/designstylemenu/counter7.jpg" width="50" height="50" onClick="getcustomizeddesignstyle(\'co\',8)"></td><td>&nbsp;</td></tr></table>',//counter
]

function designcontrolpanel(iindex){
var menutitle="NHN";
switch (iindex){
case 1:
document.getElementById('designcontrolpanel').innerHTML = "Choose a floor style";
document.getElementById('designcontrolpanel4menu').innerHTML = designcontrolmenu[iindex-1];
break;
case 2:
document.getElementById('designcontrolpanel').innerHTML = "Choose a wall color";
document.getElementById('designcontrolpanel4menu').innerHTML = designcontrolmenu[iindex-1];
break;
case 3:
document.getElementById('designcontrolpanel').innerHTML = "Choose a cabinet door style";
document.getElementById('designcontrolpanel4menu').innerHTML = designcontrolmenu[iindex-1];
break;
case 4:
document.getElementById('designcontrolpanel').innerHTML = "Choose a ceiling color";
document.getElementById('designcontrolpanel4menu').innerHTML = designcontrolmenu[iindex-1];
break;
case 5:
document.getElementById('designcontrolpanel').innerHTML = "Choose an appliance color";
document.getElementById('designcontrolpanel4menu').innerHTML = designcontrolmenu[iindex-1];
break;
case 6:
document.getElementById('designcontrolpanel').innerHTML = "Choose a countertop style";
document.getElementById('designcontrolpanel4menu').innerHTML = designcontrolmenu[iindex-1];
break;
default : 
document.getElementById('designcontrolpanel').innerHTML = "Error";
}
}

var dsflindex=1;
var dscaindex=1;
var dscoindex=1;
var dsapindex=1;
var dsceindex=0;
var dswaindex=0;

function getcustomizeddesignstyle(dstype, thatvalue)
{
if(dstype=="fl") dsflindex=thatvalue;
if(dstype=="ca") dscaindex=thatvalue;
if(dstype=="co") dscoindex=thatvalue;
if(dstype=="ap") dsapindex=thatvalue;
if(dstype=="ce") dsceindex=thatvalue;
if(dstype=="wa") dswaindex=thatvalue;
//09-14-2005 Kim Sang Min
parent.designedimage.location="webimage/webdesignstyletools.aspx?fl="+dsflindex+"&ca="+dscaindex+"&co="+dscoindex+"&ap="+dsapindex+"&ce="+dsceindex+"&wa="+dswaindex;
//parent.designedimage.location="http://www.kimsmarble.com/webimage/webdesignstyletools.aspx?fl="+dsflindex+"&ca="+dscaindex+"&co="+dscoindex+"&ap="+dsapindex+"&ce="+dsceindex+"&wa="+dswaindex;
//parent.designedimage.location="http://localhost/kimsmarble/webimage/webdesignstyletools.aspx?fl="+dsflindex+"&ca="+dscaindex+"&co="+dscoindex+"&ap="+dsapindex+"&ce="+dsceindex+"&wa="+dswaindex;
}



var popWin = 0;
function hidePop(){
	if(popWin != 0 && !popWin.closed) {
		popWin.close();
	}
}
	
function photoImage(i,w,h) {
		hidePop();
		popWin = window.open("","photo","width="+w+",height="+h+",screenX=80,left=80,screenY=80,top=80,menubar=0,resizable=0,scrollbars=0");
        popWin.document.writeln('<html><body leftmargin=0 topmargin=0><img src="'+i+'"><body></html>');
	
		popWin.focus();
}

function showColor(e,n,r,i) {
	img = '<img src="'+e+'" border="0"><br />'+n;
	if (document.all) {
		document.all['large'+r].innerHTML = img;
	}
	else if (document.getElementById) {
		document.getElementById('large'+r).innerHTML = img; 
	}
	if (i!=-1) document.estimate[r][i].checked=true;
}

space = " \t\n\r";
function Nothing(s){  
	return ((s == null) || (s.length == 0))
}
function Blank(s) {
	var i;
    if (Nothing(s)) return true;
    for (i = 0; i < s.length; i++){
	var c = s.charAt(i);
	if (space.indexOf(c) == -1) 
	return false;
    }
    return true;
}

function validateForm(e) {
	ck1=0;
	for (i=0;i<document[e].color.length;i++) {
		if (document[e].color[i].checked == true) ck1=1;
	}
	if (ck1==0) {
		alert("Please Select a color.");
		document[e].color[0].focus(); 
		return false;
	}
	else {
		if (document[e].color[12].checked==true && (document[e].granite.value=="Please type in the name" || Blank(document[e].granite.value))) {
			alert("Please type in a Granite color.");
			document[e].granite.focus();
			return false;
		}
		if (document[e].color[25].checked==true && (document[e].caesarstone.value=="Please type in the name" || Blank(document[e].caesarstone.value))) {
			alert("Please type in a Caesarstone color.");
			document[e].caesarstone.focus();
			return false;
		}
	}
	ck2=0;
	for (i=0;i<document[e].edge.length;i++) {
		if (document[e].edge[i].checked == true) ck2=1;
	}
	if (ck2==0) {
		alert("Please Select an edge detail.");
		document[e].edge[0].focus(); 
		return false;
	}
	if (Blank(document[e].name.value)) {
		alert("Please type in Your Name.");
		document[e].name.focus();
		return false;
	}
	if (!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document[e].email.value)){	
		alert("Please type in a valid Email Address");
		document[e].email.focus();
		return false;
	}
	//new check address, city, state, zip
	if (Blank(document[e].address.value)) {
		alert("Please type in Address.");
		document[e].address.focus();
		return false;
	}
	if (Blank(document[e].city.value)) {
		alert("Please type in City.");
		document[e].city.focus();
		return false;
	}
	if (Blank(document[e].state.value)) {
		alert("Please type in State.");
		document[e].state.focus();
		return false;
	}
	if (Blank(document[e].zip.value)) {
		alert("Please type in Zip Code.");
		document[e].zip.focus();
		return false;
	}
	//new check address, city, state, zip
	if (Blank(document[e].phone.value)) {
		alert("Please type in Phone Number.");
		document[e].phone.focus();
		return false;
	}
	ck3=0;
	for (i=0;i<document[e].backsplash.length;i++) {
		if (document[e].backsplash[i].checked == true) ck3=1;
	}
	if (ck3==0) {
		alert("What is your Back Splash Choice?");
		document[e].backsplash[0].focus(); 
		return false;
	}
	ck4=0;
	for (i=0;i<document[e].sinkstyle.length;i++) {
		if (document[e].sinkstyle[i].checked == true) ck4=1;
	}
	if (ck4==0) {
		alert("Please Select Sink Style.");
		document[e].sinkstyle[0].focus(); 
		return false;
	}
	document[e].submitform.value = "yes";
	return true;
}

