var image = new Image();
image.src = "images/nav_home_over.gif";
var image = new Image();
image.src = "images/nav_faq_over.gif";
var image = new Image();
image.src = "images/nav_bio_over.gif";
var image = new Image();
image.src = "images/nav_contact_over.gif";
var image = new Image();
image.src = "images/nav_wedding_over.gif";

var faqImages = new Array();
function preloadFAQImages() {
    faqImages[0] = new Image();
    faqImages[0].src = "images/faq_rates.jpg";
    faqImages[1] = new Image();
    faqImages[1].src = "images/faq_film.jpg";
    faqImages[2] = new Image();
    faqImages[2].src = "images/faq_travel.jpg";
    faqImages[3] = new Image();
    faqImages[3].src = "images/faq_assistant.jpg";
    faqImages[4] = new Image();
    faqImages[4].src = "images/faq_how_long.jpg";
    faqImages[5] = new Image();
    faqImages[5].src = "images/faq_event.jpg";
    faqImages[6] = new Image();
    faqImages[6].src = "images/faq_equipment.jpg";
    faqImages[7] = new Image();
    faqImages[7].src = "images/faq_albums.jpg";
    faqImages[8] = new Image();
    faqImages[8].src = "images/faq_approach.jpg";
}

function gotoAnswer() {
   var param=gup("question");
   if (param == "support") {
           showSupportAnswer();
   }
}

function showRatesAnswer() {
	changeFAQImage(0);
        showAnswer("<strong>What are your rates?</strong>" +
 	"<br><br>" +
	"Wedding Coverage begins at $5500.<br>" +
	"Wedding Packages begin at $6500.<br>" +
	"All packages include full coverage of the day. I consider my work to be story-telling, and as such do not limit my time. I am there for the <i>whole</i> story." +
	"<p>Please <a href=\"mailto:robyn@robynkesslerphotography.com\">contact me</a> for more detailed pricing and packages info.");
}

function showFilmAnswer() {
   changeFAQImage(1);

   showAnswer("<strong>Do you shoot film or digital?</strong>" +
	"<br><br>" +
	"The short answer is <i>Digital</i>, but. . . ." +
	"<p>" +
	"The long answer is <i>both</i>. Film and Digital are two different art forms, and I feel that one is not necessarily \"better\" than the other. Each one of them has advantages that are unique to its medium, and each one of them is highly capable of creating beautiful and lasting fine art prints. Due mainly to reasons of creating a consistent final product, and because I love playing in Photoshop, I currently use all digital. But all of my formal education in photography was in film, and I am happy to oblige if such is requested.");

}

function showTravelAnswer() {
   changeFAQImage(2);

   showAnswer("<strong>Do you travel?</strong>" +
 	"<br><br>" +
	"I am based in San Francisco and consider anything from Monterey up to Napa Valley to be <i>local</i>." +
 	"<br><br>" +
	"In addition, I have shot a number of destination weddings across the country and am happy to travel. Airfare and accommodations are required, but we're plenty content just to stay with Tom Bodedt. :)");
}

function showAssistantAnswer() {
   changeFAQImage(3);

   showAnswer("<strong>Do you have an assistant?</strong>" +
 	"<br><br>" +
	"Yes. My sucker of a husband Shawn is my devoted assistant. :)" +
 	"<br><br>" +
	"<i>Shawn</i> is included in my basic coverage fee as well as in the first package, while the higher priced packages include <i>Maria</i> (who is not as good as Shawn at some things, but much better than Shawn at others, like photography). Maria, of <a href=\"http://www.happenstancephotography.com\">Happenstance Photography</a>, and I shoot as <i>Second Photographers</i> for one another and we highly recommend going this route. There is so much happening on a wedding day and hiring two professional photographers gives you the security of knowing that twice as many moments are being captured. Maria and I have different strengths that compliment each other perfectly, and when we work together we inspire and push one another. We see opportunities for beautiful shots that we wouldn't see when by ourselves, and it gives us the freedom to be even more creative." +
 	"<br><br>" +
	"Maria and I are co-owners of Verite- a Photography Boutique on Union Street. To see some of our combined work, please visit our site <a href=\"http://www.photoveritesf.com\">here</a>, or come in and see us in person any time.");
}

function showHowLongAnswer() {
   changeFAQImage(4);

   showAnswer("<strong>How long until we get our pictures back?</strong>" +
 	"<br><br>" +
	"About 4-6 weeks (ok, let's be honest, it's usually 6, not 4-6) after your wedding, you guys will come back into the studio for a champagne-slide-show, and leave with a hand-made box of about 400-600 individually worked on, beautiful pictures.");
}


function showOtherEventsAnswer() {
   changeFAQImage(5);

   showAnswer("<strong>Do you photograph other events?</strong>" +
 	"<br><br>" +
	"Yep. I photograph Bar/Bat Mitzvahs, private parties, maternity, kids, and especially dogs. Click on any one for samples and contact me for any inquiries.");
}

function showEquipmentAnswer() {
   changeFAQImage(6);

   showAnswer("<strong>What kind of equipment do you use?</strong>" +
 	"<br><br>" +
	"I use all Canon Professional cameras, lenses and flashes, and of course always bring backup equipment.");
}

function showAlbumsAnswer() {
   changeFAQImage(7);

   showAnswer("<strong>What sort of album options do you offer?</strong>" +
 	"<br><br>" +
	"I LOVE albums. Seriously, I love them- which is why I can't stop myself from offering so many different types. It's best to come into our studio to get a better sense of them, but here is a brief list." +
 	"<br>" +
	"<ul>" +
        "<li>Michael Chinn- Local artesian bookmaker. Timeless thick white fine-art mats. Like nothing else out there.</li>" +
        "<li>Queensberry Matted and Digital- The cutting edge of album design and creation. The highest quality in coffee table books. Guaranteed for Life.</li>" +
        "<li>Cypress Albums and Boxes- Yummy, soft, feminine silk-covered books. Swiss ribbons. Handmade paper. Each one looks like a present</li>" +
        "<li>Asuka Magazine- Fun and Modern. Contemporary thin pages, super glossy.</li>" +
        "<li>And some others :)</li>" +
        "</ul>");
}

function showApproachAnswer() {
   changeFAQImage(8);
   showAnswer("<strong>What sort of approach do you take toward wedding photography?</strong>" +
 	"<br><br>" +
	"My style, more than anything else, is about capturing the real moments and <i>real</i> emotions of the day in a <strong>fun</strong> and <strong>clever</strong> way. Sometimes that means staying out of the way while the events unfold, and sometimes it involves grabbing you and rushing you over to a cool spot where romantic light happens to be falling. I do both. :)");
}

function showAnswer(answer) {
   var answer = document.getElementById('answer').innerHTML = answer;
   var objDiv = document.getElementById("answer"); 
   objDiv.scrollTop = 0-objDiv.scrollHeight;
}

function updateGallery(current) {
   if (current < 1) {
     current = 1;
   }
   if (current > totalBoxes) {
     current = totalBoxes;
   }
   currentBox = current;

   for (var i = 1; i <= totalBoxes; i++) {
	if (i <= current) {
           document.images["box" + i].src = "images/dark_box.gif";
        }
        else {
           document.images["box" + i].src = "images/light_box.gif";
        }
   }

   document["mainPicture"].src = galleryImages[current-1].src;
}




