// JavaScript Document

function CtrHome()
{
 <!--
     // URL to counter scrip
 var path_to_counter     = '/cgi-bin/htmlfixitcounter/fixit-counter/stats.pl';
     // URL to spacer.gif
 var url_to_spacer_image = '/cgi-bin/htmlfixitcounter/counter/spacer.gif';
 var res_height = window.screen.height;
     // Change following http: part
 var str1 = '<img src="' + url_to_spacer_image;
     // Nothing below this line needs to be changed
 var res_width  = window.screen.width;
 var res        = res_width + 'x' + res_height;
 var refer      = document.referrer;
 var str2 = '" border=\'0\' width=\'1px\' height=\'2px\' name=\'fixitlink\'';
 var ref = refer.replace(/&/g,'%26');
     ref = ref.replace(/ /g,'%20');
 var url = path_to_counter + '?count=yes&res=' + res +  '&ref=' + ref;
 var str3 = '/>';
 preloadOn      = new Image(1, 1);
 preloadOn.src  = url;
 document.write(str1+str2+str3);
 -->
}

function Update()
{
	document.write("This page will be online soon.");
}

function SlideMenu(myMenu)
{
	var currentMenu;
	if (document.getElementById)
	{
		currentMenu = document.getElementById(myMenu).style;
		if (currentMenu.display == "block")
		{
			currentMenu.display = "none";
		}
		else
		{
			currentMenu.display = "block";
		}
		return false;
	}
	else
	{
		return true;
	}
}

function LoadImage(img) 
{
  	var a=new Image; a.src=img; return a; 
}

function BrowserDetermine()
{
	var modBrowser;
	
	if (document.getElementById)
	{
		modBrowser = true;
	}
	else
	{
		modBrowser = false;
	}
}

function RandomFact()
{
	var FactArray = new Array ("libProfKatie-Manx.jpg","libProfKobe-Sweatglands.jpg",
		"libProfCassius-color.jpg","libProfLolita-clowder.jpg",
		"libProfYoki-temp.jpg");	
	var NameArray = new Array ("Katie","Kobie","Cassius","Lolita","Yoki");
	var index = Math.floor(Math.random() * FactArray.length);
	var str = "<div class=SectionHeading1>Professor " + NameArray[index];
		str += "<\/div>" + 	"<img src=../library\/LibImages\/";
		str += FactArray[index] + " width=240 height=180 border=1>";
	document.write(str);
}

function StopRClick(browser) 
{
	var warning = "Copyright © 2008 North Shore Veterinary Clinic";
	if (navigator.appName == 'Netscape' && browser.which == 3) 
	{
		alert(warning);
		return false;
	}
	else
	{
		if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) 
		{
			alert(warning);
			return false;
		}
		return true;
	}
}	


function BreakFrames()
{
	if (self != top)
		top.location = self.location;
		document.onmousedown = StopRClick;
}
