function MM_swapImgRestore() { 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_preloadImages() { 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_findObj(n, d) { 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 && d.getElementById) x=d.getElementById(n); return x;}
function MM_swapImage() { 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];}
}
var ns4, ie4, ie5, moz; ns4 = (document.layers)? true:false
ie4 = (document.all)? true:false
ie5 = (document.getElementByID && document.all)? true:false
moz = (document.getElementById)?true:false
var sImgpath= ""; var sImg_alt1=""; var nSuggestLoad=0; var closeimg = '<img src="/images/header_exit.gif" alt="Click to Close" ' +'width="12" height="11" border="0">'; var sCaption = '<strong><font color="#FFFFFF" style="font-size:10px">DETAILED VIEW:</font></strong>'; function OLcmdExT1() { nSuggestLoad = 0; return overlib(OLresponseAJAX, STICKY, CLOSETEXT, 'Close', CAPTION,'', AUTOSTATUSCAP, WIDTH, 240, OFFSETY, -100, OFFSETX, -100);}
function newImagex(arg,nI) { if (document.images) { var sExec = "rslt.onload=writeImage_"+ nI +";"
rslt = new Image(); eval(sExec); var tmp = new Date(); var suffix = tmp.getTime(); rslt.src = arg + "?" + suffix; return rslt;}
}
function writeImage_detail() { x=oImgD.width; y=oImgD.height; if (x>300) { y = y / (x/300); x=300;}
if (y>300) { x = x / (y/300); y=300;}
layerWrite("detail",null,formatIMG(sImgpath+'?'+(new Date()).getTime(), "detailimg", x, y));}
function writeImage_alt1() { x=oImgA1.width; y=oImgA1.height; if (x>100) { y = y / (x/100); x=100;}
if (y>100) { x = x / (y/100); y=100;}
layerWrite("alt1",null,formatIMG(sImg_alt1+'?'+(new Date()).getTime(), "Imgalt1", x, y));}
function writeImage_alt2() { x=oImgA2.width; y=oImgA2.height; if (x>100) { y = y / (x/100); x=100;}
if (y>100) { x = x / (y/100); y=100;}
layerWrite("alt2",null,formatIMG(sImg_alt2+'?'+(new Date()).getTime(), "Imgalt2", x, y));}
function writeImage_alt3() { x=oImgA3.width; y=oImgA3.height; if (x>100) { y = y / (x/100); x=100;}
if (y>100) { x = x / (y/100); y=100;}
layerWrite("alt3",null,formatIMG(sImg_alt3+'?'+(new Date()).getTime(), "Imgalt3", x, y));}
function layerWrite(id,nestref,text) { if (ie4) { document.all[id].innerHTML = text
}
if (ns4) { var lyr = (nestref)? eval('document.'+nestref+'.document.'+id+'.document') : document.layers[id].document
lyr.open()
lyr.write(text)
lyr.close()
}
if (moz) { document.getElementById(id).innerHTML = text;}
toggleBox(id, 1); if (id=="detail")
toggleBox("focus", 1); else
nSuggestLoad = nSuggestLoad + 1; if (nSuggestLoad>1) toggleBox("suggest", 1);}
function formatIMG(arg, nIMG, x, y) { sWidth= ""; sHeight=""; if (x > 0) sWidth = " width="+x; if (y > 0) sHeight=" height="+y; return "<img border='0' src=\""+arg+"\" id=\""+nIMG+"\""+ sWidth + sHeight +" name=\"UserDesign"+nIMG+"\" >";}
function toggleBox(szDivID, iState) { if(document.layers) { document.layers[szDivID].visibility = iState ? "show" : "hide"; document.layers[szDivID].display = iState ? "" : "none";} else if(document.getElementById) { var obj = document.getElementById(szDivID); if (obj) { obj.style.visibility = iState ? "visible" : "hidden"; obj.style.display = iState ? "" : "none";}
} else if(document.all) { document.all[szDivID].style.visibility = iState ? "visible" : "hidden"; document.all[szDivID].style.display = iState ? "" : "none";}
}
function FixIMGs(sDiv, oImgsrc, max_x, max_y, ImagePath) { nDivHeight=0; if (document.getElementById) { eval("oDiv=document.getElementById('"+sDiv+"')");} else { eval ('oDiv = document.all.'+sDiv);}
nx=oImgsrc.width; ny=oImgsrc.height; if (nx && ny) { if (nx>max_x) {ny=Math.round(ny/(nx/max_x)); nx=max_x}
if (ny>max_y) {nx=Math.round(nx/(ny/max_y)); ny=max_y;}
oImgsrc.height=ny; oImgsrc.width=nx; if (oDiv) { nDivHeight=oDiv.offsetHeight; if (nDivHeight > 0) { nMarginHeight = Math.round((nDivHeight-ny)/2)+3; oDiv.style.top=nMarginHeight+'px';}
}
if (oImgsrc.src && (browser.isIE55 || browser.isIE6up) && browser.isWin32 && oImgsrc.src.match(/.*\.png.*/i) != null) { oImgsrc.style.width=nx+'px'; oImgsrc.style.height=ny+'px'; oImgsrc.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ ImagePath +"', sizingMethod='scale')"; oImgsrc.src='/images/clear.gif';}
}
}
function navig(cpg, dest) { if (dest=="") dest = "products.php"; document.designlist.pg.value = cpg; document.designlist.action = dest; document.designlist.submit();}
function nd2(time){ if(OLloaded&&OLgateOK){if(!((OLexclusivePI)&&OLisExclusive())){if(time&&over&&!o3_delay){ if(OLtimerid>0)clearTimeout(OLtimerid);OLtimerid=(OLhover&&o3_frame==self&&!OLcursorOff())?0:
setTimeout("cClick()",(o3_timeout=OLndt=time));}else{if(!OLshowingsticky){OLallowmove=0; if(over)OLhideObject(over);}}}}return false;}
var spop1a = '<div style="background-image:url('; var spop1b = '); background-position:center; background-repeat:no-repeat"></div>'; var spop2a = '<a href="'; var spop2b = '"><img border="0" src="'; var spop2c = '" ></a'; 