// JavaScript Document


var NS = IE = Mac = NS6 = false;
var navVer = navigator.appVersion;


if(navVer.substr(0,3) >= 4) 
{
	if(navigator.appName == 'Netscape')
	{
    	NS = true;
	}
	else
	{
		IE = true;
	}
}

if( (navVer.substr(0,3) >= 5) && (NS))
{
	NS6 = true;
}

function showpic(imageName)
{
	if( (NS==true) && (NS6==false))
	{
		location.href=imageName;
	}
	else
	{
		pic=window.open('','pic','width=500,height=300,toolbar=no,status=no,title=no,left=0,top=0');
		if (pic.document['picture'])
		{
			pic.document['picture'].src=imageName;
			pic.resizeTo(pic.document['picture'].width+10, pic.document['picture'].height+30);
			pic.focus();
		}
		else
		{
	    	pic.document.write("<html> <head> <title> mckinneydentist.com </title></head>");
			pic.document.write("<body style='margin:0px' bgcolor='#ffffff'><div align='center'>");
			pic.document.write("<img src='");
			pic.document.write(imageName+"' border=0 name='picture' onload='window.resizeTo(this.width+25,this.height+50);'>");
			pic.document.write("</div></body></html>");
       }
	}
}
