var SCROLL_RATE = 100;
var SCROLL_CHARS = 1;
var MESSAGED = "For a truly great Relaxing Vacation, Try Goodyears Bar, CA. " +
    "...Helm's St. Charles Hotel.    ...A truly unique Bed and Breakfast." +
    " ..Phone (530)289-0910 Today!...............";
var marqueeMessage = new String();
var isMac = 0;
var isWin = 0;
var isOtherOS = 0;
if (navigator.appVersion.indexOf('Mac') != -1)  {isMac = 1;}
else { 
    if (navigator.appVersion.indexOf('Win') != -1)  {isWin = 1;}
    else {isotherOS = 1; }
}
    function show_cform() {  
        o = document.getElementById("comment_form");
        if (o)  {o.style.display = ""; }
        o = document.getElementById("comment_link");
        if (o) { o.style.display = "{none"; }
    {

//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com

var message="Function Disabled!";

///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")


function openWindow(theURL,winName,winWidth,winHeight,otherFeatures) {
   var x = 0;
   var y = 0;
   x = (screen.availWidth - 12 - winWidth) / 2;
   y = (screen.availHeight - 48 - winHeight) / 2;
   if (otherFeatures != "") {otherFeatures = "," + otherFeatures}
   var features = "screenX=" + x + ",screenY=" + y + ",width=" + winWidth +
",height=" + winHeight+",top="+y+",left="+x+"'" + otherFeatures
   var NewWindow = window.open(theURL,winName,features);
   NewWindow.focus();
}

function open2Window(url, name, param) {
	  popupWin = window.open(url, name, param)
	}



//used function
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function xx_preload_images() { //v3.0
  var d=document; if(d.images){ if(!d.xx_p) d.xx_p=new array();
    var i,j=d.xx_p.length,a=xx_preload_images.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.xx_p[j]=new image; d.xx_p[j++].src=a[i];}}
}

function xx_swap_img_restore() { //v3.0
  var i,x,a=document.xx_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}




function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


function showBlowup(divID,imageID) {
if(document.layers) {
//Navigator 4 model
var divObject = document.layers[divID]
var imageObject = document.images[imageID]
divObject.pageX = imageObject.x
divObject.pageY = imageObject.y
divObject.visibility = "visible"
} else if(document.all) {
//Internet Explorer model
var divStyle = document.all.item(divID).style
var imageObject = document.images[imageID]
divStyle.posLeft = (window.event.clientX - window.event.offsetX)
divStyle.posTop = (window.event.clientY - window.event.offsetY +
document.body.scrollTop)
if(navigator.appVersion.indexOf("Mac")>=0) { // work around Mac IE bug
  divStyle.posTop -= document.body.scrollTop
  }
  divStyle.visibility = "visible"
}
}

function hideBlowup(divID) {
if(document.layers) {
 var divObject = document.layers[divID]
 divObject.visibility = "hidden"
} else if(document.all) {
//Use IE DHTML
 var divStyle = document.all.item(divID).style
 divStyle.visibility = "hidden"
 }
}

function showBlowupInNewWindow(imageFileURL,width,height) {
//Workaround for Navigator 6
windowOptions=
"directories=0,menubar=0,personalbar=0,status=0,resizable=1,width="
windowOptions += width + ",height=" + height
window.open(imageFileURL,"nav6workaround",windowOptions)
}



function JSMarquee() {
   setTimeout( 'JSMarquee()', SCROLL_RATE );
   marqueeMessage = document.marqueeForm.marqueeText.value;
   document.marqueeForm.marqueeText.value =
    marqueeMessage.substring( SCROLL_CHARS) +
    marqueeMessage.substring( 0, SCROLL_CHARS);
    } /* end JSMarquee */

function selectTab(n) {
	var panelID = "p1"
	var numDiv = 8
	// iterate all tab-panel pairs
	for(var i=0; i < numDiv; i++) {
		var panelDiv = window.document.getElementById(panelID+"panel"+i)
		var tabDiv = document.getElementById(panelID+"tab"+i)
		z = panelDiv.style.zIndex
		// if this is the one clicked and it isn't in front, move it to the front
		if (z != numDiv && i == n) { z = numDiv }
		// in all other cases move it to the original position
		else { z = (numDiv-i) }
		panelDiv.style.zIndex = z;
		tabDiv.style.zIndex = z;
	}
}

