<?php

// Template parameters
$maxWidth			= $this->params->get('maxWidth');
$bodyColor			= $this->params->get('bodyColor');
$bodyFontSize		= $this->params->get('bodyFontSize');
$bodyFontFamily		= $this->params->get('bodyFontFamily');
$bodyLineHeight		= $this->params->get('bodyLineHeight');
$linkColor			= $this->params->get('linkColor');
$linkColorHover		= $this->params->get('linkColorHover');
$articleColor		= $this->params->get('articleColor');
$articleTitleColor	= $this->params->get('articleTitleColor');
$articleTitleShadowColor= $this->params->get('articleTitleShadowColor');
$articleTitleLinkColor= $this->params->get('articleTitleLinkColor');
$articleTitleLinkShadowColor= $this->params->get('articleTitleLinkShadowColor');
$articleTitleActiveColor= $this->params->get('articleTitleActiveColor');
$articleTitleActiveShadowColor= $this->params->get('articleTitleActiveShadowColor');
$articleTitleFontSize= $this->params->get('articleTitleFontSize');
$articleTitleFontFamily	= $this->params->get('articleTitleFontFamily');
$moduleTitleFontSize= $this->params->get('moduleTitleFontSize');
$moduleTitleFontFamily= $this->params->get('moduleTitleFontFamily');
$topnavBgColor		= $this->params->get('topnavBgColor');
$topnavColor		= $this->params->get('topnavColor');
$topnavTitleColor	= $this->params->get('topnavTitleColor');
$topnavTitleBgColor	= $this->params->get('topnavTitleBgColor');
$topnavLinkColor	= $this->params->get('topnavLinkColor');
$topnavLinkActiveColor	= $this->params->get('topnavLinkActiveColor');
$showdate			= $this->params->get('showdate');
$dateColor			= $this->params->get('dateColor');
$navColor			= $this->params->get('navColor');
$navActiveColor		= $this->params->get('navActiveColor');
$subnavActiveColor	= $this->params->get('subnavActiveColor');
$slideBgColor		= $this->params->get('slideBgColor');
$slideColor		= $this->params->get('slideColor');
$slideTitleColor	= $this->params->get('slideTitleColor');
$slideTitleBgColor	= $this->params->get('slideTitleBgColor');
$slideLinkColor	= $this->params->get('slideLinkColor');
$slideLinkActiveColor	= $this->params->get('slideLinkActiveColor');
$promoBgColor		= $this->params->get('promoBgColor');
$promoColor		= $this->params->get('promoColor');
$promoTitleColor	= $this->params->get('promoTitleColor');
$promoTitleBgColor	= $this->params->get('promoTitleBgColor');
$promoLinkColor	= $this->params->get('promoLinkColor');
$promoLinkActiveColor	= $this->params->get('promoLinkActiveColor');
$showcaseBgColor		= $this->params->get('showcaseBgColor');
$showcaseColor		= $this->params->get('showcaseColor');
$showcaseTitleColor	= $this->params->get('showcaseTitleColor');
$showcaseTitleBgColor	= $this->params->get('showcaseTitleBgColor');
$showcaseLinkColor	= $this->params->get('showcaseLinkColor');
$showcaseLinkActiveColor	= $this->params->get('showcaseLinkActiveColor');
$maintopBgColor		= $this->params->get('maintopBgColor');
$maintopColor		= $this->params->get('maintopColor');
$maintopTitleColor	= $this->params->get('maintopTitleColor');
$maintopTitleBgColor	= $this->params->get('maintopTitleBgColor');
$maintopLinkColor	= $this->params->get('maintopLinkColor');
$maintopLinkActiveColor	= $this->params->get('maintopLinkActiveColor');
$mainbottomBgColor		= $this->params->get('mainbottomBgColor');
$mainbottomColor		= $this->params->get('mainbottomColor');
$mainbottomTitleColor	= $this->params->get('mainbottomTitleColor');
$mainbottomTitleBgColor	= $this->params->get('mainbottomTitleBgColor');
$mainbottomLinkColor	= $this->params->get('mainbottomLinkColor');
$mainbottomLinkActiveColor	= $this->params->get('mainbottomLinkActiveColor');
$bottomBgColor		= $this->params->get('bottomBgColor');
$bottomColor		= $this->params->get('bottomColor');
$bottomTitleColor	= $this->params->get('bottomTitleColor');
$bottomTitleBgColor	= $this->params->get('bottomTitleBgColor');
$bottomLinkColor	= $this->params->get('bottomLinkColor');
$bottomLinkActiveColor	= $this->params->get('bottomLinkActiveColor');
$footerBgColor		= $this->params->get('footerBgColor');
$footerColor		= $this->params->get('footerColor');
$footerTitleColor	= $this->params->get('footerTitleColor');
$footerTitleBgColor	= $this->params->get('footerTitleBgColor');
$footerLinkColor	= $this->params->get('footerLinkColor');
$footerLinkActiveColor	= $this->params->get('footerLinkActiveColor');
$copyrightBgColor		= $this->params->get('copyrightBgColor');
$copyrightColor		= $this->params->get('copyrightColor');
$copyrightTitleColor	= $this->params->get('copyrightTitleColor');
$copyrightTitleBgColor	= $this->params->get('copyrightTitleBgColor');
$copyrightLinkColor	= $this->params->get('copyrightLinkColor');
$copyrightLinkActiveColor	= $this->params->get('copyrightLinkActiveColor');
$backtotop			= $this->params->get('backtotop');
$buttonColor		= $this->params->get('buttonColor');
$buttonBgColor		= $this->params->get('buttonBgColor');
$buttonActiveColor	= $this->params->get('buttonActiveColor');
$buttonBgActiveColor= $this->params->get('buttonBgActiveColor');
$showDefaultLogo	= $this->params->get('showDefaultLogo');
$defaultLogo 		= $this->params->get('defaultLogo');
$defaultLogoImgColor = $this->params->get('defaultLogoImgColor');
$defaultLogoImgOpacity = $this->params->get('defaultLogoImgOpacity');
$defaultLogoPadding	= $this->params->get('defaultLogoPadding');
$defaultLogoMargin	= $this->params->get('defaultLogoMargin');
$showMediaLogo		= $this->params->get('showMediaLogo');
$mediaLogo 			= $this->params->get('mediaLogo');
$mediaLogoPadding	= $this->params->get('mediaLogoPadding');
$mediaLogoMargin	= $this->params->get('mediaLogoMargin');
$showTextLogo		= $this->params->get('showTextLogo');
$textLogo 			= $this->params->get('textLogo');
$textLogoColor 		= $this->params->get('textLogoColor');
$textLogoFontSize 	= $this->params->get('textLogoFontSize');
$textLogoFontFamily = $this->params->get('textLogoFontFamily');
$textLogoLineHeight = $this->params->get('textLogoLineHeight');
$textLogoPadding 	= $this->params->get('textLogoPadding');
$textLogoMargin 	= $this->params->get('textLogoMargin');
$showSlogan 		= $this->params->get('showSlogan');
$slogan 			= $this->params->get('slogan');
$sloganColor 		= $this->params->get('sloganColor');
$sloganFontSize 	= $this->params->get('sloganFontSize');
$sloganFontFamily 	= $this->params->get('sloganFontFamily');
$sloganLineHeight 	= $this->params->get('sloganLineHeight');
$sloganPadding 		= $this->params->get('sloganPadding');
$sloganMargin 		= $this->params->get('sloganMargin');
$var2TitleColor 	= $this->params->get('var2TitleColor');
$var2TitleBgColor 	= $this->params->get('var2TitleBgColor');
$var2TitleBorderColor = $this->params->get('var2TitleBorderColor');
$var3TitleBorderColor= $this->params->get('var3TitleBorderColor');
$var4TitleColor 	= $this->params->get('var4TitleColor');
$var4TitleBgColor 	= $this->params->get('var4TitleBgColor');
$var6TitleColor 	= $this->params->get('var6TitleColor');
$var6TitleBgColor 	= $this->params->get('var6TitleBgColor');
$var6TitleBorderColor= $this->params->get('var6TitleBorderColor');
$var7TitleBorderColor 	= $this->params->get('var7TitleBorderColor');
$var8TitleColor 	= $this->params->get('var8TitleColor');
$var8TitleBgColor 	= $this->params->get('var8TitleBgColor');
$var8TitleBorderColor= $this->params->get('var8TitleBorderColor');
$var8Color 			= $this->params->get('var8Color');
$var8BgColor 		= $this->params->get('var8BgColor');
$var8LinkColor 		= $this->params->get('var8LinkColor');
$var8LinkActiveColor= $this->params->get('var8LinkActiveColor');
$var10TitleColor 	= $this->params->get('var10TitleColor');
$var10TitleBgColor 	= $this->params->get('var10TitleBgColor');
$var10BorderColor 	= $this->params->get('var10BorderColor');
$var10Color 		= $this->params->get('var10Color');
$var10BgColor 		= $this->params->get('var10BgColor');
$var10LinkColor 	= $this->params->get('var10LinkColor');
$var10LinkActiveColor= $this->params->get('var10LinkActiveColor');
$var11tTitleBorderColor 	= $this->params->get('var11TitleBorderColor');
$var13TitleColor 	= $this->params->get('var13TitleColor');
$var13BorderColor 	= $this->params->get('var13BorderColor');
$var13TitleShadowColor= $this->params->get('var13TitleShadowColor');
$var15TitleColor 	= $this->params->get('var15TitleColor');
$var15BorderColor 	= $this->params->get('var15BorderColor');
$var15TitleShadowColor= $this->params->get('var15TitleShadowColor');
$mobileNavUpBgColor	= $this->params->get('mobileNavUpBgColor');
$mobileNavText		= $this->params->get('mobileNavText');
$mobileNavButtonColor= $this->params->get('mobileNavButtonColor');
$mobileNavButtonBgColor	= $this->params->get('mobileNavButtonBgColor');
$mobileNavBgColor 	= $this->params->get('mobileNavBgColor');
$mobileNavBgLinkColor 	= $this->params->get('mobileNavBgLinkColor');
$mobileNavBgBorderColor = $this->params->get('mobileNavBgBorderColor');
$mobileNavActiveColor 	= $this->params->get('mobileNavActiveColor');
$mobileNavBgActiveColor = $this->params->get('mobileNavBgActiveColor');
$mobileBodyFontSize	= $this->params->get('mobileBodyFontSize');
$mobileBodyLineHeight = $this->params->get('mobileBodyLineHeight');
$mobileTextLogoFontSize = $this->params->get('mobileTextLogoFontSize');
$mobileSloganFontSize = $this->params->get('mobileSloganFontSize');
$mobileArticleFontSize = $this->params->get('mobileArticleFontSize');
$mobileModuleFontSize = $this->params->get('mobileModuleFontSize');
$analyticsCode		= $this->params->get('analyticsCode');

?>

<style type="text/css">


<?php if ($bodyColor != '' || $bodyFontSize != '' || $bodyFontFamily != '' || $bodyLineHeight != '' ) { ?>
body { 

<?php if ($bodyColor != '')	{ ?> 	color: #<?php echo htmlspecialchars($bodyColor); ?>;			<?php } ?>
<?php if ($bodyFontSize != '')	{ ?>	font-size: <?php echo htmlspecialchars($bodyFontSize); ?>;			<?php } ?>
<?php if ($bodyFontFamily != '')	{ ?>	font-family: <?php echo htmlspecialchars($bodyFontFamily); ?>;	<?php } ?>
<?php if ($bodyLineHeight != '')	{ ?>	line-height: <?php echo htmlspecialchars($bodyLineHeight); ?>;	<?php } ?>
}
<?php } ?>

<?php if ($maxWidth != '')	{ ?>
.row { max-width: <?php echo htmlspecialchars($maxWidth); ?>; }
<?php } ?>

<?php if ($linkColor != '')	{ ?>
a { color: #<?php echo htmlspecialchars($linkColor); ?>; }
<?php } ?>

<?php if ($linkColorHover != '') { ?>
a:hover { color: #<?php echo htmlspecialchars($linkColorHover); ?>; }
<?php } ?>

<?php if ($articleColor != '' ) { ?>
.item, .items-leading, .item-page {
<?php if ($articleColor != '') { ?> color: #<?php echo htmlspecialchars($articleColor); ?> ; <?php } ?>
}
<?php } ?>

<?php if ($articleTitleColor != '' || $articleTitleFontSize != '' || $articleTitleFontFamily != '' || $articleTitleBorderColor != '' || $articleTitleShadowColor != '' ) { ?>
.blog h2.title, .blog-featured h2.title, .item h2.title, .item-page h2.title, .archive h2.title, .category-list h2.title, .newsfeed-category h2.title, .newsfeed.redirect-ltr h2.title, .contact-category h2.title, .contact h2.title, .weblink-category h2.title  { 
<?php if ($articleTitleColor != '')	{ ?> color: #<?php echo htmlspecialchars($articleTitleColor); ?> ; <?php } ?>
<?php if ($articleTitleFontSize != '') { ?>	font-size: <?php echo htmlspecialchars($articleTitleFontSize); ?> ; <?php } ?>
<?php if ($articleTitleFontFamily != '') { ?> font-family: <?php echo htmlspecialchars($articleTitleFontFamily); ?> ; <?php } ?>
<?php if ($articleTitleShadowColor != '') { ?> text-shadow: 0 0 1px #<?php echo htmlspecialchars($articleTitleShadowColor); ?> ; <?php } ?> 
}
<?php } ?>

<?php if ($articleTitleLinkColor != '' || $articleTitleLinkShadowColor != '' ) { ?>
.blog h2.title a, .blog-featured h2.title a, .item h2.title a, .item-page h2.title a, .archive h2.title a, .category-list h2.title a, .newsfeed-category h2.title a, .newsfeed.redirect-ltr h2.title a, .contact-category h2.title a, .contact h2.title a, .weblink-category h2.title a {  
<?php if ($articleTitleLinkColor != '')	{ ?> color: #<?php echo htmlspecialchars($articleTitleLinkColor); ?> ; <?php } ?>
<?php if ($articleTitleLinkShadowColor != '') { ?> text-shadow: 0 0 1px #<?php echo htmlspecialchars($articleTitleLinkShadowColor); ?> ; <?php } ?> 			
}
<?php } ?>

<?php if ($articleTitleActiveColor != ''|| $articleTitleActiveShadowColor != '') { ?>
.blog h2.title a:hover, .blog-featured h2.title a:hover, .item h2.title a:hover, .item-page h2.title a:hover, .archive h2.title a:hover, .category-list h2.title a:hover, .newsfeed-category h2.title a:hover, .newsfeed.redirect-ltr h2.title a:hover, .contact-category h2.title a:hover, .contact h2.title a:hover, .weblink-category h2.title a:hover {  
<?php if ($articleTitleActiveColor != '')	{ ?>	color: #<?php echo htmlspecialchars($articleTitleActiveColor); ?> ;	<?php } ?>	
<?php if ($articleTitleActiveShadowColor != '') { ?> text-shadow: 0 0 1px #<?php echo htmlspecialchars($articleTitleActiveShadowColor); ?> ; <?php } ?>	
}
<?php } ?>

<?php if ($moduleTitleFontSize != '' || $moduleTitleFontFamily != '' ) { ?>
.moduletable h3, .moduletable_menu h3, .moduletable_text h3 { 
<?php if ($moduleTitleFontSize != '') { ?> font-size: <?php echo htmlspecialchars($moduleTitleFontSize); ?> ; <?php } ?>
<?php if ($moduleTitleFontFamily != '') { ?> font-family: <?php echo htmlspecialchars($moduleTitleFontFamily); ?> ; <?php } ?>
} 
<?php } ?>


<?php if ($topnavBgColor != '')	{ ?>
#topnavwrap { background-color: #<?php echo htmlspecialchars($topnavBgColor); ?> ;}
<?php } ?>

<?php if ($topnavColor != '') { ?>
#topnav { color: #<?php echo htmlspecialchars($topnavColor); ?> ; }
<?php } ?>

<?php if ($topnavTitleColor != '' || $topnavTitleBgColor != '' ) { ?>
#topnav .moduletable h3, #topnav .moduletable_menu h3, #topnav .moduletable_text h3 { 
<?php if ($topnavTitleColor != '') { ?> color: #<?php echo htmlspecialchars($topnavTitleColor); ?> ; <?php } ?>
<?php if ($topnavTitleBgColor != '') { ?> background-color: #<?php echo htmlspecialchars($topnavTitleBgColor); ?> ; <?php } ?>
} 
<?php } ?>

<?php if ($topnavLinkColor != '') { ?>
#topnav ul li a, #topnav a { color: #<?php echo htmlspecialchars($topnavLinkColor); ?> ; }
<?php } ?>

<?php if ($topnavLinkActiveColor != '') { ?>
#topnav ul li.active a, #topnav ul li a:hover, #topnav ul li:hover a, #topnav ul li.sfHover a, #topnav a:hover { 
	color: #<?php echo htmlspecialchars($topnavLinkActiveColor); ?> ;	
}
<?php } ?>

<?php if ($dateColor != '') { ?>
#showdate { color: #<?php echo htmlspecialchars($dateColor); ?> ; }
<?php } ?>

<?php if ($navColor != '') { ?>
#nav ul li a { color: #<?php echo htmlspecialchars($navColor); ?> ; }
<?php } ?>


<?php if ($navActiveColor != '' ) { ?>
#nav ul li.active a, #nav ul li a:hover, #nav ul li:hover a, #nav ul li.sfHover a,  a.nav-mobile:hover, a.nav-mobile:focus, #nav-mobile li a:hover, #nav-mobile li a:focus { 
<?php if ($navActiveColor != '') { ?> color: #<?php echo htmlspecialchars($navActiveColor); ?> ; <?php } ?>
}
<?php } ?>

<?php if ($subnavActiveColor != '' ) { ?>
#nav li li.active a, #nav li li li.active a, #nav li li li li.active a,#nav li li li li li.active a, #nav li li a:hover, #nav li li li a:hover, #nav li li li li a:hover, #nav li li li li li a:hover {
<?php if ($subnavActiveColor != '') { ?> color: #<?php echo htmlspecialchars($subnavActiveColor); ?> ; <?php } ?>	
}
<?php } ?>


<?php if ($slideBgColor != '')	{ ?>
#slidewrap { background-color: #<?php echo htmlspecialchars($slideBgColor); ?> ;}
<?php } ?>

<?php if ($slideColor != '') { ?>
#slide { color: #<?php echo htmlspecialchars($slideColor); ?> ; }
<?php } ?>

<?php if ($slideTitleColor != '' || $slideTitleBgColor != '' ) { ?>
#slide .moduletable h3, #slide .moduletable_menu h3, #slide .moduletable_text h3 { 
<?php if ($slideTitleColor != '') { ?> color: #<?php echo htmlspecialchars($slideTitleColor); ?> ; <?php } ?>
<?php if ($slideTitleBgColor != '') { ?> background-color: #<?php echo htmlspecialchars($slideTitleBgColor); ?> ; <?php } ?>
} 
<?php } ?>

<?php if ($slideLinkColor != '') { ?>
#slide ul li a, #slide a { color: #<?php echo htmlspecialchars($slideLinkColor); ?> ; }
<?php } ?>

<?php if ($slideLinkActiveColor != '') { ?>
#slide ul li.active a, #slide ul li a:hover, #slide ul li:hover a, #slide ul li.sfHover a, #slide a:hover { 
	color: #<?php echo htmlspecialchars($slideLinkActiveColor); ?> ;	
}
<?php } ?>


<?php if ($promoBgColor != '')	{ ?>
#promowrap { background-color: #<?php echo htmlspecialchars($promoBgColor); ?> ;}
<?php } ?>

<?php if ($promoColor != '') { ?>
#promo { color: #<?php echo htmlspecialchars($promoColor); ?> ; }
<?php } ?>

<?php if ($promoTitleColor != '' || $promoTitleBgColor != '' ) { ?>
#promo .moduletable h3, #promo .moduletable_menu h3, #promo .moduletable_text h3 { 
<?php if ($promoTitleColor != '') { ?> color: #<?php echo htmlspecialchars($promoTitleColor); ?> ; <?php } ?>
<?php if ($promoTitleBgColor != '') { ?> background-color: #<?php echo htmlspecialchars($promoTitleBgColor); ?> ; <?php } ?>
} 
<?php } ?>

<?php if ($promoLinkColor != '') { ?>
#promo ul li a, #promo a { color: #<?php echo htmlspecialchars($promoLinkColor); ?> ; }
<?php } ?>

<?php if ($promoLinkActiveColor != '') { ?>
#promo ul li.active a, #promo ul li a:hover, #promo ul li:hover a, #promo ul li.sfHover a, #promo a:hover { 
	color: #<?php echo htmlspecialchars($promoLinkActiveColor); ?> ;	
}
<?php } ?>


<?php if ($showcaseBgColor != '')	{ ?>
#showcasewrap { background-color: #<?php echo htmlspecialchars($showcaseBgColor); ?> ;}
<?php } ?>

<?php if ($showcaseColor != '') { ?>
#showcase { color: #<?php echo htmlspecialchars($showcaseColor); ?> ; }
<?php } ?>

<?php if ($showcaseTitleColor != '' || $showcaseTitleBgColor != '' ) { ?>
#showcase .moduletable h3, #showcase .moduletable_menu h3, #showcase .moduletable_text h3 { 
<?php if ($showcaseTitleColor != '') { ?> color: #<?php echo htmlspecialchars($showcaseTitleColor); ?> ; <?php } ?>
<?php if ($showcaseTitleBgColor != '') { ?> background-color: #<?php echo htmlspecialchars($showcaseTitleBgColor); ?> ; <?php } ?>
} 
<?php } ?>

<?php if ($showcaseLinkColor != '') { ?>
#showcase ul li a, #showcase a { color: #<?php echo htmlspecialchars($showcaseLinkColor); ?> ; }
<?php } ?>

<?php if ($showcaseLinkActiveColor != '') { ?>
#showcase ul li.active a, #showcase ul li a:hover, #showcase ul li:hover a, #showcase ul li.sfHover a, #showcase a:hover { 
	color: #<?php echo htmlspecialchars($showcaseLinkActiveColor); ?> ;	
}
<?php } ?>


<?php if ($maintopBgColor != '')	{ ?>
#maintopwrap { background-color: #<?php echo htmlspecialchars($maintopBgColor); ?> ;}
<?php } ?>

<?php if ($maintopColor != '') { ?>
#maintop { color: #<?php echo htmlspecialchars($maintopColor); ?> ; }
<?php } ?>

<?php if ($maintopTitleColor != '' || $maintopTitleBgColor != '' ) { ?>
#maintop .moduletable h3, #maintop .moduletable_menu h3, #maintop .moduletable_text h3 { 
<?php if ($maintopTitleColor != '') { ?> color: #<?php echo htmlspecialchars($maintopTitleColor); ?> ; <?php } ?>
<?php if ($maintopTitleBgColor != '') { ?> background-color: #<?php echo htmlspecialchars($maintopTitleBgColor); ?> ; <?php } ?>
} 
<?php } ?>

<?php if ($maintopLinkColor != '') { ?>
#maintop ul li a, #maintop a { color: #<?php echo htmlspecialchars($maintopLinkColor); ?> ; }
<?php } ?>

<?php if ($maintopLinkActiveColor != '') { ?>
#maintop ul li.active a, #maintop ul li a:hover, #maintop ul li:hover a, #maintop ul li.sfHover a, #maintop a:hover { 
	color: #<?php echo htmlspecialchars($maintopLinkActiveColor); ?> ;	
}
<?php } ?>


<?php if ($mainbottomBgColor != '')	{ ?>
#mainbottomwrap { background-color: #<?php echo htmlspecialchars($mainbottomBgColor); ?> ;}
<?php } ?>

<?php if ($mainbottomColor != '') { ?>
#mainbottom { color: #<?php echo htmlspecialchars($mainbottomColor); ?> ; }
<?php } ?>

<?php if ($mainbottomTitleColor != '' || $mainbottomTitleBgColor != '' ) { ?>
#mainbottom .moduletable h3, #mainbottom .moduletable_menu h3, #mainbottom .moduletable_text h3 { 
<?php if ($mainbottomTitleColor != '') { ?> color: #<?php echo htmlspecialchars($mainbottomTitleColor); ?> ; <?php } ?>
<?php if ($mainbottomTitleBgColor != '') { ?> background-color: #<?php echo htmlspecialchars($mainbottomTitleBgColor); ?> ; <?php } ?>
} 
<?php } ?>

<?php if ($mainbottomLinkColor != '') { ?>
#mainbottom ul li a, #mainbottom a { color: #<?php echo htmlspecialchars($mainbottomLinkColor); ?> ; }
<?php } ?>

<?php if ($mainbottomLinkActiveColor != '') { ?>
#mainbottom ul li.active a, #mainbottom ul li a:hover, #mainbottom ul li:hover a, #mainbottom ul li.sfHover a, #mainbottom a:hover { 
	color: #<?php echo htmlspecialchars($mainbottomLinkActiveColor); ?> ;	
}
<?php } ?>


<?php if ($bottomBgColor != '')	{ ?>
#bottomwrap { background-color: #<?php echo htmlspecialchars($bottomBgColor); ?> ;}
<?php } ?>

<?php if ($bottomColor != '') { ?>
#bottom { color: #<?php echo htmlspecialchars($bottomColor); ?> ; }
<?php } ?>

<?php if ($bottomTitleColor != '' || $bottomTitleBgColor != '' ) { ?>
#bottom .moduletable h3, #bottom .moduletable_menu h3, #bottom .moduletable_text h3 { 
<?php if ($bottomTitleColor != '') { ?> color: #<?php echo htmlspecialchars($bottomTitleColor); ?> ; <?php } ?>
<?php if ($bottomTitleBgColor != '') { ?> background-color: #<?php echo htmlspecialchars($bottomTitleBgColor); ?> ; <?php } ?>
} 
<?php } ?>

<?php if ($bottomLinkColor != '') { ?>
#bottom ul li a, #bottom a { color: #<?php echo htmlspecialchars($bottomLinkColor); ?> ; }
<?php } ?>

<?php if ($bottomLinkActiveColor != '') { ?>
#bottom ul li.active a, #bottom ul li a:hover, #bottom ul li:hover a, #bottom ul li.sfHover a, #bottom a:hover { 
	color: #<?php echo htmlspecialchars($bottomLinkActiveColor); ?> ;	
}
<?php } ?>


<?php if ($footerBgColor != '')	{ ?>
#footerwrap { background-color: #<?php echo htmlspecialchars($footerBgColor); ?> ;}
<?php } ?>

<?php if ($footerColor != '') { ?>
#footer { color: #<?php echo htmlspecialchars($footerColor); ?> ; }
<?php } ?>

<?php if ($footerTitleColor != '' || $footerTitleBgColor != '' ) { ?>
#footer .moduletable h3, #footer .moduletable_menu h3, #footer .moduletable_text h3 { 
<?php if ($footerTitleColor != '') { ?> color: #<?php echo htmlspecialchars($footerTitleColor); ?> ; <?php } ?>
<?php if ($footerTitleBgColor != '') { ?> background-color: #<?php echo htmlspecialchars($footerTitleBgColor); ?> ; <?php } ?>
} 
<?php } ?>

<?php if ($footerLinkColor != '') { ?>
#footer ul li a, #footer a { color: #<?php echo htmlspecialchars($footerLinkColor); ?> ; }
<?php } ?>

<?php if ($footerLinkActiveColor != '') { ?>
#footer ul li.active a, #footer ul li a:hover, #footer ul li:hover a, #footer ul li.sfHover a, #footer a:hover { 
	color: #<?php echo htmlspecialchars($footerLinkActiveColor); ?> ;	
}
<?php } ?>


<?php if ($copyrightBgColor != '')	{ ?>
#copyrightwrap { background-color: #<?php echo htmlspecialchars($copyrightBgColor); ?> ;}
<?php } ?>

<?php if ($copyrightColor != '') { ?>
#copyright { color: #<?php echo htmlspecialchars($copyrightColor); ?> ; }
<?php } ?>

<?php if ($copyrightTitleColor != '' || $copyrightTitleBgColor != '' ) { ?>
#copyright .moduletable h3, #copyright .moduletable_menu h3, #copyright .moduletable_text h3 { 
<?php if ($copyrightTitleColor != '') { ?> color: #<?php echo htmlspecialchars($copyrightTitleColor); ?> ; <?php } ?>
<?php if ($copyrightTitleBgColor != '') { ?> background-color: #<?php echo htmlspecialchars($copyrightTitleBgColor); ?> ; <?php } ?>
} 
<?php } ?>

<?php if ($copyrightLinkColor != '') { ?>
#copyright ul li a, #copyright a { color: #<?php echo htmlspecialchars($copyrightLinkColor); ?> ; }
<?php } ?>

<?php if ($copyrightLinkActiveColor != '') { ?>
#copyright ul li.active a, #copyright ul li a:hover, #copyright ul li:hover a, #copyright ul li.sfHover a, #copyright a:hover { 
	color: #<?php echo htmlspecialchars($copyrightLinkActiveColor); ?> ;	
}
<?php } ?>

<?php if ($buttonColor != '' || $buttonBgColor != '' ) { ?>
button, .button, input.button {  
<?php if ($buttonColor != '') { ?> color: #<?php echo htmlspecialchars($buttonColor); ?> ;	<?php } ?>	
<?php if ($buttonBgColor != '') { ?> background-color: #<?php echo htmlspecialchars($buttonBgColor); ?> ;	<?php } ?>
}
<?php } ?>

<?php if ($buttonActiveColor != '' || $buttonBgActiveColor != '' ) { ?>
button:hover, .button:hover, input.button:hover {  
<?php if ($buttonActiveColor != '') { ?> color: #<?php echo htmlspecialchars($buttonActiveColor); ?> ; <?php } ?>	
<?php if ($buttonBgActiveColor != '') { ?> background-color: #<?php echo htmlspecialchars($buttonBgActiveColor); ?> ; <?php } ?>
}
<?php } ?>

<?php if ($defaultLogoImgColor != '' || $defaultLogoImgOpacity != '') { ?>
#logo img { 
<?php if ($defaultLogoImgColor != '') { ?> background-color: #<?php echo htmlspecialchars($defaultLogoImgColor); ?> ; <?php } ?>	
<?php if ($defaultLogoImgOpacity != '') { ?> opacity: <?php echo htmlspecialchars($defaultLogoImgOpacity); ?> ; <?php } ?> 
}
<?php } ?>

<?php if ($defaultLogoPadding != '' || $defaultLogoMargin != '' ) { ?>
.defaultLogo {
<?php if ($defaultLogoPadding != '') { ?> padding: <?php echo htmlspecialchars($defaultLogoPadding); ?>; <?php } ?>
<?php if ($defaultLogoMargin != '')	{ ?> margin: <?php echo htmlspecialchars($defaultLogoMargin); ?>; <?php } ?>
}
<?php } ?>

<?php if ($mediaLogoPadding != '' || $mediaLogoMargin != '' ) { ?>
.mediaLogo { 
<?php if ($mediaLogoPadding != '') { ?> padding: <?php echo htmlspecialchars($mediaLogoPadding); ?>; <?php } ?>
<?php if ($mediaLogoMargin != '') { ?> margin: <?php echo htmlspecialchars($mediaLogoMargin); ?>; <?php } ?>
}
<?php } ?>

<?php if ($textLogoColor != '' || $textLogoFontSize != '' || $textLogoFontFamily != '' || $textLogoLineHeight != '' || $textLogoPadding != '' || $textLogoMargin != '' ) { ?>
.textLogo {
<?php if ($textLogoColor != '')	{ ?> color: #<?php echo htmlspecialchars($textLogoColor); ?> ; <?php } ?>
<?php if ($textLogoFontSize != '')	{ ?> font-size: <?php echo htmlspecialchars($textLogoFontSize); ?> ; <?php } ?>
<?php if ($textLogoFontFamily != '') { ?> font-family: <?php echo htmlspecialchars($textLogoFontFamily); ?> ; <?php } ?>
<?php if ($textLogoLineHeight != '') { ?> line-height: <?php echo htmlspecialchars($textLogoLineHeight); ?> ; <?php } ?>
<?php if ($textLogoPadding != '') { ?> padding: <?php echo htmlspecialchars($textLogoPadding); ?>; <?php } ?>
<?php if ($textLogoMargin != '') { ?> margin: <?php echo htmlspecialchars($textLogoMargin); ?>; <?php } ?>
}
<?php } ?>

<?php if ($sloganColor != '' || $sloganFontSize != '' || $sloganFontFamily != '' || $sloganLineHeight != '' || $sloganPadding != '' || $sloganMargin != '' ) { ?>
.slogan {
<?php if ($sloganColor != '') { ?> color: #<?php echo htmlspecialchars($sloganColor); ?> ; <?php } ?>
<?php if ($sloganFontSize != '') { ?> font-size: <?php echo htmlspecialchars($sloganFontSize); ?> ; <?php } ?>
<?php if ($sloganFontFamily != '') { ?> font-family: <?php echo htmlspecialchars($sloganFontFamily); ?> ; <?php } ?>
<?php if ($sloganLineHeight != '') { ?> line-height: <?php echo htmlspecialchars($sloganLineHeight); ?> ; <?php } ?>
<?php if ($sloganPadding != '') { ?> padding: <?php echo htmlspecialchars($sloganPadding); ?>; <?php } ?>
<?php if ($sloganMargin != '') { ?> margin: <?php echo htmlspecialchars($sloganMargin); ?>; <?php } ?>
}
<?php } ?>


<?php if ($var2TitleColor != '' || $var2TitleBgColor != '' || $var2BorderColor != '' ) { ?>
.moduletable-var2 h3 { 
<?php if ($var2TitleColor != '') { ?> color: #<?php echo htmlspecialchars($var2TitleColor); ?> ; <?php } ?>
<?php if ($var2TitleBgColor != '') { ?>	background-color: #<?php echo htmlspecialchars($var2TitleBgColor); ?> ;	<?php } ?>
<?php if ($var2TitleBorderColor != '')	{ ?>	border-bottom: 3px solid #<?php echo htmlspecialchars($var2TitleBorderColor); ?> ;	<?php } ?>
}
<?php } ?>

<?php if ($var3TitleBorderColor != '' ) { ?>
.moduletable-var3 h3 { border-bottom: 3px solid #<?php echo htmlspecialchars($var3TitleBorderColor); ?> ; }
<?php } ?>

<?php if ($var4TitleColor != '' || $var4TitleBgColor != '' ) { ?>
.moduletable-var4 h3 { 
<?php if ($var4TitleColor != '')	{ ?>	color: #<?php echo htmlspecialchars($var4TitleColor); ?> ;		<?php } ?>
<?php if ($var4TitleBgColor != '')	{ ?>	background-color: #<?php echo htmlspecialchars($var4TitleBgColor); ?> ;		<?php } ?>  
}
<?php } ?>

<?php if ($var6TitleColor != '' || $var6TitleBgColor != '' || $var6TitleBorderColor != '' ) { ?>
.moduletable-var6 h3 { 
<?php if ($var6TitleColor != '') { ?> color: #<?php echo htmlspecialchars($var6TitleColor); ?> ; <?php } ?>
<?php if ($var6TitleBgColor != '') { ?>	background-color: #<?php echo htmlspecialchars($var6TitleBgColor); ?> ;	<?php } ?>
<?php if ($var6TitleBorderColor != '')	{ ?>	border-bottom: 3px solid #<?php echo htmlspecialchars($var6TitleBorderColor); ?> ;	<?php } ?>
}
<?php } ?>

<?php if ($var7TitleBorderColor != '') { ?>
.moduletable-var7 h3 { 
<?php if ($var7TitleBorderColor != '') { ?> border-bottom: 3px solid #<?php echo htmlspecialchars($var7TitleBorderColor); ?> ;	<?php } ?>
}
<?php } ?>

<?php if ($var8TitleColor != '' || $var8TitleBgColor != '' || $var8TitleBorderColor != '' ) { ?>
.moduletable-var8 h3 { 
<?php if ($var8TitleColor != '') { ?> color: #<?php echo htmlspecialchars($var8TitleColor); ?> ; <?php } ?>
<?php if ($var8TitleBgColor != '') { ?>	background-color: #<?php echo htmlspecialchars($var8TitleBgColor); ?> ;	<?php } ?>  
<?php if ($var8TitleBorderColor != '') { ?> border-bottom: 3px solid #<?php echo htmlspecialchars($var8TitleBorderColor); ?> ; <?php } ?>
}
<?php } ?>

<?php if ($var8Color != '' || $var8BgColor != '' ) { ?>
.moduletable-var8 { 
<?php if ($var8TitleColor != '') { ?> color: #<?php echo htmlspecialchars($var8TitleColor); ?> ; <?php } ?>
<?php if ($var8TitleBgColor != '') { ?>	background-color: #<?php echo htmlspecialchars($var8TitleBgColor); ?> ;	<?php } ?>  
}
<?php } ?>

<?php if ($var8LinkColor != '') { ?>
.moduletable-var8 ul li a, .moduletable-var8 a { color: #<?php echo htmlspecialchars($var8LinkColor); ?> ; }
<?php } ?>

<?php if ($var8LinkActiveColor != '') { ?>
.moduletable-var8 ul li.active a, .moduletable-var8 ul li a:hover, .moduletable-var8 ul li:hover a, .moduletable-var8 ul li.sfHover a, .moduletable-var8 a:hover { 
	color: #<?php echo htmlspecialchars($var8LinkActiveColor); ?> ;	
}
<?php } ?>

<?php if ($var10TitleColor != '' || $var10TitleBgColor != '' || $var10BorderColor != '' ) { ?>
.moduletable-var10 h3 { 
<?php if ($var10TitleColor != '') { ?> color: #<?php echo htmlspecialchars($var10TitleColor); ?> ; <?php } ?>
<?php if ($var10TitleBgColor != '') { ?>	background-color: #<?php echo htmlspecialchars($var10TitleBgColor); ?> ;	<?php } ?>  
<?php if ($var10BorderColor != '') { ?> border-bottom: 3px solid #<?php echo htmlspecialchars($var10BorderColor); ?> ; <?php } ?>
}
<?php } ?>

<?php if ($var10Color != '' || $var10BgColor != '' ) { ?>
.moduletable-var10 { 
<?php if ($var10TitleColor != '') { ?> color: #<?php echo htmlspecialchars($var10TitleColor); ?> ; <?php } ?>
<?php if ($var10TitleBgColor != '') { ?>	background-color: #<?php echo htmlspecialchars($var10TitleBgColor); ?> ;	<?php } ?>  
}
<?php } ?>

<?php if ($var10LinkColor != '') { ?>
.moduletable-var10 ul li a, .moduletable-var10 a { color: #<?php echo htmlspecialchars($var10LinkColor); ?> ; }
<?php } ?>

<?php if ($var10LinkActiveColor != '') { ?>
.moduletable-var10 ul li.active a, .moduletable-var10 ul li a:hover, .moduletable-var10 ul li:hover a, .moduletable-var10 ul li.sfHover a, .moduletable-var10 a:hover { 
	color: #<?php echo htmlspecialchars($var10LinkActiveColor); ?> ;	
}
<?php } ?>

<?php if ($var11TitleBorderColor != '') { ?>
.moduletable-var11 h3 { 
<?php if ($var11TitleBorderColor != '') { ?> border-bottom: 3px solid #<?php echo htmlspecialchars($var11TitleBorderColor); ?> ;	<?php } ?>
}
<?php } ?>

<?php if ($var13TitleColor != '' || $var13TitleShadowColor != '' ) { ?>
.moduletable-var13 h3 { 
<?php if ($var13TitleColor != '') { ?> color: #<?php echo htmlspecialchars($var13TitleColor); ?> ; <?php } ?> 
<?php if ($var13TitleShadowColor != '') { ?> text-shadow: 0 0 1px #<?php echo htmlspecialchars($var13TitleShadowColor); ?> ; <?php } ?> 
}
<?php } ?>

<?php if ($var13BorderColor != '' ) { ?>
.moduletable-var13 { 
<?php if ($var13BorderColor != '') { ?>	border-bottom: 1px solid #<?php echo htmlspecialchars($var13BorderColor); ?> ;	<?php } ?> 
}
<?php } ?>

<?php if ($var15TitleColor != '' || $var15TitleShadowColor != '' ) { ?>
.moduletable-var15 h3 { 
<?php if ($var15TitleColor != '') { ?> color: #<?php echo htmlspecialchars($var15TitleColor); ?> ; <?php } ?> 
<?php if ($var15TitleShadowColor != '') { ?> text-shadow: 0 0 1px #<?php echo htmlspecialchars($var15TitleShadowColor); ?> ; <?php } ?> 
}
<?php } ?>

<?php if ($var15BorderColor != '' ) { ?>
.moduletable-var15 { 
<?php if ($var15BorderColor != '') { ?>	border-bottom: 1px solid #<?php echo htmlspecialchars($var15BorderColor); ?> ;	<?php } ?> 
}
<?php } ?>


@media handheld, only screen and (max-width: 767px) {

<?php if ($mobileNavUpBgColor != '') { ?>
#navbar { background-color: #<?php echo htmlspecialchars($mobileNavUpBgColor); ?> ; }
<?php } ?>

<?php if ($mobileNavButtonBgColor != '' || $mobileNavButtonColor != '' ) { ?>
a.nav-mobile { 
<?php if ($mobileNavButtonBgColor != '') { ?>	background-color: #<?php echo htmlspecialchars($mobileNavButtonBgColor); ?>; <?php } ?>
<?php if ($mobileNavButtonColor != '') { ?>	color: #<?php echo htmlspecialchars($mobileNavButtonColor); ?>; <?php } ?>
}
<?php } ?>

<?php if ($mobileNavBgColor != '') { ?>
#nav-mobile ul { background-color: #<?php echo htmlspecialchars($mobileNavBgColor); ?> ; }
<?php } ?>

<?php if ($mobileNavBgLinkColor != '' || $mobileNavBgBorderColor != '' ) { ?>
#nav-mobile ul a { 
<?php if ($mobileNavBgLinkColor != '') { ?>	color: #<?php echo htmlspecialchars($mobileNavBgLinkColor); ?>; <?php } ?>
<?php if ($mobileNavBgBorderColor != '') { ?> border-bottom: 1px solid # <?php echo htmlspecialchars($mobileNavBgBorderColor); ?>; <?php } ?>
}
<?php } ?>

<?php if ($mobileNavActiveColor != '' || $mobileNavBgActiveColor != '' ) { ?>
#nav-mobile ul a:hover { 
<?php if ($mobileNavActiveColor != '') { ?> color: #<?php echo htmlspecialchars($mobileNavActiveColor); ?>; <?php } ?>
<?php if ($mobileNavBgActiveColor != '') { ?> background-color: #<?php echo htmlspecialchars($mobileNavBgActiveColor); ?>; <?php } ?>
}
<?php } ?>

<?php if ($mobileBodyFontSize != '' || $mobileBodyLineHeight != '' ) { ?>
body { 
<?php if ($mobileBodyFontSize != '') { ?>	font-size: <?php echo htmlspecialchars($mobileBodyFontSize); ?>; <?php } ?>
<?php if ($mobileBodyLineHeight != '') { ?>	line-height: <?php echo htmlspecialchars($mobileBodyLineHeight); ?>; <?php } ?>
}
<?php } ?>

<?php if ($mobileTextLogoFontSize != '') { ?>
.textLogo { font-size: <?php echo htmlspecialchars($mobileTextLogoFontSize); ?> ; }
<?php } ?>

<?php if ($mobileSloganFontSize != '') { ?>
.slogan { font-size: <?php echo htmlspecialchars($mobileSloganFontSize); ?> ; }
<?php } ?>

<?php if ($mobileArticleFontSize != '') { ?>
.blog h2.title, .blog-featured h2.title, .item h2.title, .item-page h2.title { 
	font-size: <?php echo htmlspecialchars($mobileArticleFontSize); ?> ; }
<?php } ?>

<?php if ($mobileModuleFontSize != '')	{ ?>
.moduletable h3, .moduletable_menu h3, .moduletable_text h3 { 
	font-size: <?php echo htmlspecialchars($mobileModuleFontSize); ?> ; } 
<?php } ?>

}

</style>