window.name = "main";
function menuclicked() {
w = window.open("awt_menu2.html","temp","resizable,top=0,left=10,width=600,height=510");
}

var topurl = new String(top.location);
if (topurl.indexOf("google.com") == -1) {
if (top.location != self.location) {
  top.location = self.location
}
}

var faux = null;
var PreviousUrl;
function targwin()
{
  strUrl = arguments[0];
  strTarg = arguments[1];
  if (arguments.length == 4){
	strWid = arguments[2];
	strHgt = arguments[3];    
  }
  else
  {
	strWid = "900";
	strHgt = "640";    
  }
  if(faux == null || faux.closed)
  {
    faux = window.open(strUrl,strTarg,"location,toolbar,menubar,status,resizable,scrollbars,width="+strWid+",height="+strHgt+",top=10,left=20");
	if(faux == null)
	{
		alert('We have detected that you are using popup blocking software.\nPlease disable or allow popups for this website.');
	}
  }
  else if(PreviousUrl != strUrl)
  {
    faux = window.open(strUrl,strTarg,"location,toolbar,menubar,status,resizable,scrollbars,width="+strWid+",height="+strHgt+",top=10,left=20");
    faux.focus();
  }
  else
  {
    faux.focus();
  };
  PreviousUrl = strUrl;
}

sfHover = function() {
	if (document.getElementById("navbar") != null) {
		var sfEls = document.getElementById("navbar").getElementsByTagName("LI");
		for (var i=0; i<sfEls.length; i++) {
			sfEls[i].onmouseover=function() {
				this.className+=" sfhover";
			}
			sfEls[i].onmouseout=function() {
				this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			}
		}
	}
}

if (window.attachEvent) window.attachEvent("onload", sfHover);

sf2Hover = function() {
	if (document.getElementById("menubar") != null) {
		var sfEls = document.getElementById("menubar").getElementsByTagName("LI");
		for (var i=0; i<sfEls.length; i++) {
			sfEls[i].onmouseover=function() {
				this.className+=" sf2hover";
			}
			sfEls[i].onmouseout=function() {
				this.className=this.className.replace(new RegExp(" sf2hover\\b"), "");
			}
		}
	}
}

if (window.attachEvent) window.attachEvent("onload", sf2Hover);

function targwinM(cityState, strTarg)
{
  newGroup = cityState.options[cityState.selectedIndex].value;
  arrayGroup = newGroup.split(",");
  City = arrayGroup[0];
  State = arrayGroup[1];
//  strUrl =   "http://www.tkqlhce.com/click-2503554-10438393?url=http%3A%2F%2Ftravel.ian.com%2Findex.jsp%3FpageName%3DhotNetList%26cid%3D131241%26city%3D" + City + "%26stateProvince%3D" + State + "%26country%3DUS%26hotel%3D2";
  strUrl = "http://www.jdoqocy.com/click-2503554-10780389?url=http%3A%2F%2Fwww.hotels.com%2FPPCSearch%3Fcity%3D" + City + "%2C+" + State + "%26dateless%3Dtrue%26sortBy%3D4";
  targwin(strUrl, strTarg, 1024, 768);
}

function targwinN(strUrl, strTarg)
{
  targwin(strUrl, strTarg, 600, 850);
}

