function validContact(){
var FN=window.document.forms.emailSubmit.name.value;
var errors=0;

if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(emailSubmit.email.value)){
femail.style.visibility="hidden";
}
else{
errors++;
femail.style.visibility="visible";
}

if(FN.length<1){
errors++;
fname.style.visibility="visible";
}
else{
fname.style.visibility="hidden";
}

if(errors==0){
return true;
}
else{
return false;
}
}  

document.write('<STYLE TYPE="text/css">.imgTrans{ filter:blendTrans(duration=0.0,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("salon",  "navs/salonOn.jpg");
Rollover("services",  "navs/servicesOn.jpg");
Rollover("products",  "navs/productsOn.jpg");
Rollover("testimonials",  "navs/testimonialsOn.jpg");
Rollover("contact",  "navs/contactOn.jpg");



//Automate Copyright Year

today=new Date();
y0=today.getFullYear();


//DROPDOWN MENUS


//Contents for our Salon

var menu1=new Array()
menu1[0]='<a class="links" href="index.asp">&nbsp;Welcome  </a><br>'
menu1[1]='<a class="links" href="staff.asp">&nbsp;Meet Our Staff</a><br>'
menu1[2]='<a class="links" href="gallery.asp">&nbsp;Gallery</a><br>'
menu1[3]='<a class="links" href="giftCertificate.asp">&nbsp;Gift Certificates</a><br>'
menu1[4]='<a class="links" href="referal.asp">&nbsp;Referal Program</a><br>'
menu1[5]='<a class="links" href="feedback.asp">&nbsp;Submit Feedback</a><br>'
menu1[6]='<a class="links" href="missionStatement.asp">&nbsp;Mission Statement</a><br>'

//Content for NewsCenter

var menu2=new Array()
menu2[0]='<a class="links" href="colorCutting.asp">&nbsp;Color & Cutting </a><br>'
menu2[1]='<a class="links" href="bioIonic.asp">&nbsp;Bio Ionics </a><br>'
menu2[2]='<a class="links" href="greatLengths.asp">&nbsp;Great Lengths </a><br>'
menu2[3]='<a class="links" href="textureWaves.asp">&nbsp;Texture Waves</a><br>'
menu2[4]='<a class="links" href="upDos.asp">&nbsp; Elegant Up-dos</a><br>'
menu2[5]='<a class="links" href="makeUp.asp">&nbsp; Make-Up </a><br>'
menu2[6]='<a class="links" href="3DLashes.asp">&nbsp; 3D Eye Lashes </a><br>'
menu2[7]='<a class="links" href="jm.pdf" target="blank">&nbsp; Menu & Pricing</a><br>'
menu2[8]='<a class="links" href="webOffers.asp">&nbsp;Special Web Offers </a><br>'

var menu3=new Array()
menu3[0]='<a class="links" href="hours.asp">&nbsp; Hours & Location </a><br>'
menu3[1]='<a class="links" href="careers.asp">&nbsp; Careers </a><br>'


var menuwidth='250px' //default menu width
var menubgcolor='#C25AE4'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge+200")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge+2")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu

function newClient()
{
win=window.open('pop/newClient.html','n','toolbar=yes  height=250 width=430 scrollbars=no left=200, top=50');
}

function buyProducts()
{
win=window.open('pop/buyProducts.html','n','toolbar=yes  height=250 width=430 scrollbars=no left=200, top=50');
}


function showUp1()
{
win=window.open('pop/up1.html','n','toolbar=yes  height=450 width=300 scrollbars=no left=200, top=50');
}

function showUp2()
{
win=window.open('pop/up2.html','n','toolbar=yes  height=450 width=300 scrollbars=no left=200, top=50');
}

function showUp3()
{
win=window.open('pop/up3.html','n','toolbar=yes  height=450 width=300 scrollbars=no left=200, top=50');
}

function showUp4()
{
win=window.open('pop/up4.html','n','toolbar=yes  height=450 width=300 scrollbars=no left=200, top=50');
}

function showUp5()
{
win=window.open('pop/up5.html','n','toolbar=yes  height=450 width=300 scrollbars=no left=200, top=50');
}

function showUp6()
{
win=window.open('pop/up6.html','n','toolbar=yes  height=450 width=300 scrollbars=no left=200, top=50');
}


function showImage1(){
document.images.imswap.src="gallery/l1.jpg";
}

function showImage2(){
document.images.imswap.src="gallery/l2.jpg";
}

function showImage3(){
document.images.imswap.src="gallery/l3.jpg";
}

function showImage4(){
document.images.imswap.src="gallery/l4.jpg";
}

function showImage5(){
document.images.imswap.src="gallery/l5.jpg";
}

function showImage6(){
document.images.imswap.src="gallery/l6.jpg";
}

function showImage7(){
document.images.imswap.src="gallery/l7.jpg";
}

function showImage8(){
document.images.imswap.src="gallery/l8.jpg";
}

function showImage9(){
document.images.imswap.src="gallery/l9.jpg";
}

function showImage10(){
document.images.imswap.src="gallery/l10.jpg";
}

function showImage11(){
document.images.imswap.src="gallery/l11.jpg";
}

function showImage12(){
document.images.imswap.src="gallery/l12.jpg";
}

function showImage13(){
document.images.imswap.src="gallery/m1.jpg";
}

function showImage14(){
document.images.imswap.src="gallery/m2.jpg";
}

function showImage15(){
document.images.imswap.src="gallery/m3.jpg";
}

function showImage16(){
document.images.imswap.src="gallery/m4.jpg";
}


