<!--
var baseFolder = "http://www.brisbaneontheweb.com";
var cityName = "Brisbane";
var cityNameSmall = "brisbane";
var ie4=document.all;
var ns6=document.getElementById&&!document.all;
var javaOK = false;
if (navigator.javaEnabled())
javaOK = true;
var flashOK = false;
if (navigator.plugins && navigator.plugins.length) {
if ((navigator.plugins["Shockwave Flash"]) ||
(navigator.plugins["Shockwave Flash 2.0"]))
flashOK = true;
}
else if (navigator.mimeTypes && navigator.mimeTypes.length) {
x = navigator.mimeTypes['application/x-shockwave-flash'];
if (x && x.enabledPlugin)
flashOK = true;
}
else { // -- detection for IE
for(var i=7; i>0; i--) {
try {
var flash = new ActiveXObject("ShockwaveFlash.ShockwaveFlash." + i);
flashOK = true;
}
catch(e){
}
}
}
var categoryTips = new Array();
categoryTips[100] = 'go back to the ' + cityName + 'OnTheWeb.com home page...';													// -- Home
categoryTips[0] = 'all the essential information for travellers to ' + cityNameSmall + '...';								// -- Essential Info
categoryTips[1] = 'from hostels to 5 star hotels, book your accommodation here...';						// -- Where to Stay
categoryTips[2] = 'travel in peace - get your travel insurance here...';											// -- Travel Insurance
categoryTips[3] = 'drive around ' + cityNameSmall + ' - book your car here...';															// -- Car Hire
categoryTips[4] = 'fine dining in ' + cityNameSmall + ' - book your restaurant here...';											// -- Food and Wine
categoryTips[6] = 'tours and activities in ' + cityNameSmall + ' - book them here...';	// -- Things to do
categoryTips[7] = 'watch a slideshow of images of ' + cityNameSmall + '...';																	// -- Slideshow
categoryTips[9] = 'rain, hail or sunshine - get accurate forecasts here...';									// -- Weather
categoryTips[10] = 'find a good bargain - see all our specials here...';											// -- Specials
categoryTips[11] = 'how much does it cost in your currency? click and find out... <span class="smallText">(opens in a new window)</span>';						// -- Currency Converter
categoryTips[12] = 'getting lost? click here to see where you are on this site...';						// -- Site Map
categoryTips[14] = 'watch videos of ' + cityNameSmall + ' from other travellers - videos from youtube...';				// -- Videos
categoryTips[15] = 'travel tools - currency converter, weather info, watch videos and images etc...';				// -- Travel Tools
categoryTips[16] = 'travel stories from around the world...';				// -- Travel Stories
var correctwidth=1024;
var correctheight=768;
if (screen.width<correctwidth||screen.height<correctheight)
document.write('<div class="resolutionWarning">This web-site is best viewed with a screen resolution of '+correctwidth+' * '+correctheight+'. Your current resolution is '+screen.width+' * '+screen.height+'. If possible, please change the resolution so you can view the site better.</div>');
function init(){
}
function doSearch(passNumber){
if (passNumber == 1){
var elTitle = document.getElementById("searchTitle");
var elMoreOptionsTitle = document.getElementById("moreSearchOptions");
}
else
var keyword = document.searchForm.keyword.value;
switch (document.searchForm.searchCategories[document.searchForm.searchCategories.selectedIndex].value){
case "Hotels":
if (passNumber == 1){
elTitle.innerHTML = "Enter Hotel Name...";
elMoreOptionsTitle.innerHTML = "<a href='" + baseFolder + "/where_to_stay/' class='normalLink' title='Advanced Hotel Search.' target='_top'>advanced hotel search</a>";
}
else{
if (keyword == "")
goTo(baseFolder+"/where_to_stay/", "internal");
else
goTo(baseFolder+"/where_to_stay/hotels.php?inDay=&inMonth=&inYear=&outDay=&outMonth=&outYear=&star5=ON&star4=ON&star3=ON&country=Australia&city="+cityName+"&suburb=&hotelName="+keyword+"&searchBy=Name", "internal");
}
break;
case "EssentialInfo":
if (passNumber == 1){
elTitle.innerHTML = "Enter Keyword...";
elMoreOptionsTitle.innerHTML = "&nbsp;";
}
else{
if (keyword == "")
goTo(baseFolder+"/essential_info/", "internal");
else
goTo(baseFolder+"/essential_info/search/index.php?query="+keyword+"&B1=Search", "internal");
}
break;
case "ThingsToDo":
if (passNumber == 1){
elTitle.innerHTML = "Enter Keyword...";
elMoreOptionsTitle.innerHTML = "advanced things to do search";
}
else{
if (keyword == "")
goTo(baseFolder+"/things_to_do/", "internal");
else
alert("This feature will be implemented shortly...");
}
break;
default:
if (passNumber == 1){
elTitle.innerHTML = "Select a category...";
elMoreOptionsTitle.innerHTML = "&nbsp;";
}
else
alert("Please select a category...");
break;
}
}
function showTerms(){
document.getElementById("menu_termsLayer").style.display = '';
document.location = "#terms";
}
function goTo( whereTo, type ){
if (whereTo != "-1" && whereTo != "-100"){
if (type == "internal")
top.location = whereTo;
else if (type == "new")
newPage = window.open(whereTo, "", "");
else if (type == "framed")
newPage = window.open(baseFolder + "/cgi-bin/externalLink.py?url=" + whereTo, "", "");
}
else if (whereTo == "-1"){
alert("Please select a valid option from the list.");
}
else if (whereTo == "-100"){
return;
}
}
function currencyConverter(){
converter = window.open(baseFolder + "/essential_info/currency_converter.php", "SOTW_Currency_Converter", "toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width=675,height=470");
}
function toggleLayer(layerName, isButton){
var el = document.getElementById(layerName);
var elBtn = document.getElementById(layerName + "Button");
if (el.style.display == 'none'){
el.style.display = '';
if (isButton)
elBtn.src = baseFolder + "/images/gif/close_branch.gif";
}
else{
el.style.display = 'none';
if (isButton)
elBtn.src = baseFolder + "/images/gif/open_branch.gif";
}
}
function bookmarkWith(sitename,urlToAdd,titleToAdd){
switch(sitename){
case 'blinklist':
var site_url = "http://www.blinklist.com/index.php?Action=Blink/addblink.php";
var url_key = "url";
var title_key = "title";
var desc_key = "description";
var returnurl_key = "";
var other_params = "&Action=Blink/addblink.php";
break;
case 'delicious':
var site_url = "http://del.icio.us/post?";
var url_key = "url";
var title_key = "title";
var desc_key = "";
var returnurl_key = "";
var other_params = "";
break;
case 'digg':
var site_url = "http://digg.com/submit?";
var url_key = "url";
var title_key =  "";
var desc_key =  "";
var returnurl_key =  "";
var other_params = "&phase=2";
break;
case 'su':
var site_url = "http://www.stumbleupon.com/submit?";
var url_key = "url";
var title_key =  "title";
var desc_key =  "";
var returnurl_key =  "";
var other_params = "";
break;
case 'furl':
var site_url = "http://www.furl.net/storeIt.jsp?";
var url_key = "u";
var title_key = "t";
var desc_key = "";
var returnurl_key = "";
var other_params = "";
break;
case 'google':
var site_url = "http://fusion.google.com/add?";
var url_key = "feedurl";
var title_key = "";
var desc_key = "";
var returnurl_key = "";
var other_params = "";
break;
case 'simpy':
var site_url = "http://simpy.com/simpy/LinkAdd.do?";
var url_key = "href";
var title_key = "title";
var desc_key = "note";
var returnurl_key = "_doneURI";
var other_params = "&v=6&src=bookmarklet";
break;
case 'yahoo':
var site_url = "http://myweb2.search.yahoo.com/myresults/bookmarklet?";
var url_key = "u";
var title_key = "t";
var desc_key = "";
var returnurl_key = "";
var other_params = "&d=&ei=UTF-8";
break;
case 'spurl':
var site_url = "http://www.spurl.net/spurl.php?";
var url_key = "url";
var title_key = "title";
var desc_key = "blocked";
var returnurl_key = "";
var other_params = "&v=3";
break;
default:
}
var addtoFullURL = site_url + url_key + "=" + urlToAdd + "&" + title_key + "=" + titleToAdd + other_params;
if (desc_key != "")
var addtoFullURL = addtoFullURL + "&" + desc_key + "=" + titleToAdd;
if (returnurl_key != "")
var addtoFullURL = addtoFullURL + "&" + returnurl_key + "=" + urlToAdd;
goTo(addtoFullURL, 'new');
}
/***********************************************
* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
var menu_wts = new Array();
menu_wts[0] = '<a href="' + baseFolder + '/where_to_stay/" title="Find a ' + cityName + ' Hotel." target="_top" onmouseover="showCategoryDescriptorOnSubPages(1, false);" onmouseout="hideCategoryDescriptorOnSubPages(1, false);">find a ' + cityNameSmall + ' hotel</a>';
menu_wts[1] = '<a href="' + baseFolder + '/where_to_stay/last_minute_rates.php" title="Find Cheap Last Minute ' + cityName + ' Hotels." target="_top" onmouseover="showCategoryDescriptorOnSubPages(1, false);" onmouseout="hideCategoryDescriptorOnSubPages(1, false);">last minute rates</a>';
menu_wts[2] = '<a href="' + baseFolder + '/where_to_stay/specials.php" title="' + cityName + ' Hotel Specials." target="_top" onmouseover="showCategoryDescriptorOnSubPages(1, false);" onmouseout="hideCategoryDescriptorOnSubPages(1, false);">hotel specials</a>';
menu_wts[3] = '<a href="' + baseFolder + '/where_to_stay/top10.php" title="Top 10 Hotels in ' + cityName + '." target="_top" onmouseover="showCategoryDescriptorOnSubPages(1, false);" onmouseout="hideCategoryDescriptorOnSubPages(1, false);">top 10 hotels</a>';
menu_wts[4] = '<a href="' + baseFolder + '/where_to_stay/hostels/" title="Backpacker Hostels in ' + cityName + '." target="_top" onmouseover="showCategoryDescriptorOnSubPages(1, false);" onmouseout="hideCategoryDescriptorOnSubPages(1, false);">backpacker hostels</a>';
var menu_ei = new Array();
menu_ei[0] = '<a href="' + baseFolder + '/essential_info/" title="' + cityName + ' travel information, ' + cityName + ' Australia." target="_top" onmouseover="showCategoryDescriptorOnSubPages(0, false);" onmouseout="hideCategoryDescriptorOnSubPages(0, false);">search essential travel info</a>';
menu_ei[1] = '<a href="' + baseFolder + '/essential_info/content/international_travel_by_air.php" title="International Air Travel to and from ' + cityName + '." target="_top" onmouseover="showCategoryDescriptorOnSubPages(0, false);" onmouseout="hideCategoryDescriptorOnSubPages(0, false);">international travel</a>';
menu_ei[2] = '<a href="' + baseFolder + '/essential_info/content/domestic_travel_by_air.php" title="Domestic Air Travel to and from ' + cityName + '." target="_top" onmouseover="showCategoryDescriptorOnSubPages(0, false);" onmouseout="hideCategoryDescriptorOnSubPages(0, false);">domestic travel</a>';
menu_ei[3] = '<a href="' + baseFolder + '/essential_info/content/customs.php" title="Important Travel Information." target="_top" onmouseover="showCategoryDescriptorOnSubPages(0, false);" onmouseout="hideCategoryDescriptorOnSubPages(0, false);">important travel info</a>';
menu_ei[4] = '<a href="' + baseFolder + '/essential_info/content/by_bicycle.php" title="Getting Around ' + cityName + '." target="_top" onmouseover="showCategoryDescriptorOnSubPages(0, false);" onmouseout="hideCategoryDescriptorOnSubPages(0, false);">getting around ' + cityNameSmall + '</a>';
menu_ei[5] = '<a href="' + baseFolder + '/essential_info/content/business_hours.php" title="Practical Travel Info." target="_top" onmouseover="showCategoryDescriptorOnSubPages(0, false);" onmouseout="hideCategoryDescriptorOnSubPages(0, false);">practical info</a>';
var menu_ch = new Array();
menu_ch[0] = '<a href="' + baseFolder + '/car_hire/" title="Search for a Rental Car in ' + cityName + ' Australia." target="_top" onmouseover="showCategoryDescriptorOnSubPages(3, false);" onmouseout="hideCategoryDescriptorOnSubPages(3, false);">search for a car</a>';
menu_ch[1] = '<a href="' + baseFolder + '/car_hire/budget/" title="See all our Budget Rent a Car offers." target="_top" onmouseover="showCategoryDescriptorOnSubPages(3, false);" onmouseout="hideCategoryDescriptorOnSubPages(3, false);">budget cars</a>';
menu_ch[2] = '<a href="' + baseFolder + '/car_hire/europcar/" title="See all our Europcar offers." target="_top" onmouseover="showCategoryDescriptorOnSubPages(3, false);" onmouseout="hideCategoryDescriptorOnSubPages(3, false);">europcar cars</a>';
var menu_ttd = new Array();
menu_ttd[0] = '<a href="' + baseFolder + '/things_to_do/" title="Find things to do in ' + cityName + ' Australia." target="_top" onmouseover="showCategoryDescriptorOnSubPages(6, false);" onmouseout="hideCategoryDescriptorOnSubPages(6, false);">find an activity</a>';
var menu_ti = new Array();
menu_ti[0] = '<a href="' + baseFolder + '/travel_insurance/" title="Get travel insurance in Australia and worldwide." target="_top" onmouseover="showCategoryDescriptorOnSubPages(2, false);" onmouseout="hideCategoryDescriptorOnSubPages(2, false);">get a quote</a>';
var menu_fw = new Array();
menu_fw[0] = '<a href="' + baseFolder + '/food_and_wine/" title="Find a Restaurant in ' + cityName + ' Australia." target="_top" onmouseover="showCategoryDescriptorOnSubPages(4, false);" onmouseout="hideCategoryDescriptorOnSubPages(4, false);">search for restaurants</a>';
var menu_specials = new Array();
menu_specials[0] = '<a href="' + baseFolder + '/specials/" title="Special offers and last minute deals." target="_top" onmouseover="showCategoryDescriptorOnSubPages(10, false);" onmouseout="hideCategoryDescriptorOnSubPages(10, false);">view all specials</a>';
menu_specials[1] = '<a href="' + baseFolder + '/where_to_stay/specials.php" title="' + cityNameSmall + ' hotel specials." target="_top" onmouseover="showCategoryDescriptorOnSubPages(10, false);" onmouseout="hideCategoryDescriptorOnSubPages(10, false);">hotel specials</a>';
var menu_tt = new Array();
menu_tt[0] = '<a href="javascript:currencyConverter();" title="Currency Converter." target="_top" onmouseover="showCategoryDescriptorOnSubPages(11, false);" onmouseout="hideCategoryDescriptorOnSubPages(11, false);">currency converter</a>';
menu_tt[1] = '<a href="' + baseFolder + '/weather/" title="Weather Information." target="_top" onmouseover="showCategoryDescriptorOnSubPages(9, false);" onmouseout="hideCategoryDescriptorOnSubPages(9, false);">'+ cityNameSmall +' weather</a>';
menu_tt[2] = '<a href="' + baseFolder + '/photos/" title="Images of Sydney." target="_top" onmouseover="showCategoryDescriptorOnSubPages(7, false);" onmouseout="hideCategoryDescriptorOnSubPages(7, false);">photos</a>';
menu_tt[4] = '<a href="' + baseFolder + '/videos/" title="Youtube Videos." target="_top" onmouseover="showCategoryDescriptorOnSubPages(14, false);" onmouseout="hideCategoryDescriptorOnSubPages(14, false);">youtube videos</a>';
menu_tt[5] = '<a href="' + baseFolder + '/travel_stories/" title="Travel Stories." target="_top" onmouseover="showCategoryDescriptorOnSubPages(16, false);" onmouseout="hideCategoryDescriptorOnSubPages(16, false);">travel stories</a>';
var menuwidth='150px'; //default menu width
var menubgcolor='#999999';  //menu bgcolor
var disappeardelay=250;  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes"; //hide menu when user clicks within menu?
function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}
function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500;
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style;
dropmenuobj.widthobj.width=menuwidth;
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible;
else if (e.type=="click")
obj.visibility=hidden;
}
function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body;
}
function clearbrowseredge(obj, whichedge){
var edgeoffset=0;
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15;
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth;
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth;
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset;
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18;
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight;
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight;
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge;
}
}
return edgeoffset;
}
function clearbrowseredge1(obj, whichedge){
var edgeoffset=0;
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15;
weatherSection.contentmeasure=weatherSection.offsetWidth;
if (windowedge-weatherSection.x < weatherSection.contentmeasure)
edgeoffset=weatherSection.contentmeasure-obj.offsetWidth;
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset;
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18;
weatherSection.contentmeasure=weatherSection.offsetHeight;
if (windowedge-weatherSection.y < weatherSection.contentmeasure){ //move up?
edgeoffset=weatherSection.contentmeasure+obj.offsetHeight;
if ((weatherSection.y-topedge)<weatherSection.contentmeasure) //up no good either?
edgeoffset=weatherSection.y+obj.offsetHeight-topedge;
}
}
return edgeoffset;
}
function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("");
}
function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event)
event.cancelBubble=true;
else if (e.stopPropagation)
e.stopPropagation();
clearhidemenu();
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv;
populatemenu(menucontents);
if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth);
dropmenuobj.x=getposOffset(obj, "left");
dropmenuobj.y=getposOffset(obj, "top");
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px";
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px";
}
return clickreturnvalue();
}
function clickreturnvalue(){
if (ie4||ns6)
return false;
else
return true;
}
function contains_ns6(a, b){
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}
function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu();
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu();
}
function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden";
}
}
function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay);
}
function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide);
}
if (hidemenu_onclick=="yes")
document.onclick=hidemenu;
-->
