/*
**	CSS layout/coding by Nossebro Mediaproduktion 2008
**	This code is delivered as-is and is not subject to
**	any guarantee regarding problems with rare browsers,
**	not yet released browsers or outdated browsers.
**
**	Support tested with current popular browsers, which
**	includes IE6, IE7, Firefox 3, Safari 3, Opera 9.6
**	and derivatives of their respective layout engines.
**
**	- Nossebro Mediaproduktion, november 2008
*/


/*
**	Set up background color and no padding for body
*/
body {
	/*background-color: rgb(84,69,56);*/
	background-color: rgb(255,255,255);
	margin: 0px;
	padding: 0px;
}

/*
**	Use a separate div for the background.
**	Reason: To avoid single-pixel discrepancies
**	dependant on the width of the browser window
*/
#background {
	position: absolute;
	width: 1024px;
	left: 50%;
	margin-left: -512px;
	height: 100%;
	background-image: url(images/pagebg-white.png);
	background-repeat: repeat-y;
}

/*
**	Place the logo
*/
#logo {
	width: 187px;
	height: 87px;
	position: absolute;
	left: 50%;
	margin-left: -446px;
	background-image: url(images/logotype.png);
	background-repeat: no-repeat;
}

#ranka {
	display: none;
	width: 145px;
	height: 212px;
	position: absolute;
	bottom: 0px;
	left: 50%;
	margin-left: -436px;
	background-image: url(images/ranka.png);
	background-repeat: no-repeat;
}
/*
**	Top horizontal green bar
*/
#topbar {
	background-image: url(images/topbar-solid.png);
	background-repeat: repeat-x;
	width: 892px;
	height: 37px;
	position: absolute;
	left: 50%;
	margin-left: -446px;
	top: 87px;
}

/*
**	Small piece to connect top bar
**	and the side panel smoothly
*/
#transition {
	width: 179px;
	height: 13px;
	position: absolute;
	left: 50%;
	margin-left: -446px;
	top: 116px;
	background-image: url(images/transition.png);
	background-repeat: no-repeat;
}

/*
**	Place sidepanel, where the links reside.
*/
#sidepanel {
	position: absolute;
	left: 50%;
	width: 159px;
	margin-left: -446px;
	top: 130px;
	background-image: url(images/sidepanel-background.png);
	background-repeat: repeat-y;
	padding-top: 6px;
	padding-bottom: 6px;
}

/*
**	Place the top part with the rounded corner
*/
#sidepanel #sidepanel-top {
	position: absolute;
	top: 0px;
	left: 0px;
	width: 159px;
	height: 10px;
	background-image: url(images/sidepanel-top.png);
	background-repeat: no-repeat;
}

/*
**	Place the bottom part with the rounded corner
*/
#sidepanel #sidepanel-bottom {
	position: absolute;
	bottom: 0px;
	left: 0px;
	width: 159px;
	height: 10px;
	background-image: url(images/sidepanel-bottom.png);
	background-repeat: no-repeat;
}

/*
**	Ugly ass hack for IE6 - crappiest browser EVER
*/
* html #sidepanel #sidepanel-bottom {
	bottom: -10px;
}

/*
**	Style the sidepanel navigational links.
**	Change font size depending on width of link
**	texts. Multi-word links will wrap to width.
*/
#sidepanel a.sidepanel-links {
	position: relative;
	color: white;
	font-family: "Compacta Bd BT", Calibri, "Trebuchet MS", Arial, Verdana, sans-serif;
	font-weight: bold;
	font-size: 13px;
	display: block;
	margin-left: 10px;
	text-transform: uppercase;
	text-decoration: none;
	margin-top: 4px;
	margin-bottom: 4px;
}

#sidepanel a.sidepanel-links:hover {
	color: rgb(173,238,144);
	text-decoration: underline;
}

/*
**	For the 4 cards, we don't want to link
**	text to be shown if CSS is active.
*/
body #essen a.ess span {
	display: none;
}

/*
**	CSS valid for all 4 cards in lower position
*/
body #essen a.ess {
	position: absolute;
	width: 199px;
	height: 75px;
	background-image: url(images/essen.png);
	background-repeat: no-repeat;
	top: 36px;
	left: 50%;	
}

/*
**	Yet again a hack for IE6
**	Reason: IE6 doesn't support PNGs with a proper alpha channel.
**	For now, we use a GIF instead. Looks awful, but hey...
**
**	Sidenote: IE6 supports alpha channel by using filters, but
**	doesn't fully support background positioning if you use them.
*/
* html body #essen a.ess {
	background-image: url(images/essen.gif);
}


/*
**	Ace of spades positioning
*/
#ess-foretag {
	background-position: 0px 0px;
	margin-left: -199px;
}

/*
**	Ace of hearts positioning
*/
#ess-privat {
	background-position: -199px 0px;
	margin-left: -49px;
}

/*
**	Ace of clubs positioning
*/
#ess-aktuellt {
	background-position: -398px 0px;
	margin-left: 101px;
}

/*
**	Ace of diamonds positioning
*/
#ess-omoss {
	background-position: -597px 0px;
	margin-left: 251px;
}

/*
**	Hide the BR elements we don't use
*/
#essen br,
#sidepanel br {
	display: none;
}

/*
**	Positioning and sizing for the iframe.
**	Note: the height of the iframe is
**	dynamically calculated whenever the
**	containing browser window is resized.
**	See javascript coding.
*/
#content-frame {
	position: absolute;
	left: 50%;
	margin-left: -270px;
	top: 125px;
	width: 708px;
	height: 510px;
}