// JavaScript Document
var browserType;

if (document.layers) {browserType = "nn4"}
if (document.all) {browserType = "ie"}
if (window.navigator.userAgent.toLowerCase().match("gecko")) {
   browserType= "gecko"
}

  function hide(divLayer, showhide) {
  		if (browserType == "gecko" )
    		document.poppedLayer = 
        	eval('document.getElementById("' + divLayer + '")');
  		else if (browserType == "ie")
    		document.poppedLayer = 
       	 	eval('document.getElementById("' + divLayer + '")');
  		else
    		document.poppedLayer =   
        	eval('document.layers["' + divLayer + '"]');
  
		if(showhide == 'show')
		{  
  			document.poppedLayer.style.visibility = "visible";
			
		}
		else
		{
			document.poppedLayer.style.visibility = "hidden";
		}
	} 
	

  function loadDesc(ctlid)
  {
       //change the innertext and display image based on the menu they mousedover
	   hide('desccreative', 'hide');
	   hide('descportrait', 'hide');
	   hide('descevent', 'hide');
	   hide('descstock', 'hide');
	   hide('desccommercial', 'hide');
	   hide('imgCreative', 'hide');
	   hide('imgPortrait', 'hide');
	   hide('imgEvent', 'hide');
	   hide('imgStock', 'hide');
	   hide('imgCommercial', 'hide');
	   var imgDesc = document.getElementById('descImg');
	
	   switch(ctlid)
	   {
	   		case"portrait":
				hide('descportrait', 'show');
			    hide('imgPortrait', 'show');	
			break;
			case "commercial":
				hide('desccommercial', 'show');
				hide('imgCommercial', 'show');
			break;
			case "event":
				hide('descevent', 'show');
				hide('imgEvent', 'show');
			break;
			case "creative":
				hide('desccreative', 'show');
				hide('imgCreative', 'show');
			break;
			case "stock":
				hide('descstock', 'show');
				hide('imgStock', 'show');
			break;
	   }
  }
  function NavTo(loc)
  {
    switch (loc){
	case 'home':
		location.href='/default.html';
		break;
	case 'gallery':
		location.href='/gallery.html';
		break;
	case 'news':
		location.href='/news/index.html';
		break;
	case 'contact':
	    location.href='mailto://brad@studiobrad.com';
	    break;
    case 'portraitGallery':
        location.href='/FlashGallery/Portraits/index.html';
        break;
    case 'autoGallery':
        location.href='/FlashGallery/Automotive/index.html';
        break;
    case 'creativeGallery':
        location.href='/FlashGallery/Creative/index.html';
        break;
    case 'commercialGallery':
        location.href='/FlashGallery/Commercial/index.html';
        break;
    case 'weddingGallery':
        location.href='/FlashGallery/Wedding/index.html';
        break;
    case 'orchidGallery':
        location.href='/FlashGallery/OrchidShow/index.html';
        break;
	}
			
  }