/*
 * CSS Skin file for the "Kiwicart Interactive Travelling Distance and Time Calculator"
 * 
 * Copyright Kiwicart Web Services Ltd (http://www.kiwicart.co.nz/)
 *  Author James McNeill, james # kiwicart . co . nz
 */

/* -----
 * Core rules
 * ----- */
.hidden
{
	display: none;
}

.visible
{
	display: block;
}

/* -----
 * The start and end flags (to save me drawing lines on the map)
 * - If you have a new flag image:
 *   - update the width and height of the element
 *   - change the urls
 *   - change the margins so that the highlight point meets the previous highlight point (saves having to recalculate the flag positions)
 * - Background images are used instead of normal images so that IE has a chance to render png images with transparencies  
 * - The urls for IE's alphaimageloader are relative to the web page, not the css file
 * - HTML>BODY is ignored by IE, so it's used by sensible browsers and doesn't confuse IE:-)
 * - The background urls are relative to the site root only during testing (using the interactive CSS editor), can be relative to the css file when it's taken live
 * - Anchor tags are used so that the :hover pseudo-class can work in IE to lower the flags behind the city labels
 * ----- */

/* The destination flag has a negative margin so it's point matches the normal flag (doesn't that make things easy!) */

#ferry
{
	position: absolute;
	width: 56px;
	height: 28px;
	top: 180px;
	left: 190px;
	z-index: 7;
	filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../images/ferry.png', sizingMethod='scale');
}

HTML>BODY #ferry
{
	background: url(../images/ferry.png) no-repeat;
}

/* A quick hack here, if we hover on an image then drop it behind the city labels so we can interact with the cities. Not a perfect solutions (it could be a little flickery), but its better that the labels work and most of the time the flags are on top of them. */
#flag-destination:hover,
#flag:hover,
#ferry:hover
{
	z-index: 1;
}

/* -----
 * The map image
 * ----- */
#nz-map
{
	position: relative;
	width: 380px;
	height: 404px;
	background: url(../images/map_no_names.gif) no-repeat;
	float: left;
}

/* -----
 * The city formatting setup
 * ----- */
#nz-map UL
{
	list-style: none;
	padding: 0;
	margin: 0;
}

#textarea #nz-map LI
{
	position: absolute;
	z-index: 5;
background-image:url(../images/spacer.gif);
	background-position: top left;
	background-repeat: no-repeat;}

#nz-map LI A
{
	text-decoration: none;
	font-size: 10px;
	font-family: sans-serif;
	padding: 0px 4px;
	background: white;
	color: #000000;

	/*
	-moz-opacity: 0.75;
	filter:alpha(opacity=25);
	*/
	z-index: 100;
}

/* -----
 * The city label highlights.
 */
#nz-map .start-city A
{
	background-color: #fbbd1a;
	list-style: none;
	/*
	-moz-opacity: 1.0;
	filter:alpha(opacity=100);
	*/
}

#nz-map LI A:hover
{
	background: yellow;
	text-decoration: none;
	/*
	-moz-opacity: 1.0;
	filter:alpha(opacity=100);
	*/
}


/* -----
 * The cities 
 * - each city has a position for the label and the flag.
 * - the javascript has no idea where these labels are, and things just work :-)
 * ----- */
/* Akaroa */
#city-1 {left: 200px; top: 285px;}
.flag-1 {left: 175px; top: 248px;}

/* Auckland */
#city-2 {right: 175px; top: 75px;}
.flag-2 {left: 214px; top: 51px;}

/* Blenheim */
#city-3 {left: 205px; top: 225px;}
.flag-3 {left: 194px; top: 187px;}

/* Christchurch */
#city-4 {left: 200px; top: 270px;}
.flag-4 {left: 167px; top: 243px;}

/* Coromandel */
#city-5 {left: 240px; top: 65px;}
.flag-5 {left: 231px; top: 52px;}

/* Cromwell */
#city-6 {left: 160px; top: 345px;}
.flag-6 {left: 93px; top: 296px;}

/* Dargaville */
#city-7 {right: 200px; top: 45px;}
.flag-7 {left: 190px; top: 23px;}

/* Dunedin */
#city-8 {left: 150px; top: 358px;}
.flag-8 {left: 127px; top: 310px;}

/* Doubtless Bay */
#city-9 {left: 190px; top: 0px;}
.flag-9 {left: 180px; top: -5px;}

/* Fairlie */
#city-10 {left: 160px; top: 290px;}
.flag-10 {left: 140px; top: 258px;}

/* Franz Josef */
#city-11 {right: 268px; top: 257px;}
.flag-11 {left: 116px; top: 246px;}

/* Greymouth */
#city-12 {right: 255px; top: 237px;}
.flag-12 {left: 135px; top: 220px;}

/* Hanmer Springs */
#city-13 {left: 200px; top: 255px;}
.flag-13 {left: 167px; top: 213px;}

/* Hastings */
#city-14 {left: 285px; top: 160px;}
.flag-14 {left: 262px; top: 134px;}

/* Invercargill */
#city-15 {left: 130px; top: 370px;}
.flag-15 {left: 85px; top: 335px;}

/* Kaikoura */
#city-16 {left: 205px; top: 238px;}
.flag-16 {left: 187px; top: 210px;}

/* Kerikeri */
#city-17 {left: 210px; top: 14px;}
.flag-17 {left: 190px; top: 0px;}

/* Matakohe */
#city-18 {right: 190px; top: 60px;}
.flag-18 {left: 195px; top: 27px;}

/* Motueka */
#city-19 {right: 230px; top: 193px;}
.flag-19 {left: 174px; top: 172px;}

/* Napier */
#city-20 {left: 300px; top: 145px;}
.flag-20 {left: 260px; top: 125px;}

/* Nelson */
#city-21 {right: 240px; top: 207px;}
.flag-21 {left: 182px; top: 177px;}

/* New Plymouth */
#city-22 {right: 200px; top: 137px;}
.flag-22 {left: 193px; top: 118px;}

/* Ninety Mile Beach */
#city-23 {right: 220px; top: 18px;}
.flag-23 {left: 170px; top: -7px;}

/* Oamaru */
#city-24 {left: 160px; top: 332px;}
.flag-24 {left: 133px; top: 290px;}

/* Ohakune */
#city-25 {left: 280px; top: 175px;}
.flag-25 {left: 225px; top: 120px;}

/* Omarama */
#city-26 {left: 160px; top: 319px;}
.flag-26 {left: 123px; top: 273px;}

/* Orewa */
#city-27 {left: 230px; top: 52px;}
.flag-27 {left: 210px; top: 40px;}

/* Papamoa */
#city-28 {left: 260px; top: 93px;}
.flag-28 {left: 243px; top: 75px;}

/* Picton */
#city-29 {left: 173px; top: 180px;}
.flag-29 {left: 196px; top: 177px;}

/* Queenstown */
#city-30 {right: 310px; top: 294px;}
.flag-30 {left: 78px; top: 295px;}

/* Rotorua */
#city-31 {right: 176px; top: 101px;}
.flag-31 {left: 244px; top: 87px;}

/* Russell */
#city-32 {left: 210px; top: 27px;}
.flag-32 {left: 198px; top: 8px;}

/* Takaka */
#city-33 {right: 230px; top: 180px;}
.flag-33 {left: 168px; top: 165px;}

/* Te Anau */
#city-34 {right: 325px; top: 310px;}
.flag-34 {left: 64px; top: 310px;}

/* Timaru */
#city-35 {left: 160px; top: 304px;}
.flag-35 {left: 139px; top: 270px;}

/* Taupo */
#city-36 {left: 305px; top: 125px;}
.flag-36 {left: 242px; top: 106px;}

/* Waihi Beach */
#city-37 {right: 175px; top: 89px;}
.flag-37 {left: 238px; top: 65px;}

/* Waitomo */
#city-38 {right: 175px; top: 115px;}
.flag-38 {left: 218px; top: 91px;}

/* Wanaka */
#city-39 {right: 310px; top: 280px;}
.flag-39 {left: 91px; top: 282px;}

/* Wanganui */
#city-40 {right: 185px; top: 165px;}
.flag-40 {left: 206px; top: 134px;}

/* Wellington */
#city-41 {left: 250px; top: 205px;}
.flag-41 {left: 212px; top: 176px;}

/* Westport */
#city-42 {right: 245px; top: 220px;}
.flag-42 {left: 147px; top: 190px;}

/* Whangamata */
#city-43 {left: 255px; top: 80px;}
.flag-43 {left: 238px; top: 59px;}

/* Whangarei  */
#city-44 {left: 215px; top: 40px;}
.flag-44 {left: 200px; top: 19px;}

/* Ohope Beach */
#city-45 {left: 305px; top: 110px;}





	/*
	=================
	Information Panel
	=================
	*/
	#panel {
		border: 1px solid #333;
		padding: 5px;
		width: 140px;
		margin: 0px 0px 0px 5px;
	}
	#panel h2 {
		font-size: 12px;
		margin: 0px;
		padding: 0px;
	}
	#panel h3 {
		padding-top: 5px;
		color: #333;
		font-size: 12px;
		font-weight: bold;
	}
	#panel input, #panel textarea {
		width: 135px;
		border: 1px solid #CCC;
		font-family: Arial, Helvetica, sans-serif;
		font-size: 12px;
		color: #333;
	}