<!--
function showhidecell(element,className) {
	element.className = className;        
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function checkForm() 
{

missinginfo = "";

if (document.form1.f_name.value=="") 
{
	missinginfo += "\n     -  Name";
}
if (document.form1.f_company.value=="") 
{
	missinginfo += "\n     -  Company";
}
if (document.form1.email.value=="") 
{
	missinginfo += "\n     -  email address";
}
if (document.form1.phone.value=="") {
missinginfo += "\n     -  Phone number";
}
if (document.form1.comment.value=="") {
missinginfo += "\n     -  Comment";
}
if (missinginfo != "") {
missinginfo ="_____________________________\n" +
"Please fill in your:\n" +
missinginfo + "\n_____________________________" +
"\nPlease re-enter and submit again!";
alert(missinginfo);
return false;
}
}

//-->

/////////////////////////
//
// Toggle the portfolio
//
/////////////////////////
$(document).ready(function() 
{
   $("li#port_switch").toggle(
	   function() 
	   {
		 $("ul#work").show("slow");
		 $("li#port_switch").addClass("navHold");
	   },
	   function() 
	   {
		 $("ul#work").hide("slow");
		 $("li#port_switch").removeClass("navHold");
		 $("li#port_switch").addClass("navLinks");
	   }
   );
		  
 });

// set map parameters
function load() 
{
	if (GBrowserIsCompatible()) 
	{
		
		function createMarker(point,html) 
		{
			var marker = new GMarker(point);
			GEvent.addListener(marker, "click", function() 
			{
			marker.openInfoWindowHtml(html);
			});
			return marker;
		}		
		
		var map = new GMap2(document.getElementById("map"));
		map.addControl(new GSmallMapControl());
		map.addControl(new GMapTypeControl());
		//map.setCenter(new GLatLng(51.527654,-0.081828), 15);
	
		//var point = new GLatLng(51.527654,-0.081828);
		map.setCenter(new GLatLng(51.528117,-0.088491), 15);
	
		var point = new GLatLng(51.528117,-0.088491);
		var marker = createMarker(point,'<div style="width:80px"><img src="http://dev.bigbravedog.co.uk/images/generic/logo.gif" /></div>')
		map.addOverlay(marker);
	}
    
    // display a warning if the browser was not compatible
    else 
	{
      alert("Sorry, the Google Maps API is not compatible with this browser");
    }
}