d=document;
function closeThisWin() {window.close();}
var newWin;
function popupWin(image, width, height, text) {
var top=eval((screen.height-height)/2);
var left=eval((screen.width-width)/2);
closeWin();newWin = window.open("","popupWindow","left="+left+",top="+top+",toolbar=no,location=0,status=no,menubar=no,resizable=yes,scrollbars=no,width="+width+",height="+height+"");newWin.document.clear();newWin.document.write("<html><head>");newWin.document.write('<title>Portfolio Image</title></head>');newWin.document.write('<body leftmargin=0 topmargin=0 rightmargin=0>');newWin.document.write('<img src="'+image+'" width="'+width+'" height="'+height+'" border=0>');newWin.document.write('</body></html>');newWin.focus();}
function closeWin() {if (newWin){newWin.close();}}
function displayFooter() {
	d.write('<br><br><br><div class="legal"><i>&copy; 2003-2009 With a Brush of Love Inc.');
	d.write('<br /><br / >Except as otherwise noted, all  information, documentation and other content posted on this website is the property of With a Brush of Love, Inc.<br />');
	d.write('Content includes, but is not limited to: the graphics, icons and overall appearance of the With a Brush of Love, Inc website.</i></div>');
}


function setsrc(img_name, img_src)
{
	document[img_name].src = img_src;
}


function displayNavLinks(currpg)
{
	if(currpg=='services'){writePic('nav_services','images/nav_services_on2.png');}else{writePicLink('nav_services','index.htm','images/nav_services_off.png','images/nav_services_on.png','','Services')};
	if(currpg=='book'){writePic('nav_book','images/nav_book_on2.png');}else{writePicLink('nav_book','book.html','images/nav_book_off.png','images/nav_book_on.png','','Book')};
	if(currpg=='news'){writePic('nav_news','images/nav_news_on2.png');}else{writePicLink('nav_news','news.html','images/nav_news_off.png','images/nav_news_on.png','','News')};
	if(currpg=='portfolio'){writePic('nav_portfolio','images/nav_portfolio_on2.png');}else{writePicLink('nav_portfolio','portfolio.htm','images/nav_portfolio_off.png','images/nav_portfolio_on.png','','Portfolio')};
	if(currpg=='specialneeds'){writePic('nav_specialneeds','images/nav_specialneeds_on2.png');}else{writePicLink('nav_specialneeds','specialneeds.htm','images/nav_specialneeds_off.png','images/nav_specialneeds_on.png','','Special Needs')};
	if(currpg=='reviews'){writePic('nav_reviews','images/nav_testimonials_on2.png');}else{writePicLink('nav_reviews','testimonials.html','images/nav_testimonials_off.png','images/nav_testimonials_on.png','','Reviews')};
	if(currpg=='philosophy'){writePic('nav_philosophy','images/nav_philosophy_on2.png');}else{writePicLink('nav_philosophy','philosophy.html','images/nav_philosophy_off.png','images/nav_philosophy_on.png','','Philosophy')};
	if(currpg=='links'){writePic('nav_links','images/nav_links_on2.png');}else{writePicLink('nav_links','links.html','images/nav_links_off.png','images/nav_links_on.png','','Links')};
	if(currpg=='about'){writePic('nav_about','images/nav_aboutus_on2.png');}else{writePicLink('nav_about','aboutus.htm','images/nav_aboutus_off.png','images/nav_aboutus_on.png','','About Us')};
	if(currpg=='contact'){writePic('nav_contact','images/nav_contactus_on2.png');}else{writePicLink('nav_contact','contact.htm','images/nav_contactus_off.png','images/nav_contactus_on.png','','Contact')};
}

function writePic(theID, theSrc)
{
	d.write('<img id="' + theID + '" src="' + theSrc + '" border="0" /><br />');
}

//mouseOutURL can be blank if same as default
function writePicLink(theID, linkURL, defaultPicURL, mouseOverPicURL, mouseOutPicURL, altPicText)
{
	if (mouseOutPicURL==''){mouseOutPicURL = defaultPicURL;}
	d.write('<a href="' + linkURL + '" onmouseover="setsrc(\'' + theID + '\', \'' + mouseOverPicURL + '\')" onmouseout="setsrc(\'' + theID + '\', \'' + mouseOutPicURL + '\')"><img name="' + theID + '" src="' + defaultPicURL + '" alt="' + altPicText + '" border="0" /></a><br />');
}