html, body {
	margin: 0;
	padding: 0;
}

body {
	background-color: #FFFFFF;
	background-image: url(/images/layout/background.png);
	background-repeat: repeat-x;
	height: 700px;
}

a {
	color: #5D5D5D;
	text-decoration: underline;
}

a:hover {
	color: #C1000E;
	text-decoration: none;
}


h1 a,
h2 a,
h3 a,
h4 a {
	color: #C1000E;
	text-decoration: none;
}

h1 a:hover,
h2 a:hover,
h3 a:hover,
h4 a:hover {
	color: #5D5D5D;
	text-decoration: underline;
}

h1,
h2,
h3,
h4 {
	font-weight: normal;
	margin-top: 0.5em;
}

h1 strong,
h2 strong,
h3 strong,
h4 strong {
	color: #C1000E;
}

.clear {
	clear: both;
}

#doc4,
#hd,
#bd,
#bdinner,
#ft {
	position: relative;
	z-index: 100;
}

.highlight {
	background-image: url(/images/layout/logo-highlight.png);
	height: 358px;
	width: 624px;
	position:absolute;
	left: -140px;
	z-index: 1;
	float: left;
}

#hd {
	position: relative;
	z-index: 100;
}

#hd #logo-block {
	height: 142px;
}

#hd .logo {
	position: absolute;
	top: 52px;
	left: 28px;
	z-index: 100;
}

#hd .ad {
	position: absolute;
	top: 50px;
	right: 165px;
	z-index: 100;
}

#hd .ad img,
#hd .sponsor img {
	border:1px solid black;
}

#hd .sponsor {
	position: absolute;
	top: 50px;
	right: 13px;
	z-index: 100;
}

#hd #navigation {
	display: block;
	width: 950px;
	clear: both;
	margin: 0 auto;
}

#hd #navigation ul,
#hd #navigation ul li {
	margin: 0;
	padding: 0;
	list-style: none;
	display: inline;
}

#navigation,
#navigation ul,
#navigation ul li,
#navigation div {
	height: 37px;
}

#navigation .main {
	background-image: url(/images/layout/nav_background.png);
	background-repeat: repeat-x;
	float: left;
	width: 942px;
}

#navigation .left {
	float: left;
	width: 4px;
	background-image: url(/images/layout/nav_left.png);
	background-repeat: no-repeat;
	text-indent: -9999px;
}

#navigation .right {
	float: right;
	width: 4px;
	background-image: url(/images/layout/nav_right.png);
	background-repeat: no-repeat;
	text-indent: -9999px;
}

#hd #navigation .main ul {
	padding: 0;
	display: block;
}

#navigation li {
	height: 37px;
	float: left;
	text-indent: -9999px;
}

#navigation li.add {
	float: right;
}

#navigation li.seperator {
	width: 2px;
	background-image: url(/images/layout/nav_seperator.png);
	background-repeat: no-repeat;
}

#navigation li a {
	height: 37px;
	display: block;
	background-repeat: no-repeat;
	background-position: 5px 6px;
	padding: 0 5px;
}

#navigation li a:hover {
	background-position: 5px -44px;
}

#navigation li.saskatoon a {
	width: 130px;
	background-image: url(/images/layout/saskatoon_events_sprite.png);
}

.saskatoon #navigation li.saskatoon a {
	width: 130px;
	background-position: 0 0;
	position: relative;
	top: -3px;
	height: 44px;
	background-image: url(/images/layout/saskatoon_events_current.png);
}

.saskatoon #navigation li.saskatoon a:hover {
	background-position: 0 0;
}

.regina #navigation li.regina a {
	width: 102px;
	background-position: 0 0;
	position: relative;
	top: -3px;
	height: 44px;
	background-image: url(/images/layout/regina_events_current.png);
}

.regina #navigation li.regina a:hover {
	background-position: 0 0;
}

#navigation li.regina a {
	width: 102px;
	background-image: url(/images/layout/regina_events_sprite.png);
}

#navigation li.tournamentinfo a {
	width: 175px;
	background-image: url(/images/layout/tournament_info_sprite.png);
}

.tournamentinfo #navigation li.tournamentinfo a {
	width: 175px;
	background-position: 0 0;
	position: relative;
	top: -3px;
	height: 44px;
	background-image: url(/images/layout/tournament_info_current.png);
}

.tournamentinfo #navigation li.tournamentinfo a:hover {
	background-position: 0 0;
}

#navigation li.add a {
/*	WITH TEXT
	
	width: 450px;
	background-image: url(/images/layout/nav_add_event_with_text_sprite.png);*/
/* 	WITHOUT TEXT */
	width: 120px;
	background-image: url(/images/layout/nav_add_event_sprite.png);
	
	background-position: 5px 4px;
}

#navigation li.add a:hover {
	background-position: 5px -46px;
}

#bd {
	position: relative;
	z-index: 90;
	margin-top: 10px;
	background-image: url(/images/layout/body_background_opaque_inside.png);
	background-repeat: repeat-y;
}

#bdinner {
	background-image: url(/images/layout/body-background-top-transparent2.png);
	background-repeat: no-repeat;
	z-index: 95;
	position: absolute;
	width: 974px;
	height: 238px;
	left: 0;
	top: -9px;
}

#bd .content {
/*	background-image: url(/images/layout/body_background.png);*/
/*	padding: 5px 25px;*/
/*	min-height: 500px;*/
	/* FIX TO MAKE THE RIGHT AD BAR WIDER */
	margin-right: -26em;
}

#yui-main,
.yui-b {
	position: relative;
	z-index: 150;
	
}

#bd .innercontent {
/*	padding: 15px 25px 5px;*/
	padding: 6px 25px 5px;
}

#bd .rightad {
/*	border-left: 1px solid #CFCFCF;*/
/*	margin-top: 7px;*/
/*	margin-top: 30px;*/
	height: 100%;
/*	padding: 15px 20px 0 10px;*/
	padding: 6px 20px 0 10px;
	width: 25.3846 em;
}

#ft {
/*	background-image: url(/images/layout/body_background_bottom.png);*/
	background-image:url(/images/layout/body-background-bottom.png);
	background-repeat: no-repeat;
	font-size: 85%;
	padding: 15px;
	color: #5D5D5D;
	position: relative;
	height: 40px;
}

#ft #yastech {
	position: absolute;
	top: 10px;
	left: 20px;
}

#ft #footerlinks {
	position: absolute;
	top: 10px;
	right: 20px;
}
#ft #disclaimer {
/*	position: absolute;
	top: 30px;
	left: 20px;
*/	
	position: relative;
	top: 25px;
	text-align: center;
}
#ft #debug {
	position: absolute;
	top: 10px;
	right: 200px;
}


pre {
	text-align: left;
}

/* EVENTS LISTING PAGE */

.event .time, 
.event .name, 
.event .venue-name {
	display:inline;
}

.game .time, 
.game .hometeam, 
.game .awayteam, 
.game .city {
	display:inline;
}

#ui-datepicker-div {
	z-index:1000;
}

.ui-widget {
	font-size: 1em !important;
}

.datepickerwrap {
	position: absolute;
	display:none;
}

#day-nav {
	padding-right: -25px;
}

#day-nav .prev {
	text-align: left;
}
#day-nav .current {
	text-align: center;
}
#day-nav .next {
	text-align: right;
}

#datepickertoggle img {
	vertical-align: middle;
	text-decoration: none;
}

.eventgameslisting,
.venueeventlisting {
	width: 100%;
}

table,
td,
th,
tr {
	border: none;
}

table tr {
	border-bottom: 1px solid #BEBEBE;
}

table td {
	padding: 7px;
	border-left: 1px solid #BEBEBE;
	border-right: 1px solid #BEBEBE;
}

table th {
	padding: 7px;
	text-align: left;
}

table .header,
table thead,
.adminlisting table thead {
	background-image: url(/images/layout/nav_full.png);
	background-repeat: repeat-x;
	background-position: top center;
	height: 37px;
	border: none;
	margin: 2px;
}

table .header th,
table thead th,
.adminlisting th {
	color: white;
	font-weight: normal;
	text-align: center;
}

table .header th.first,
table thead th.first,
table thead th.yui-dt-first,
.adminlisting th.yui-dt-first {
/*	background-image: url(/images/layout/nav_left.png);*/
	background-image: url(/images/layout/nav_full.png);
	background-repeat: no-repeat;
	background-position: top left;
}

table .header th.last,
table thead th.last,
table thead th.yui-dt-last,
.adminlisting th.yui-dt-last {
/*	background-image: url(/images/layout/nav_right.png);*/
	background-image: url(/images/layout/nav_full.png);
	background-repeat: no-repeat;
	background-position: top right;
}

table .header a,
table thead a,
.adminlisting table thead a {
	color: #FFFFFF;
	text-decoration: underline;
}

table .header a:hover,
table thead a:hover,
.adminlisting thead a:hover {
	color: #C1000E;
}

table td.time {
	text-align: right;
}

table .name,
table .venue {
	text-align: left !important;
}

table .time {
	width: 75px;
}

table .date {
	width: 120px;
	text-align: left;
}

table .venue {
/*	width: 150px;*/
	width: 200px; /* Hidden attendance means we need to make the venue column wider */
}

table .attendance {
	width: 85px;
}

table th.attendance,
table td.attendance {
	text-align: center;
}

table th small {
	font-weight: normal;
}

table.generic td {
	border: none;
	text-align: left;
}

table.generic td.label {
	font-weight: bold;
}

table tr.odd {
	background-color: #EDEDED;
}

.map {
	width: 300px;
	height: 248px; 	/*250 - 2px for border = 248*/
	float: right;
	border: 1px solid #929292;
}

.homepage-events,
.homepage-events li,
#blogs,
#blogs li,
.generic-list,
.generic-list li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.homepage-events,
#blogs,
.generic-list {
	border-top: 1px solid #BEBEBE;
}

.homepage-events li,
#blogs li,
.generic-list li {
	border-bottom: 1px solid #BEBEBE;
	padding: 10px 5px;
}

.rssItem {
	position: relative;
}

.rssItem .title {
	display: block;
}

.rssItem .description {
	display: block;
	color: #929292;
	padding: 5px 0 0 0;
	width: 420px;
}

.rssItem .source {
	font-size: 85%;
/*	float: right;*/
	position: absolute;
	top: 10px;
	right: 5px;
}

.rssItem .date {
	font-size: 85%;
	color: #929292;
	padding-left: 15px;
	position: absolute;
	bottom: 12px;
	right: 5px;
}

.bloglist {
	position: relative;
}

.blogs-loading {
	position: absolute;
	left: 100px;
	top: 70px;
}

.blogs-loading,
.loading {
	color: #929292;
}

.feature {
	/*margin: -8px 0 0 -12px;*/
	height: 250px;
}

.rednav {
    background-image: url(/images/layout/subnav_background.png);
	height:30px;
	background-repeat: repeat-x;
	color:White;
	font-weight:bold;
}


a.home-addevent-saskatoon,
a.home-addevent-regina,
a.blocklink {
	display: block;
	background-color: #EDEDED;
	border: 2px solid #CDCDCC;
	border-bottom: 2px solid #929291;
	padding: 10px;
	text-align: center;
	font-size: 123.1%;
	color: #C1000E;
	text-decoration: none;
}

a.home-addevent-regina:hover,
a.home-addevent-saskatoon:hover,
a.blocklink:hover {
	color: #5D5D5D;
	text-decoration: underline;
}

a.blocklink {
	margin: 5px 0;
	text-align: left;
	color: #5D5D5D;
}

a.blocklink:hover {
	color: #C1000E;
	
}

#nextgame,
.todaysgames {
	display: block;
	background-color: #EDEDED;
	border: 2px solid #CDCDCC;
	border-bottom: 2px solid #929291;
	padding: 10px 10px 6px 10px;
	text-align: left;
	text-decoration: none;
	position: relative;
}

.todaysgames {
	margin-top: 13px;
}

.todaysgames h2 {
	margin: 0.2em 0 0 0.5em;
}

.todaysgames ul,
.todaysgames li {
	margin: 0;
	list-style:none;
}
.todaysgames ul {
	margin: 0 0 0 10px;
}

.todaysgames li a {
	padding: 5px;
	display: block;
}

.todaysgames .flag {
	border-color: #EDEDED !important;
}

#nextgame .label {
	position: relative;
	font-size: 123.1%;
	color: #C1000E;
}

#nextgame .game {
	position: absolute;
	right: 10px;
	top: 12px;
	font-size: 85%;
}

#subnav ul,
#subnav li {
	margin: 0;
	list-style: none;
}

#subnav,
#subnav ul {
	background-image: url(/images/layout/subnav_background.png);
/*	height:30px;*/
	height: 40px;
	background-repeat: repeat-x;
}

#subnav {
	background-position: bottom left;
	margin-top: -8px;
	margin-left: -7px;
	margin-right: -2px;
	padding-left: 5px;
}

#subnav ul {
	background-position: bottom right;
	margin-right: -5px;
}

#subnav li {
	float: left;
}

#subnav li a {
	font-size: 93%;
	display: block;
	color: white;
	text-decoration:none;
	font-weight: normal;
/*	padding: 5px 10px 0;*/
	padding: 12px 12px 0;
}

#subnav li a:hover {
	text-decoration: underline;
}

#subnav li.selected a {
	font-weight: bold;
}

.flag {
	vertical-align: text-bottom;
	text-decoration: none;
	border-color: white;
	border-style: solid;
	border-width: 1px 2px;
}

/*.canadaX, .latvia, .slovakia, .switzerland, .united_states,
.austria, .czech_republic, .finland, .russia, .sweden {
	padding-right: 18px;
	background-repeat: no-repeat;
	background-position: 100% 3px;
}*/

/*POOL A*/
/*.canada 		{background-image: url(http://cdn.yastech.ca/icons/flags/ca.png);}
.latvia 		{background-image: url(http://cdn.yastech.ca/icons/flags/lv.png);}
.slovakia 		{background-image: url(http://cdn.yastech.ca/icons/flags/sk.png);}
.switzerland 	{background-image: url(http://cdn.yastech.ca/icons/flags/ch.png);}
.united_states 	{background-image: url(http://cdn.yastech.ca/icons/flags/us.png);}
*/
/*POOL B*/
/*.austria 		{background-image: url(http://cdn.yastech.ca/icons/flags/at.png);}
.czech_republic {background-image: url(http://cdn.yastech.ca/icons/flags/cs.png);}
.finland 		{background-image: url(http://cdn.yastech.ca/icons/flags/fi.png);}
.russia 		{background-image: url(http://cdn.yastech.ca/icons/flags/ru.png);}
.sweden 		{background-image: url(http://cdn.yastech.ca/icons/flags/se.png);}
*/

.content-ad {
	display: block;
	text-align: center;
	padding: 15px;
}

.content-ad img {
	border: 1px solid #929292;
	padding: 1px;
}

.right-ad ,
.right-ad img{
	padding: 0;
	border: none;
}

.right-ad {
	padding-top: 10px;
}