<?php
header("Content-type: text/css");
include 'sets.php';
?>

<?php
$hex = "$color1"; 
$r = hexdec(substr($hex,0,2)); 
$g = hexdec(substr($hex,2,2)); 
$b = hexdec(substr($hex,4,2)); 
 
if($r + $g + $b > 382){ 
 //bright color, use dark font 
  $acolor1 = "000000";
}else{ 
 //dark color, use bright font 
 $acolor1 = "FFFFFF";
} 

$hex2 = "$color2"; 
$r = hexdec(substr($hex2,0,2)); 
$g = hexdec(substr($hex2,2,2)); 
$b = hexdec(substr($hex2,4,2)); 
 
if($r + $g + $b > 382){ 
 //bright color, use dark font 
  $acolor2 = "222222";
}else{ 
 //dark color, use bright font 
 $acolor2 = "FFFFFF";
} 

?>

body, html {
font-family: Verdana, Tahoma, sans-serif; font-size: 12px; color:#<?=$color4?>;
padding:0; margin:0;  width:100%; }

a { color:inherit; }

hr { border-color:#<?=$color5?> }

h1 { font-size: 17px; color: #<?=$color4?>; text-decoration: none; font-weight: normal; margin: 0; padding: 0; text-transform:uppercase }
h2 { font-size: 12px; color: #<?=$color4?>; text-decoration: none; font-weight: normal; margin: 0; padding: 0; display:inline; }

.main { padding:10px; text-align:justify;  }

.forms {
	font-size: 11px; 
	color: #000000;
	background-color: #FFFFFF;
	border:1px solid #<?=$color5?>;
}

.button { font-size: 11px; color: #FFFFFF; 
	border:none;	
    background: #<?=$color5?> url(img/button.png);
	line-height:25px;
	height:25px;
	padding-left:10px; padding-right:10px;
	cursor:pointer;
	display:inline-block;
	text-decoration:none;
    text-transform:uppercase;
}

.text {  }
.text1 { font-size: 11px;
color:#<?=$acolor1?>;
	 }
.linkf {  
   color:#<?=$acolor1?>;
   font-size: 10px; 
   text-decoration: none; 
    opacity: 0.8;
	filter:progid:DXImageTransform.Microsoft.Alpha(opacity=80);
    filter:alpha(opacity=80);
	-moz-opacity:0.8;
	-khtml-opacity: 0.8; 
	
	}
    
.text2 { 
color:#<?=$acolor2?>;
	 }
     
.titles { font-family: Verdana, sans-serif; font-size: 15px; text-decoration: none; color:#<?=$color5?>; padding-left:20px; padding-bottom:5px; background:url(img/arrow.png) no-repeat }

img { border: none; margin: 0; vertical-align: middle; }

img.plinks { border: 1px #<?=$color4?> solid; }
.plinks img{ border: 1px #<?=$color4?> solid; }
a.plinks:hover img{ border: 1px #<?=$color5?> solid; }

.slideshow { }
.slideshow img { max-width: 100% !important; display:none;  }

/* Interaction Cues
----------------------------------*/
.ui-state-disabled { cursor: default !important; }


/* Icons
----------------------------------*/

/* states and images */
.ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }


/* Misc visuals
----------------------------------*/

/* Overlays */
.ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* IE/Win - Fix animation bug - #4615 */
.ui-accordion { width: 100%; }
.ui-accordion .ui-accordion-header { cursor: pointer; position: relative; margin-top: 1px; zoom: 1; }
.ui-accordion .ui-accordion-li-fix { display: inline; }
.ui-accordion .ui-accordion-header a { display: block; padding: 6px; }
.ui-accordion-icons .ui-accordion-header a { padding-left: 30px; }
.ui-accordion .ui-accordion-content { position: relative; top: 1px; overflow: auto; display: none; zoom: 1; }
.ui-accordion .ui-accordion-content-active { display: block; }

.ui-autocomplete { position: absolute; cursor: default; }	

/* workarounds */
* html .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */

/*
 * jQuery UI Menu 1.8.19
 *
 * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Menu#theming
 */
.ui-menu {
	list-style:none;
	padding: 2px;
	margin: 0;
	display:block;
	float: left;
}
.ui-menu .ui-menu {
	margin-top: -3px;
}
.ui-menu .ui-menu-item {
	margin:0;
	padding: 0;
	zoom: 1;
	float: left;
	clear: left;
	width: 100%;
}
.ui-menu .ui-menu-item a {
	text-decoration:none;
	display:block;
	padding:.2em .4em;
	zoom:1;
}
.ui-menu .ui-menu-item a.ui-state-hover,
.ui-menu .ui-menu-item a.ui-state-active {
	font-weight: normal;
	margin: -1px;
}


.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { 
	 color:#<?=$color3?>;
	 text-decoration:none;
	background: url(img/navibutton1.png) no-repeat #<?=$color4?>;
	opacity: 0.8;
	filter:progid:DXImageTransform.Microsoft.Alpha(opacity=80);
    filter:alpha(opacity=80);
	-moz-opacity:0.8;
	-khtml-opacity: 0.8;
!important 
  }
  
.ui-state-hover a, .ui-state-hover a:hover {
	color:#FFFFFF;
    background: url(img/navibutton2.png) no-repeat #<?=$color5?>;
	opacity: 1;
	filter:progid:DXImageTransform.Microsoft.Alpha(opacity=100);
    filter:alpha(opacity=100);  
    }

.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { 
	color:#FFFFFF;
     text-decoration:none;
    background: url(img/navibutton2.png) no-repeat #<?=$color5?>;
	opacity: 1;
	filter:progid:DXImageTransform.Microsoft.Alpha(opacity=100);
    filter:alpha(opacity=100);  
    }
 }