/*
Theme Name: Policing IUPA
Theme URI: http://www.policingiupa.org/
Description: Who's Policing IUPA?
Version: 1.0
Author: Q Digital Studio
Author URI: http://www.qdigitialstudio.com/
Tags: blue, custom header, fixed width, two columns, widgets
*/
body {
	background: #aaaaaa;
	margin: 20px 0;
	padding: 0;
	text-align: center;
	color: #333333;
	font-family: "Trebuchet MS", Myriad, "Myriad Pro", Helvetica, sans-serif;
	font-size: 77%;
	line-height: 20px;
}
a {
	color: #003333;
}
a:hover {
	color: #FF3300;
}
#container {
	width: 750px;
	background: #FFFFFF;
	margin: 0 auto;
	border: 1px solid #ffffff;
	text-align: left;
}
#header {
	background-color: #003333;
	height: 72px;
}
#header h1 {
	margin: 0;
	padding: 10px 40px;
	line-height: 48px;
	color: #FFCC33;
	font-size: 36px;
	font-weight: normal;
}
#header h1 a {
	color: #FFCC33;
	text-decoration: none;
}
#sidebar {
	float: right;
	width: 230px; 
	background: #FFFFCC;
	padding: 0;
	border-top: 2px solid #ffffff;
}
.navigation {
	margin: 0;
	padding: 0;
	border-top: 1px solid #ccccaa;
}
.navigation li {
	margin: 0;
	padding: 0;
	list-style-type: none;
}
.navigation li a {
	background-color: #eeeebb;
	border-bottom: 1px solid #ccccaa;
	display: block;
	text-decoration: none;
	padding: 5px 10px;
}
.navigation li a:hover {
	background-color: #ccccaa;
}
#sidebar h3 {
	padding: 20px 0 5px 10px;
	margin: 0;
}
.datelist {
	margin: 0;
	padding: 0;
	list-style-type: none;
}
.datelist li {
	margin: 0 5px;
	padding: 3px 5px;
	list-style-type: none;
}
#mainContent {
	margin: 0 250px 0 0;
	padding: 0 40px;
	background: #FFFFFF;
}
#footer {
	width: 700px;
	margin: 0;
	padding: 10px 25px;
	background:#DDDDDD;
}
.biglink {
	background-color: #FFFFCC;
	padding: 3px;
	border: 1px double #FF9933;
	font-weight: bold;
}
#footer p {
	margin: 0;
	font-size: 18px;
	color: #000000;
}
h2 {
	font-size: 18px;
	color: #000000;
}
h3 {
	font-size: 16px;
	color: #333333;
}
h6 {
	color: #000000;
	font-size: 16px;
	padding: 3px 0;
	margin: 2px 0;
}
table#picture {
	padding-left: 50px;
}
.searchbox {
	width: 200px;
	text-align: center;	
}
.searchbox {
	width:200px; 
	margin: 20px 0 20px 10px;
	padding: 3px;	
}
.emailbox {
	width:200px; 
	margin: 20px 0 20px 10px;
	padding: 3px;
	border: 1px solid #ccccaa;
	font-weight: bold;
	text-align: center;
}
.emailbox input, .searchbox input {
	font-family:Verdana,Geneva,Arial,Helvetica,sans-serif; 
	font-size:10px; 
	border:1px solid #999999;
}
.clearfloat { 
	clear:both;
    height:0;
    font-size: 1px;
    line-height: 0px;
}
ul, li {
	line-height: 1.2em;
}
.style1 {
	color: #FF3333;
	font-weight: bold;
	font-size: 90%;
}
.style3 {font-weight: bold; color: #FF3333;}
.style4 {
	color: #215178;
	font-weight: bold;
	font-size: 90%;
}
.style6 {font-size: 90%; color: #215178;}
.style8 {color: #215178; font-weight: bold; font-size: 100%; line-height: 100%; padding: 5px 0; margin: 0;}
.tiny {
	font-size: 80%;
	color: #333333;
	font-style: italic;
	line-height: 100%;
}
.small {
	line-height: 100%;
}

.dcountstyle{ /*Example CSS to style count up output*/
font: bold 16px Arial;
padding: 3px;
}

.dcountstyle sup{ /*Example CSS to style count up output*/
font-size: 90%
}

</style>

<script type="text/javascript">

/***********************************************
* Dynamic CountUp script- © Dynamic Drive (http://www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

function dcountup(startingdate, baseunit){
	this.currentTime=new Date()
	this.startingdate=new Date(startingdate)
	this.timesup=false
	this.baseunit=baseunit
	this.start()
}

dcountup.prototype.oncountup=function(){} //default action for "oncountup"

dcountup.prototype.start=function(){
	var thisobj=this
	this.currentTime.setSeconds(this.currentTime.getSeconds()+1)
	var timediff=(this.currentTime-this.startingdate)/1000 //difference btw target date and current date, in seconds
	var oneMinute=60 //minute unit in seconds
	var oneHour=60*60 //hour unit in seconds
	var oneDay=60*60*24 //day unit in seconds
	var dayfield=Math.floor(timediff/oneDay)
	var hourfield=Math.floor((timediff-dayfield*oneDay)/oneHour)
	var minutefield=Math.floor((timediff-dayfield*oneDay-hourfield*oneHour)/oneMinute)
	var secondfield=Math.floor((timediff-dayfield*oneDay-hourfield*oneHour-minutefield*oneMinute))
	if (this.baseunit=="hours"){ //if base unit is hours, set "hourfield" to be topmost level
		hourfield=dayfield*24+hourfield
		dayfield="n/a"
	}
	else if (this.baseunit=="minutes"){ //if base unit is minutes, set "minutefield" to be topmost level
		minutefield=dayfield*24*60+hourfield*60+minutefield
		dayfield=hourfield="n/a"
	}
	else if (this.baseunit=="seconds"){ //if base unit is seconds, set "secondfield" to be topmost level
		var secondfield=timediff
		dayfield=hourfield=minutefield="n/a"
	}
	var result={days: dayfield, hours:hourfield, minutes:minutefield, seconds:secondfield}
	this.oncountup(result)
	setTimeout(function(){thisobj.start()}, 1000) //update results every second
}

</script>

