<!--
var window_x,window_y;
/*
document.oncontextmenu = function(){
	return false;
}
*/
function newImage(arg) {
  if (document.images) {
    rslt = new Image();
    rslt.src = arg;
    return rslt;
  }
}

function changeImages() {
  if (document.images && (preloadFlag == true)) {
    for (var i=0; i<changeImages.arguments.length; i+=2) {
      document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
    }
  }
}

var preloadFlag = false;
function preloadImages() {
  if (document.images) {
    topNav_02_over = newImage("../images/topNav_02-over.gif");
    topNav_03_over = newImage("../images/topNav_03-over.gif");
    topNav_04_over = newImage("../images/topNav_04-over.gif");
    topNav_05_over = newImage("../images/topNav_05-over.gif");
    topNav_06_over = newImage("../images/topNav_06-over.gif");
    topNav_07_over = newImage("../images/topNav_07-over.gif");
    topNav_08_over = newImage("../images/topNav_08-over.gif");
    topNav_09_over = newImage("../images/topNav_09-over.gif");
    preloadFlag = true;
  }
}

function getDimensions(){
	if (self.innerHeight) // all except Explorer
	{
		window_x = self.innerWidth;
		window_y = self.innerHeight;
		
	}
	else if (document.documentElement && document.documentElement.clientHeight)
		// Explorer 6 Strict Mode
	{
		window_x = document.documentElement.clientWidth;
		window_y = document.documentElement.clientHeight;
	}
	else if (document.body) // other Explorers
	{
		window_x = document.body.clientWidth;
		window_y = document.body.clientHeight;
	}
}

function setContentArea(contentID){
	getDimensions();
	var content_height = window_y-88;
	var l = document.all ? document.all[contentID] : document.getElementById(contentID);
	var panoramaPic = document.all ? document.all['panoramaPic'] : document.getElementById('panoramaPic');
	if (panoramaPic) content_height -= 175;
	//content_height -= 175;
	l.style.height = content_height;
}

function textareaCounter(messageId, counterId, maxChars) {
	var myTextArea=document.getElementById(messageId);
	var myCounter=document.getElementById(counterId);
	if (myTextArea.value.length > maxChars) 
	    	myTextArea.value = myTextArea.value.substring(0, maxChars);
	else 
		myCounter.value = maxChars - myTextArea.value.length;
}
// -->