﻿// JScript File
var xmlHttp;

function showSubMenu(str)
{ 
 if (str == 0)
  {
   return;
  }
 xmlHttp=GetXmlHttpObject();
 if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
 var url="getCategory.aspx?page=" + str; 
 xmlHttp.onreadystatechange=stateChanged;
 xmlHttp.open("GET",url,true);
 xmlHttp.send(null);
}

function showEventsCat(str) //handler for new evnet module
{ 
 if (str == 0)
  {
   return;
  }
 xmlHttp=GetXmlHttpObject();
 if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
 var url="getEventCat.aspx"; 
 xmlHttp.onreadystatechange=stateChanged;
 xmlHttp.open("GET",url,true);
 xmlHttp.send(null);
}

function showBlogArchive()
{ 
 xmlHttp=GetXmlHttpObject();
 if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
 var url="getBlogArchive.aspx"; 
 xmlHttp.onreadystatechange=stateChanged;
 xmlHttp.open("GET",url,true);
 xmlHttp.send(null);
}

function getSubList(tbname, category)
{
 xmlHttp=GetXmlHttpObject();
 if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  }
 var url="getList.aspx?tbname=" + tbname + "&category=" + category;
 xmlHttp.onreadystatechange=stateChanged3;
 xmlHttp.open("GET",url,true);
 xmlHttp.send(null);
}

function getEventList(category)
{
 xmlHttp=GetXmlHttpObject();
 if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  }
 var url="getEventList.aspx?category=" + category;
 xmlHttp.onreadystatechange=stateChanged3;
 xmlHttp.open("GET",url,true);
 xmlHttp.send(null);
}

function getBlogs(month, year)
{
 xmlHttp=GetXmlHttpObject();
 if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  }
 var url="getBlogs.aspx?month=" + month + "&year=" + year;
 xmlHttp.onreadystatechange=stateChanged3;
 xmlHttp.open("GET",url,true);
 xmlHttp.send(null);
}

function showOpRegion(str)
{
 xmlHttp=GetXmlHttpObject();
 if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  }
 var url="showopsregion.jsp?oid="+str;
 xmlHttp.onreadystatechange=stateChanged;
 xmlHttp.open("GET",url,true);
 xmlHttp.send(null);
}

function showPart(filename,param)
{
 if (param == 0)
 { 
  return;
 }
 xmlHttp=GetXmlHttpObject();
 if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  }
 var url = filename + ".jsp?rid=" + param;
 xmlHttp.onreadystatechange=stateChanged;
 xmlHttp.open("GET",url,true);
 xmlHttp.send(null);
}

function showPropertyList(filename,param,param2)
{
 if (param == 0)
 {
  return;
 }
 xmlHttp=GetXmlHttpObject();
 if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  }
 var url = filename + ".jsp?tid=" + param2 + "&region=" + param;
 xmlHttp.onreadystatechange=stateChanged2;
 xmlHttp.open("GET",url,true);
 xmlHttp.send(null);
}

function stateChanged(str) 
{ 
 if (xmlHttp.readyState==4)
 { 
 document.getElementById("showpane").innerHTML=xmlHttp.responseText;
 }
}

function stateChanged2(str)
{  
 if (xmlHttp.readyState==4)
 {
 document.getElementById("showpane2").innerHTML=xmlHttp.responseText;
 }
}

function stateChanged3(str)
{  
 if (xmlHttp.readyState==4)
 {
 document.getElementById("showpane3").innerHTML=xmlHttp.responseText;
 }
}

function GetXmlHttpObject()
 {
 var xmlHttp=null;
 try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
 catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
 return xmlHttp;
}

function msgposit(){ 
	message.style.posLeft = event.x + 10 + document.body.scrollLeft 
	message.style.posTop = event.y - 10 + document.body.scrollTop 
} 

function msgposit1008(){ 
	message.style.posLeft = event.x + 10 + document.body.scrollLeft 
	message.style.posTop = event.y + 300//- 10 + document.body.scrollTop 
}

function msgposit1008_2(){ 
	message.style.posLeft = event.x + 10 + document.body.scrollLeft 
	message.style.posTop = event.y + 340//- 10 + document.body.scrollTop 
}

function msgset(){ 
	var text 
	text = '<table border="0" cellpadding="1" cellspacing="0" style="font-size:9pt; border-width:1; border-color:black; border-style:solid; word-break:break-all;"><tr><td width="200" bgcolor="white" style="filter:alpha(opacity=90);"><table cellpadding="6" cellspacing="0" width="100%"><tr><td width="190"><p align="left" class="style1"><b><br><nobr>Chef Burtwell specializes in preparing </nobr><nobr>only the freshest seafood, certified </nobr><nobr>Angus beef, wild game and ranch fare, </nobr><nobr>complimented by exquisite desserts such as </nobr><nobr>the seasonal Honey Lavender Peach Crisp.</nobr></b></p>' + 
                '<p align="left" class="style1"><b><nobr>Cotton Gin Restaurant boasts the largest </nobr><nobr>restaurant based Texas wine list in the </nobr><nobr>state, as well as a full bar of premium </nobr><nobr>liquors and beers.</nobr></b><br>&nbsp;</p></td></tr></table></td></tr></table>'
	message.innerHTML=text 
} 

function msgset1008(){ 
	var text 
	text = '<table border="0" cellpadding="1" cellspacing="0" style="font-size:9pt; border-width:1; border-color:black; border-style:solid;"><tr><td width="500" bgcolor="white" style="filter:alpha(opacity=90);"><table cellpadding="6" cellspacing="0" width="100%"><tr><td><p align="left"><b>Rose Hill\'s Chef Seth has been trained by many of the best chefs in California. Chef Seth came to Rose Hill in 2007, after leaving The Restaurant at Meadowood Resort, which has just been awarded the Michelin Two Star designation. The Meadowood Resort is in Napa Valley and is a AAA Four Diamond, Mobil Four Star, Relais and Chateau property. There, <nobr>Seth</nobr> was trained by Chef Joe Humphries, who had previously been the Chef de Cuisine <nobr>at</nobr> George Marone\'s acclaimed Fifth Floor Restaurant in San Francisco and who had been the corporate chef for Michael Mina\'s array of fine restaurants. Seth attended the California Culinary Academy in San Francisco. After that, Seth spent two years at The Lodge at <nobr>Torrey</nobr> Pines (a AAA Five Diamond, Mobil Four Star Property) where he learned all the <nobr>stations</nobr> of the kitchen from Chef Steve Riemer and Chef Tim Kalanko. Seth also worked at the famed Hotel Del Coronado, in San Diego, in their fine dining restaurant - The Prince of Wales. </b></p>' + 
                '<p align="left"><b>At Rose Hill Seth works hard to find local products that can be combined with specialties <nobr>from</nobr> around the world to provide wonderful cuisine in a relaxed and friendly, but also <nobr>luxurious</nobr> environment. &nbsp;</b></td></tr></table></td></tr></table>'
	message.innerHTML=text 
} 

function msgset1008_2(){ 
	var text 
	text = '<table border="0" cellpadding="1" cellspacing="0" style="font-size:9pt; border-width:1; border-color:black; border-style:solid;"><tr><td width="500" bgcolor="white" style="filter:alpha(opacity=90);"><table cellpadding="6" cellspacing="0" width="100%"><tr><td><p align="left"><b>Rose Hill Manor is a luxury country inn and restaurant near Fredericksburg, Texas in the Heart of the Texas Hill County. The restaurant offers both breakfast and dinner served at private tables, just like any upscale restaurant, and room service is available for either (for a nominal fee).</b></p>' + 
                '<p align="left"><b>This Texas Hill Country Inn, situated near the Lyndon B. Johnson parks on a hill with a spectacular view of the Pedernales River Valley, is a fine replica of a grand Charleston plantation-style house. The wide, four seasons verandas encircling both the first and second floors command a breathtaking view of the Texas Hill Country. The Inn has relaxing, luxurious, and spacious private and public rooms. And the three-story cupola, sweeping staircase, tall bay windows, French doors, and high ceilings create an aura of grandeur invoking the best of Texas hospitality.&nbsp;</b></p></td></tr></table></td></tr></table>'
	message.innerHTML=text 
} 

function msghide(){ 
	message.innerHTML='' 
}