//Contents for menu 0
var menu0=new Array()
menu0[0]=''
  
// laptop
//mainWebUrl = "http://localhost:49865/BG/"

//live - temp
mainWebUrl = "http://www.bestgiftcertificates.com.au/"   //"http://svc143.wic018v.server-web.com/" //temp address

// Office
//mainWebUrl = "http://localhost:2447/BG/"


var city = '' ;

switch(stateId)
{
case '9':
  city = 'canberra/';
  break;
case '10':
 city = 'sydney/';
  break;
case '12':
 city = 'brisbane/';
  break;
case '13':
 city = 'adelaide/';
  break;
case '15':
 city = 'melbourne/';
  break;
case '16':
    city = 'perth/';
    break;
case '14':
  city = 'hobart-and-surrounds/';
  break;
case '11':
    city = 'darwin/';
    break;
default:
  city = '';
}


//Contents for menu 1
var menu1=new Array()
//menu1[0]='<a href="secondaryExperience.aspx?secondaryCategoryId=1">B&B</a>'
menu1[0] = '<a href="' + mainWebUrl + 'accommodation/bed-and-breakfast/'+city+'"' + '>B&B</a>'
menu1[1]='<a href="'+mainWebUrl+'accommodation/cheapest-hotels/'+city+'">Hotels</a>'
menu1[2]='<a href="'+mainWebUrl+'accommodation/loyalty-rewards/'+city+'">Loyalty Schemes</a>'
menu1[3]='<a href="'+mainWebUrl+'accommodation/romantic/'+city+'">Romantic</a>'
menu1[4]='<a href="'+mainWebUrl+'accommodation/travel-trips/'+city+'">Trips Away</a>'


//Contents for menu 2
var menu2=new Array()
menu2[0]='<a href="'+mainWebUrl+'activities-adventures/circus-tickets/'+city+'">Circus</a>'
menu2[1]='<a href="'+mainWebUrl+'activities-adventures/rock-climbing/'+city+'">Rock Climbing</a>'
menu2[2]='<a href="'+mainWebUrl+'activities-adventures/abseiling/'+city+'">Abseiling</a>'
menu2[3]='<a href="'+mainWebUrl+'activities-adventures/paintball/'+city+'">Paintball</a>'
menu2[4]='<a href="'+mainWebUrl+'activities-adventures/horseback-riding/'+city+'">Horse Riding</a>'
menu2[5]='<a href="'+mainWebUrl+'activities-adventures/something-different/'+city+'">Something Different</a>'

//Contents for menu 3
var menu3=new Array()
menu3[0]='<a href="'+mainWebUrl+'australia-wide/plant-vines/'+city+'">Sponsor a Vine</a>'
menu3[1]='<a href="'+mainWebUrl+'australia-wide/flowers-gifts/'+city+'">Flowers</a>'
menu3[2]='<a href="'+mainWebUrl+'australia-wide/gift-hampers/'+city+'">Hampers</a>'
menu3[3]='<a href="'+mainWebUrl+'australia-wide/chocolate-gift-baskets/'+city+'">Chocolates</a>'
menu3[4]='<a href="'+mainWebUrl+'australia-wide/something-different/'+city+'">Something Different</a>'

//Contents for menu 4
var menu4=new Array()
menu4[0]='<a href="'+mainWebUrl+'cruises/luxury-travel-cruises/'+city+'">Luxury Travel</a>'
menu4[1]='<a href="'+mainWebUrl+'cruises/whale-watching/'+city+'">Whale watching</a>'
menu4[2]='<a href="'+mainWebUrl+'cruises/scenic-cruise/'+city+'">Scenic</a>'


var menu5=new Array()
menu5[0]='<a href="'+mainWebUrl+'days-out/wine-tasting/'+city+'">Wine Tasting</a>'
menu5[1]='<a href="'+mainWebUrl+'days-out/high-tea/'+city+'">High Tea</a>'
menu5[2]='<a href="'+mainWebUrl+'days-out/day-tours/'+city+'">Day Tours</a>'
menu5[3]='<a href="'+mainWebUrl+'days-out/sports-event-tickets/'+city+'">Sports</a>'
menu5[4]='<a href="'+mainWebUrl+'days-out/something-different/'+city+'">Something Different</a>'

		
// dinning
var menu8=new Array()
menu8[0]='<a href="'+mainWebUrl+'dining/high-tea/'+city+'">High Tea</a>'
menu8[1]='<a href="'+mainWebUrl+'dining/romantic-dinner-gifts/'+city+'">Romantic Dinners</a>'
menu8[2]='<a href="'+mainWebUrl+'dining/winery/'+city+'">Wineries</a>'
menu8[3]='<a href="'+mainWebUrl+'dining/day-tours/'+city+'">Day Tours</a>'
menu8[4]='<a href="'+mainWebUrl+'dining/something-different/'+city+'">Something different</a>'

// driving
var menu9=new Array()
menu9[0]='<a href="'+mainWebUrl+'driving/motorcycle/'+city+'">Motorcycle</a>'
menu9[1]='<a href="'+mainWebUrl+'driving/rally-driving/'+city+'">Rally Driving</a>'
menu9[2]='<a href="'+mainWebUrl+'driving/ferrari-driving/'+city+'">Ferrari Driving</a>'
menu9[3]='<a href="'+mainWebUrl+'driving/quad-biking/'+city+'">Quad Biking</a>'
menu9[4]='<a href="'+mainWebUrl+'driving/karting/'+city+'">Karting</a>'

// entertainment
var menu10=new Array()
menu10[0]='<a href="'+mainWebUrl+'entertainment/personal-development/'+city+'">Personal Development</a>'
menu10[1]='<a href="'+mainWebUrl+'entertainment/shows/'+city+'">Shows</a>'


var menu11=new Array()
menu11[0]='<a href="'+mainWebUrl+'extreme/bungy/'+city+'">Bungy Jumping</a>'
menu11[1]='<a href="'+mainWebUrl+'extreme/boat-jet/'+city+'">Jet Boating</a>'
menu11[2]='<a href="'+mainWebUrl+'extreme/skydiving/'+city+'">Skydiving</a>'
menu11[3]='<a href="'+mainWebUrl+'extreme/joy-flights/'+city+'">Aerobatic Flights</a>'
menu11[4]='<a href="'+mainWebUrl+'extreme/something-different/'+city+'">Something different</a>'

var menu12=new Array()
menu12[0]='<a href="'+mainWebUrl+'flying/gliding/'+city+'">Gliding</a>'
menu12[1]='<a href="'+mainWebUrl+'flying/hot-air-balloon/'+city+'">Ballooning</a>'
menu12[2]='<a href="'+mainWebUrl+'flying/helicopter/'+city+'">Helicopter</a>'
menu12[3]='<a href="'+mainWebUrl+'flying/flight-training/'+city+'">Flying Lessons</a>'
menu12[4]='<a href="'+mainWebUrl+'flying/simulators/'+city+'">Simulators</a>'
menu12[5]='<a href="'+mainWebUrl+'flying/aerobatics/'+city+'">Aerobatic</a>'
menu12[6]='<a href="'+mainWebUrl+'flying/up-high/'+city+'">Up High</a>'


var menu14=new Array()
menu14[0]='<a href="'+mainWebUrl+'gourmet/cooking-school/'+city+'">Cooking Schools</a>'
menu14[1]='<a href="'+mainWebUrl+'gourmet/drink/'+city+'">Drink</a>'
menu14[2]='<a href="'+mainWebUrl+'gourmet/coffee-course/'+city+'">Coffee Schools</a>'
menu14[3]='<a href="'+mainWebUrl+'gourmet/chocolate-tasting/'+city+'">Chocolate Tasting</a>'
menu14[4]='<a href="'+mainWebUrl+'gourmet/hampers/'+city+'">Hampers</a>'

var menu15=new Array()
menu15[0]='<a href="'+mainWebUrl+'pamper/day-spa/'+city+'">Day Spa</a>'
menu15[1]='<a href="'+mainWebUrl+'pamper/nails/'+city+'">Nails</a>'
menu15[2]='<a href="'+mainWebUrl+'pamper/hair/'+city+'">Hair</a>'
menu15[3]='<a href="'+mainWebUrl+'pamper/make-over/'+city+'">Make-over</a>'
menu15[4]='<a href="'+mainWebUrl+'pamper/photography/'+city+'">Photography</a>'
menu15[5]='<a href="'+mainWebUrl+'pamper/massage/'+city+'">Massage</a>'
menu15[6]='<a href="'+mainWebUrl+'pamper/other/'+city+'">Other</a>'

var menu16=new Array()
menu16[0]='<a href="'+mainWebUrl+'recreation/golf/'+city+'">Golf</a>'
menu16[1]='<a href="'+mainWebUrl+'recreation/fishing/'+city+'">Fishing</a>'
menu16[2]='<a href="'+mainWebUrl+'recreation/walking/'+city+'">Walking</a>'
menu16[3]='<a href="'+mainWebUrl+'recreation/cycling/'+city+'">Cycling</a>'


var menu17=new Array()
menu17[0]='<a href="'+mainWebUrl+'unique-gifts/plan-vines/'+city+'">Sponsor a Vine</a>'
menu17[1]='<a href="'+mainWebUrl+'unique-gifts/photography/'+city+'">Photography</a>'
menu17[2]='<a href="'+mainWebUrl+'unique-gifts/steam-train-driving/'+city+'">Drive a Steam Train</a>'
menu17[3]='<a href="'+mainWebUrl+'unique-gifts/creative/'+city+'">Creative</a>'


var menu18=new Array()
menu18[0]='<a href="'+mainWebUrl+'water-sports/scuba-diving/'+city+'">Scuba Diving</a>'
menu18[1]='<a href="'+mainWebUrl+'water-sports/sailing/'+city+'">Sailing</a>'
menu18[2]='<a href="'+mainWebUrl+'water-sports/boat-jet/'+city+'">Jet Boating</a>'
menu18[3]='<a href="'+mainWebUrl+'swater-sports/fishing/'+city+'">Fishing</a>'
menu18[4]='<a href="'+mainWebUrl+'water-sports/kayaking/'+city+'">Kayaking</a>'
menu18[5]='<a href="'+mainWebUrl+'water-sports/rafting/'+city+'">Rafting</a>'
menu18[6]='<a href="'+mainWebUrl+'/water-sports/surfing/'+city+'">Surfing</a>'
menu18[7]='<a href="'+mainWebUrl+'water-sports/snorkelling/'+city+'">Snorkelling</a>'


var menu19=new Array()
menu19[0]='<a href="'+mainWebUrl+'wildlife/whale-watching/'+city+'">Whale Watching</a>'
menu19[1]='<a href="'+mainWebUrl+'wildlife/dolphins/'+city+'">Dolphins</a>'
menu19[2]='<a href="'+mainWebUrl+'wildlife/aquarium/'+city+'">Aquarium</a>'
menu19[3]='<a href="'+mainWebUrl+'wildlife/zoo/'+city+'">Zoo</a>'
menu19[4]='<a href="'+mainWebUrl+'wildlife/other/'+city+'">Other</a>'
	
	

	
		
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var horizontaloffset=0 //horizontal offset of menu from default location. (0-5 is a good value)

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width: 160px" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

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
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-obj.offsetWidth < 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 menu up?
edgeoffset=dropmenuobj.contentmeasure-obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either? (position at top of viewable window then)
edgeoffset=dropmenuobj.y
}
}
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")+obj.offsetWidth+horizontaloffset+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+"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)
}

