function browser_name() {
		var browser_name = navigator.appName;
		return browser_name;
	}

	function browser_version() {
		var browser_version = parseFloat(navigator.appVersion);
		return browser_version;
	}

	function browser_os() {
		if(navigator.appVersion.indexOf("Win95") > 0) return "WIN95";
		else if(navigator.appVersion.indexOf("Win16") > 0) return "WIN31";
		else if(navigator.appVersion.indexOf("WinNT") > 0) return "NT";
		else if(navigator.appVersion.indexOf("Mac") > 0) return "MAC";
		else if(navigator.appVersion.indexOf("UNIX") > 0) return "UNIX";
		else return "UNKNOWN";
	}

var browserOk = false;

if (browser_name() == "Netscape" && browser_version() >= 3.0) browserOk = true;
else if (browser_name() == "Microsoft Internet Explorer" && browser_version() >= 3.0) browserOk = true;

function chg_button(titlename, onoff) 
{

 if (browserOk == true) {
		if (onoff == "on") {
			document[titlename].src = "/images/button_" + titlename + "_on.gif";
		}
		else
		{
			document[titlename].src = "/images/button_" + titlename + "_off.gif";
		}
	}
}

function chg_img(titlename, onoff) 
{

 if (browserOk == true) {
		if (onoff == "on") {
			document[titlename].src = "images/button_" + titlename + "_on.gif";
		}
		else
		{
			document[titlename].src = "images/button_" + titlename + "_off.gif";
		}
	}
}

function chg_button_jpg(titlename, onoff) 
{

 if (browserOk == true) {
		if (onoff == "on") {
			document[titlename].src = "/images/button_" + titlename + "_on.jpg"
		}
		else
		{
			document[titlename].src = "/images/button_" + titlename + "_off.jpg";
		}
	}
}

function small_chg(titlename, onoff) 
{

 if (browserOk == true) {
		if (onoff == "on") {
			document[titlename].src = "/images/block_small_on.gif"
		}
		else
		{
			document[titlename].src = "/images/block_small_off.gif";
		}
	}
}

function chg_home(onoff) {

 if (browserOk == true) {
			document.home.src = "/images/button_home_" + onoff + ".jpg";
	}
}


function chg_tab(titlename, onoff) 
{

 if (browserOk == true) {
		if (onoff == "on") {
			document[titlename].src = "/images/tab_" + titlename + "_on.gif"
		}
		else
		{
			document[titlename].src = "/images/tab_" + titlename + "_off.gif";
		}
	}
}

function makeArray(n){
  this.length = n;
  for (i=1;i<=n;i++){
    this[i]=0;
  }
  return this;
}

function displayDate() {
  var this_month = new makeArray(12);
    this_month[0]  = "January";
    this_month[1]  = "February";
    this_month[2]  = "March";
    this_month[3]  = "April";
    this_month[4]  = "May";
    this_month[5]  = "June";
    this_month[6]  = "July";
    this_month[7]  = "August";
    this_month[8]  = "September";
    this_month[9]  = "October";
    this_month[10] = "November";
    this_month[11] = "December";
  var today = new Date();
  var day   = today.getDate();
  var month = today.getMonth();
  var year  = today.getFullYear();
  document.write(this_month[month]+" "+day+", "+year);
}

function open_image (imagefile) {

date = new Date();
counter = Math.floor((date.getSeconds()/60)*100);

	new_window = window.open ("view_image.asp?imagefile=" + imagefile,"a" + counter + "a","width=680,height=500,toolbar=no,location=no,scrollbars=yes,directories=no,menubar=no,resizable=yes");
}

function open_tour () {

	new_window = window.open ("view_tour.asp","tour","width=460,height=400,toolbar=no,location=no,scrollbars=yes,directories=no,menubar=no,resizable=yes");
}

function insert_testimonial() {

var testimonial = new Array();
var author = new Array();

counter = 0;

testimonial[counter] = "";
author[counter] = "";
counter++;

date = new Date();
pick=Math.floor((date.getSeconds()/60)*testimonial.length);

document.write('\"' + testimonial[pick] + '\" ' + author[pick])

}


function insert_image () {

	var image_1 = new Array(); 
	var image_2 = new Array();
	var image_3 = new Array();
	var image_total = new Array();
		
	counter = 0;

//image_1[counter] = "/front_images/IMG_0068.jpg";
//image_2[counter] = "/front_images/IMG_0162.jpg";
//image_3[counter] = "";
//image_total[counter] = 2;
//counter++;

//image_1[counter] = "/front_images/IMG_0137.jpg";
//image_2[counter] = "/front_images/IMG_0070.jpg";
//image_3[counter] = "";
//image_total[counter] = 2;
//counter++;

//image_1[counter] = "/front_images/IMG_0076.jpg";
//image_2[counter] = "/front_images/IMG_0129.jpg";
//image_3[counter] = "";
//image_total[counter] = 2;
//counter++;

//image_1[counter] = "/front_images/IMG_0093.jpg";
//image_2[counter] = "/front_images/IMG_0127.jpg";
//image_3[counter] = "";
//image_total[counter] = 2;
//counter++;

//image_1[counter] = "/front_images/IMG_0095.jpg";
//image_2[counter] = "/front_images/IMG_0114.jpg";
//image_3[counter] = "";
//image_total[counter] = 2;
//counter++;

image_1[counter] = "/front_images/IMG_0162.jpg";
image_2[counter] = "/front_images/IMG_0153.jpg";
image_3[counter] = "";
image_total[counter] = 2;
counter++;

image_1[counter] = "/front_images/IMG_0432.jpg";
image_2[counter] = "/front_images/IMG_0162.jpg";
image_3[counter] = "";
image_total[counter] = 2;
counter++;

//image_1[counter] = "/front_images/IMG_0105.jpg";
//image_2[counter] = "/front_images/IMG_0152.jpg";
//image_3[counter] = "";
//image_total[counter] = 2;
//counter++;

//image_1[counter] = "/front_images/IMG_0112.jpg";
//image_2[counter] = "/front_images/IMG_0121.jpg";
//image_3[counter] = "";
//image_total[counter] = 2;
//counter++;

//image_1[counter] = "/front_images/IMG_0123.jpg";
//image_2[counter] = "/front_images/IMG_0145.jpg";
//image_3[counter] = "";
//image_total[counter] = 2;
//counter++;

image_1[counter] = "/front_images/IMG_0085.jpg";
image_2[counter] = "";
image_3[counter] = "";
image_total[counter] = 1;
counter++;

//image_1[counter] = "/front_images/IMG_0098.jpg";
//image_2[counter] = "";
//image_3[counter] = "";
//image_total[counter] = 1;
//counter++;

//image_1[counter] = "/front_images/IMG_0100.jpg";
//image_2[counter] = "";
//image_3[counter] = "";
//image_total[counter] = 1;
//counter++;

//image_1[counter] = "/front_images/IMG_0117.jpg";
//image_2[counter] = "";
//image_3[counter] = "";
//image_total[counter] = 1;
//counter++;

//image_1[counter] = "/front_images/IMG_0132.jpg";
//image_2[counter] = "";
//image_3[counter] = "";
//image_total[counter] = 1;
//counter++;

//image_1[counter] = "/front_images/IMG_0143.jpg";
//image_2[counter] = "";
//image_3[counter] = "";
//image_total[counter] = 1;
//counter++;

image_1[counter] = "/front_images/IMG_0157.jpg";
image_2[counter] = "";
image_3[counter] = "";
image_total[counter] = 1;
counter++;

image_1[counter] = "/front_images/IMG_0436.jpg";
image_2[counter] = "";
image_3[counter] = "";
image_total[counter] = 1;
counter++;

image_1[counter] = "/front_images/IMG_0439.jpg";
image_2[counter] = "";
image_3[counter] = "";
image_total[counter] = 1;
counter++;

image_1[counter] = "/front_images/IMG_0446.jpg";
image_2[counter] = "";
image_3[counter] = "";
image_total[counter] = 1;
counter++;


// End image Definitions

	date = new Date();
	pick_image=Math.floor((date.getSeconds()/60)*image_1.length);

	document.write("<img border='1' src='" + image_1[pick_image] + "'>");

	if (image_total[pick_image] > 1) {
		document.write(" &nbsp; &nbsp; &nbsp; <img border='1' src='" + image_2[pick_image] + "'>");
	}

	if (image_total[pick_image] > 2) {
		document.write(" &nbsp; &nbsp; &nbsp; <img border='1' src='" + image_3[pick_image] + "'>");
	}

}

function writeMovie() {
	var browsername = navigator.appName;
	if(browsername == "Microsoft Internet Explorer") {
		document.write('<object id="id8" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="360" height="300" style="height: 300px; width: 360px; z-index: 1; "><param name="src" value="StudiosSM.mov" /><param name="controller" value="true" /><param name="autoplay" value="false" /><param name="scale" value="tofit" /><param name="volume" value="100" /><param name="loop" value="false" /></object>');
	}
	else if(browsername == "iPhone") {
		document.write('<object id="id8" type="video/quicktime" width="360" height="300" style="height: 300px; width: 360px; z-index: 1; "><param name="src" value="images/StudiosSM.jpg"/><param name="target" value="myself"/><param name="href" value="StudiosSM.mov"/><param name="controller" value="true"/><param name="scale" value="tofit"/></object>');
	}
	else {
		document.write('<object id="id8" type="video/quicktime" width="360" height="300" data="StudiosSM.mov" style="height: 300px; width: 360px; z-index: 1; "><param name="src" value="StudiosSM.mov"/><param name="controller" value="true"/><param name="autoplay" value="false"/><param name="scale" value="tofit"/><param name="volume" value="100"/><param name="loop" value="false"/></object>');
	}
}









