<!--

// please have banners as absolute urls for the discussion forum

// set banner to 0 to show the default banner
// set it to x to show the required banner

var banner = "6" /* current*/

var strBanner = "";

if (banner=="1"){
// Join Bridal Club 2
document.write("<a href=\"/asp/bridalClub/accountDetails.asp\" target=\"_top\"><img src=\"http://nzweddingplanner.co.nz/banners/Banner-BC_2.gif\" alt=\"NZ Wedding Planner\" width=\"468\" height=\"60\" border=\"0\"></a>")
	}

else if (banner=="2"){
// Advertising fliping coin
document.write("<a href=\"/asp/weddingSearch/registerCompany.asp\" target=\"_top\"><img src=\"http://nzweddingplanner.co.nz/banners/Adv-FC.gif\" alt=\"NZ Wedding Planner\" width=\"468\" height=\"60\" border=\"0\"></a>")
	}


else if (banner=="3") {
// PWE
document.write("<a href=\"http://www.bridalshows.co.nz\" target=\"_blank\"><img src=\"http://www.nzweddingplanner.co.nz/banners/PWE2-468x60.gif\" alt=\"Wedding Expo\" width=\"468\" height=\"60\" border=\"0\"></a>")
	}


else if (banner=="6") {
// Current Paid Advertiser
document.write("<a href=\"http://hyattevents.co.nz/hyatt-events/hyatt-wedding-expo.aspx\" target=\"_blank\"><img src=\"http://nzweddingplanner.co.nz/banners/Hyatt.gif\" alt=\"MBanner\" width=\"468\" height=\"60\" border=\"0\"></a>")
	}



else {
// better living
document.write("<a href=\"http://www.betterliving.co.nz/net/forums/default.aspx\" target=\"_blank\"><img src=\"http://www.nzweddingplanner.co.nz/images/banners/bl_468-60-blue.gif\" alt=\"Better Living - New Zealands Ultimate Lifestyle website\" width=\"468\" height=\"60\" border=\"0\"></a>")
	}

// document.write("<a href=\"http://www.stepfordwives.com\" target=\"_blank\"><img alt=\"www.stepfordwives.com\" src=\"http://www.nzweddingplanner.co.nz/banners/stepfordwives.gif\" alt=\"www.stepfordwives.com\" width=\"468\" height=\"60\"></a>")







// * * * * * * * * * *
//   pop under code
// * * * * * * * * * *

var show_pop = ""

// checks to see if the banner should pop
if	(((document.location) == "http://www.nzweddingplanner.co.nz/bridal_shows/index.html")
	||
	((document.location) == "http://nzweddingplanner.co.nz/bridal_shows/index.html"))
	{
	show_pop = 0;
	}
else {
	show_pop = 1;
	}

// to turn off the pop, uncomment the following line
// show_pop = 0;
// this will override the above script

// specify page to pop-under
var popunder="http://www.nzweddingplanner.co.nz/banners/join-pop/index.htm"

// specify popunder window features
// set 1 to enable a particular feature, 0 to disable
var winfeatures="width=390,height=153,scrollbars=1,resizable=1,toolbar=0,location=0,menubar=0,status=0,directories=0"

// Pop-under only once per browser session? (0=no, 1=yes)
// Specifying 0 will cause popunder to load every time page is loaded
var once_per_session=1

// No editing beyond here required

function get_cookie(Name) {
  var search = Name + "="
  var returnvalue = "";
  if (document.cookie.length > 0) {
    offset = document.cookie.indexOf(search)
    if (offset != -1) { //  if cookie exists
      offset += search.length
      //  set index of beginning of value
      end = document.cookie.indexOf(";", offset);
      //  set index of end of cookie value
      if (end == -1)
         end = document.cookie.length;
      returnvalue=unescape(document.cookie.substring(offset, end))
      }
   }
  return returnvalue;
}

function loadornot(){
	if (get_cookie('popunder')==''){
	loadpopunder()
	document.cookie="popunder=yes"
	}
	}

function loadpopunder(){
	if (show_pop != 0){
	win2=window.open(popunder,"",winfeatures)
	win2.blur()
	window.focus()
		}
	}


// disabled
// if (once_per_session==0)
//	loadpopunder()
// else
//	loadornot()


// end of pop under code


//-->