function validVisit(){

var FN=window.document.forms.consultation.name.value;
var EM=window.document.forms.consultation.email.value;
var AD=window.document.forms.consultation.address.value;
var CI=window.document.forms.consultation.city.value;
var AR=window.document.forms.consultation.area.value;
var EX=window.document.forms.consultation.exchange.value;
var NU=window.document.forms.consultation.number.value;
var errors=0;
var myOption= -1;

for (i=window.document.forms.consultation.Irequest.length-1; i > -1; i--) {
if (window.document.forms.consultation.Irequest[i].checked) {
myOption = i; i = -1;
fhome.style.visibility="hidden";
}

}
if (myOption == -1) {
fhome.style.visibility="visible";
}

if(FN.length<1){
errors++;
fname.style.visibility="visible";
}
else{
fname.style.visibility="hidden";
}

if(EM.length<5){
errors++;
femail.style.visibility="visible";
}
else{
femail.style.visibility="hidden";
}


if(AD.length<2){
errors++;
faddress.style.visibility="visible";
}
else{
faddress.style.visibility="hidden";
}

if(CI.length<2){
errors++;
fcity.style.visibility="visible";
}
else{
fcity.style.visibility="hidden";
}

if(AR.length<3){
errors++;
fnumber.style.visibility="visible";
}
else{
fnumber.style.visibility="hidden";
}


if(EX.length<3){
errors++;
fnumber.style.visibility="visible";
}
else{
fnumber.style.visibility="hidden";
}


if(NU.length<4){
errors++;
fnumber.style.visibility="visible";
}
else{
fnumber.style.visibility="hidden";
}
if(errors==0){
return true;
}
else{
return false;
}
}  


function validContact(){
var FN=window.document.forms.silk.name.value;
var EM=window.document.forms.silk.email.value;
var errors=0;

if(FN.length<1){
errors++;
fname.style.visibility="visible";
}
else{
fname.style.visibility="hidden";
}

if(EM.length<5){
errors++;
femail.style.visibility="visible";
}
else{
femail.style.visibility="hidden";
}

if(errors==0){
return true;
}
else{
return false;
}
}  

function validInterior(){
var FN2=window.document.forms.interiorDesign.name2.value;
var EM2=window.document.forms.interiorDesign.email2.value;
var AR=window.document.forms.interiorDesign.area.value;
var EX=window.document.forms.interiorDesign.exchange.value;
var NU=window.document.forms.interiorDesign.number.value;
var errors=0;
var myOption= -1;

for (i=window.document.forms.interiorDesign.Irequest.length-1; i > -1; i--) {
if (window.document.forms.interiorDesign.Irequest[i].checked) {
myOption = i; i = -1;
fhome.style.visibility="hidden";
}

}
if (myOption == -1) {
fhome.style.visibility="visible";
}

if(FN2.length<1){
errors++;
fname2.style.visibility="visible";
}
else{
fname2.style.visibility="hidden";
}

if(EM2.length<5){
errors++;
femail2.style.visibility="visible";
}
else{
femail2.style.visibility="hidden";
}

if(AR.length<3){
errors++;
fnumber.style.visibility="visible";
}
else{
fnumber.style.visibility="hidden";
}


if(EX.length<3){
errors++;
fnumber.style.visibility="visible";
}
else{
fnumber.style.visibility="hidden";
}


if(NU.length<4){
errors++;
fnumber.style.visibility="visible";
}
else{
fnumber.style.visibility="hidden";
}
if(errors==0){
return true;
}
else{
return false;
}
}  



//Automate Copyright Year

today=new Date();
y0=today.getFullYear();
//

document.write('<STYLE TYPE="text/css">.imgTrans{ filter:blendTrans(duration=0.1,transition=21) }</STYLE>');

var onImages=new Array();
function Rollover(imgName, imgSrc)
{
	onImages[imgName] = new Image();
	onImages[imgName].src = imgSrc;
}

function turnOn(imgName){ 
	if(document.images[imgName].filters != null)
		document.images[imgName].filters[0].apply();
	document.images[imgName].offSrc = document.images[imgName].src;
	document.images[imgName].src    = onImages[imgName].src;
	if(document.images[imgName].filters != null)
		document.images[imgName].filters[0].play();
}

function turnOff(imgName){ 
	if(document.images[imgName].filters != null)
		document.images[imgName].filters[0].stop();
	document.images[imgName].src = document.images[imgName].offSrc;
}

var myimages=new Array()
function preloadimages(){
for (i=0;i<preloadimages.arguments.length;i++){
myimages[i]=new Image()
myimages[i].src=preloadimages.arguments[i]
}
}



//Specify name of participating images, plus paths to their onMouseover replacements:


Rollover("about",  "navs/aboutOn.jpg");
Rollover("products",  "navs/productsOn.jpg");
Rollover("services",  "navs/servicesOn.jpg");
Rollover("interior",  "navs/interiorOn.jpg");
Rollover("gallery",  "navs/galleryOn.jpg");
Rollover("contact",  "navs/contactOn.jpg");





function showProducts(){
productDrop.style.visibility="visible";
homeDrop.style.visibility="hidden";
serviceDrop.style.visibility="hidden";
galleryDrop.style.visibility="hidden";
}



function hideProducts(){
productDrop.style.visibility="hidden";
}

function subNav(){
navProd.style.backgroundImage="url(images/navBG.png)";
navProd.style.height="35px";
}

function hideSubNav(){
navProd.style.backgroundImage="none";
navProd.style.height="35px";
}

function subNav1(){
navProd1.style.backgroundImage="url(images/navBG.png)";
navProd1.style.height="35px";
}

function hideSubNav1(){
navProd1.style.backgroundImage="none";
navProd1.style.height="35px";
}

function subNav2(){
navProd2.style.backgroundImage="url(images/navBG.png)";
navProd2.style.height="35px";
}

function hideSubNav2(){
navProd2.style.backgroundImage="none";
navProd2.style.height="35px";
}


function subNav3(){
navProd3.style.backgroundImage="url(images/navBG.png)";
navProd3.style.height="35px";
}

function hideSubNav3(){
navProd3.style.backgroundImage="none";
navProd3.style.height="35px";
}



function subNav4(){
navProd4.style.backgroundImage="url(images/navBG.png)";
navProd4.style.height="35px";
}

function hideSubNav4(){
navProd4.style.backgroundImage="none";
navProd4.style.height="35px";
}



function showHome(){
homeDrop.style.visibility="visible";
productDrop.style.visibility="hidden";
serviceDrop.style.visibility="hidden";
galleryDrop.style.visibility="hidden";
}

function hideHome(){
homeDrop.style.visibility="hidden";
}

function subHome(){
navHome.style.backgroundImage="url(images/navBG.png)";
navHome.style.height="35px";

}

function hidesubHome(){
navHome.style.backgroundImage="none";
navHome.style.height="35px";
}

function subHome1(){
navHome1.style.backgroundImage="url(images/navBG.png)";
navHome1.style.height="35px";
}

function hidesubHome1(){
navHome1.style.backgroundImage="none";
navHome1.style.height="35px";
}

function subHome2(){
navHome2.style.backgroundImage="url(images/navBG.png)";
navHome2.style.height="35px";
}

function hidesubHome2(){
navHome2.style.backgroundImage="none";
navHome2.style.height="35px";
}


function showService(){
serviceDrop.style.visibility="visible";
homeDrop.style.visibility="hidden";
productDrop.style.visibility="hidden";
galleryDrop.style.visibility="hidden";

}

function hideService(){
serviceDrop.style.visibility="hidden";
}

function subService(){
navService.style.backgroundImage="url(images/navBG.png)";
navService.style.height="35px";
}

function hidesubService(){
navService.style.backgroundImage="none";
navService.style.height="35px";
}

function subService1(){
navService1.style.backgroundImage="url(images/navBG.png)";
navService1.style.height="35px";
}

function hidesubService1(){
navService1.style.backgroundImage="none";
navService1.style.height="35px";
}

function subService2(){
navService2.style.backgroundImage="url(images/navBG.png)";
navService2.style.height="35px";
}

function hidesubService2(){
navService2.style.backgroundImage="none";
navService2.style.height="35px";
}


function subService3(){
navService3.style.backgroundImage="url(images/navBG.png)";
navService3.style.height="35px";
}

function hidesubService3(){
navService3.style.backgroundImage="none";
navService3.style.height="35px";
}

function showGallery(){
galleryDrop.style.visibility="visible";
productDrop.style.visibility="hidden";
homeDrop.style.visibility="hidden";
serviceDrop.style.visibility="hidden";
}

function hideGallery(){
galleryDrop.style.visibility="hidden";
}

function subGallery(){
navGallery.style.backgroundImage="url(images/navBG.png)";
navGallery.style.height="35px";

}

function hidesubGallery(){
navGallery.style.backgroundImage="none";
navGallery.style.height="35px";
}

function subGallery1(){
navGallery1.style.backgroundImage="url(images/navBG.png)";
navGallery1.style.height="35px";
}

function hidesubGallery1(){
navGallery1.style.backgroundImage="none";
navGallery1.style.height="35px";
}


function hideAll(){
galleryDrop.style.visibility="hidden";
productDrop.style.visibility="hidden";
homeDrop.style.visibility="hidden";
serviceDrop.style.visibility="hidden";
}


function openTest(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=850,left = 30,top = 30');");
}


function openBamboo(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=300,height=430,left = 30,top = 30');");
}

function openBonsai(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=587,height=500,left = 30,top = 30');");
}

function openexotic(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=350,height=445,left = 30,top = 30');");
}

function openficus(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=250,height=440,left = 30,top = 30');");
}

function openpalm(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=300,height=415,left = 30,top = 30');");
}

function openprePalm(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=310,height=425,left = 30,top = 30');");
}

function opentop(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=310,height=425,left = 30,top = 30');");
}

function openBask(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=450,height=375,left = 30,top = 30');");
}

function openVask(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=450,height=460,left = 30,top = 30');");
}