
siteUrl = "http://link2hotels.com/"
nftimeout = setTimeout("NoFlash()", 10000); 	// 5 seconds
//	function NoFlash() {window.location="http://link2hotels.com/indexnf.html";}
function NoFlash() {window.location="http://worldhotelsyellowpages.com/findhotels.asp";}
function FlashOK() {clearTimeout(nftimeout);} 

//	uuu = document.location.href;
//	rdir = "not";
//	i = uuu.indexOf('/?');
//	if (i != -1) {
//		rdir = "http://www.updatemyhotel.com/index.asp?" + uuu.substring(i+2,999);
//		//	alert (rdir);
//		FlashOK();
//		window.location = rdir;
//	
//	} else {
//		i = uuu.indexOf('?');
//		if (i != -1) {
//			rdom = uuu.substring(i+1,999);
//		} else {
//			uuu = document.referrer.toString();
//			rer  = /([a-z0-9_-]*)\.[^.]*$/i;
//			if (rer.test(uuu)) {
//				rea  = rer.exec(uuu); 
//				if (rea[1]) rea = rea[1];
//				rdom = rea.toLowerCase();
//			} else {
//				rdom = "";
//			}
//		}
//	}

if (typeof(ref) != "string") ref = "";

function OpenDU() {
	FlashOK();
	window.location = siteUrl + "indexdu.html" + rdom;
}

function GoHome() {
	FlashOK();
	window.location = "../index.php";
}

function GoFlash(langCode) {
	FlashOK();
	//	if (rdir == "not") {
		//	var	gotoUrl = siteUrl+"indexff.html?"+rdom+"&langCode="+langCode;
		var	gotoUrl = siteUrl+"indexff.php?ref="+ref+"&langCode="+langCode;
		//	alert ("gotoUrl=" + gotoUrl);
		var w=window.open(gotoUrl, 'f', 'top=0,left=6,width='+(screen.width-22)+',height='+(screen.height-120)+',resizable,menubar=1'); 
		w.focus();
	//	} else {
	//		window.location = rdir;
	//	}
}

function OpenBig() {
	FlashOK();
	if (rdir == "not") {
		var w=window.open(siteUrl+"indexf.html"+rdom,'f','top=0,left=6,width='+(screen.width-22)+',height='+(screen.height-120)+',resizable,menubar=1'); 
		w.focus();
	} else {
		window.location = rdir;
	}
}


bmUrl	= document.location.href; 
bmTitle	= "Link2Hotels"; 
function BookMark () {
	if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) { 
		document.write('&nbsp;&nbsp;&nbsp;<a href="javascript:window.external.AddFavorite(bmUrl,bmTitle);"'); 
		//	document.write(' onMouseOver=" window.status=' + "'Add our site to your favorites!'; return true;" + '"'); 
		//	document.write(' onMouseOut=" window.status=' + "' '; return true;" + '"'); 
		document.write('>Add this site to your favorites!</a>'); 
	} else { 
		var msg = "Don't forget to bookmark " + bmTitle + "!"; 
		if (navigator.appName == "Netscape") {
			if (navigator.appVersion.toLowerCase().indexOf("mac") != -1) {
				msg += " (Apple-D)"; 
			} else {
				msg += " (CTRL-D)"; 
			}
		}
		document.write (msg); 
	}
}


