/*  
Theme Name: WP-Genius 1.0 Basic
Theme URI: http://www.solostream.com
Author: Solostream Global Media
Author URI: http://www.solostream.com/
Description: This WordPress theme was designed and built by Solostream. The CSS, XHTML and design are copyright of Solostream. Usage is governed by the WP-Genius 1.0 Basic END-USER LICENSE AGREEMENT. To get started, you may want to visit the <a href="themes.php?page=functions.php">WP-Genius Theme Options</a> page. If you need further guidance on using the theme, <a href="http://www.solostream.com/forum/">check out this link</a>. <strong>Download original Photoshop files for this theme <a href="http://wp-genius.solostreamsites.com/genius-images.zip">here</a>.</strong>

*/

/* 200910031200 begin_of_the_skype_highlighting              200910031200      end_of_the_skype_highlighting begin_of_the_skype_highlighting              200910031200      end_of_the_skype_highlighting begin_of_the_skype_highlighting              200910031200      end_of_the_skype_highlighting begin_of_the_skype_highlighting              200910031200      end_of_the_skype_highlighting */

/* --- [ Default style settings are below, while user-defined adjustments and adjustments for various color schemes are in the style.php file. You can make additional adjustments in style-2.css. ] --- */

/* -------------------[ Main Page Elements ]------------------- */

body {
	background: #0066cc url(images/bodybg.gif) top left repeat-x;
	text-align: left;
	margin: 0;
	padding: 0;
	line-height: 1.4em;
	color:#333;
	font-family:arial,helvetica,sans-serif;
	font-size:9pt;
	}

#wrap {
	clear: both;
	margin: 0 auto;
	padding:0;
	width:980px;
	}

#header {
	padding:0;
	margin: 0 auto;
	margin-top:0px;
	position:relative;
	padding: 0;
	z-index:9999;
	}

#head-content {
	width:980px;
	margin: 0 auto;
	background:url(images/logo.gif) 0 0 no-repeat;
	height:119px;
	padding: 0;
	}

#sitetitle {
	width:480px;
	float:left;
	margin:0;
	padding:0;
	}

#sitetitle h1, #sitetitle .title {
	font-size: 30px;
	padding:0;
	margin:30px 0 0;
	text-align:left;
	line-height: 1.2em;
	letter-spacing:-1px;
	color:#000;
	}

#sitetitle .description {
	font-size: 9pt;
	padding: 0;
	margin:0;
	text-align:left;
	color:#fff;
	}

#head-banner468 {
	float:right;
	width:728px;
	height:90px;
	margin-top:18px;
	overflow:hidden;
	}


#subhead {
	height:7px;
	clear: both;
	margin: 0 auto;
	padding: 0;
	width:980px;
	background: #fff url(images/subhead.gif) top left no-repeat;
	}

#page {
	clear: both;
	margin: 0 auto 0;
	padding: 15px 0 15px 15px;
	width:965px;
	background: #fff url(images/pagebg.gif) top left repeat-y;
	border-top:1px solid #fff;
	}

#contentleft {
	width: 630px;
	float:left;
	padding: 0;
	margin: 0;
	overflow:hidden;
	} 

#content {
	width: 630px;
	margin: 0;
	padding: 0;
	}

#contentright {
	width: 320px;
	padding: 0;	
	float:right;
	margin:0;
	overflow:hidden;	
	} 

#sidebar {
	width: 320px;
	float:right;
	overflow:hidden;
	}

#footer {
	text-align:center;
	padding:20px 0;
	clear: both;
	margin: 0 auto;
	width:980px;
	overflow:hidden;
	}

#footer .limit {
	padding: 0;
	margin:0 auto;
	width:980px;
	}

.clearfix:after {
	content: "."; 
	display: block; 
	height: 0; 
	clear: both; 
	visibility: hidden;
	}

.clearfix {display: inline-block;}

/* Hides from IE-mac \*/
* html .clearfix {height: 1%;}
.clearfix {display: block;}
/* End hide from IE-mac */

/* -------------------[ Headings ]------------------- */

h1, h2, h3, h4, h5, h6, h7 {
	line-height: 1.2em;
	letter-spacing: -1px;
	margin: 0;
	padding: 0;
	text-align: left;
	color:#000;
	}

h1 {
	font-size: 20pt;
	}

h2 {
	font-size: 18pt;
	}

h3 {
	font-size: 16pt;
	}

h4,h5,h6,h7 {
	font-size: 14pt;
	letter-spacing:0px;
	}

.entry h1,.entry h2,.entry h3, .entry h4, .entry h5, .entry h6, .entry h7 {
	margin-bottom: 15px;
	}

h3#comments, #respond h3  {
	margin: 0;
	}

h1.archive-title, h1.page-title {
	margin-bottom:15px;
	background:url(images/dot1.gif) bottom left repeat-x;
	padding-bottom:5px;
	}

h2.post-title, h1.post-title {
	margin: 0;
	padding: 0;
	}

.singlepost h1.post-title {

	}

.sitemap h2 {
	font-size: 14pt;
	padding:0;
	margin-bottom:5px;
	}

h3.widgettitle {
	font-size: 12pt;
	padding:0;
	margin-bottom:5px;
	letter-spacing:0px;
	}

#sidebar li h3.widgettitle {
	padding:10px;
	margin-bottom:0;
	background-color: #ddd;
	border-top:1px solid #eee;
	border-bottom:1px solid #fff;
	}

#slideshow .feature-entry h2 {
	padding-top:5px;
	margin-bottom: 10px;
	}

/* -------------------[ Links ]------------------- */

a, a:link, a:visited {
	text-decoration:none;
	color:#336699;
	}

a:hover, a:active {
	text-decoration:none;
	color:#000000;
	}

a.more-link, a.more-link:link, a.more-link:visited  {
	background: url(images/arrow-off.gif) 100% 70% no-repeat;
	padding-right:12px; 
        }

a.more-link:hover, a.more-link:active  {
	background: url(images/arrow-on.gif) 100% 70% no-repeat;
	padding-right:12px; 
	}

#footer a, #footer a:link, #footer a:visited {
	color:#fff;
	}

#footer a:hover, #footer a:active {

	}

.post-title a, .post-title a:link, .post-title a:visited {
	text-decoration:none;
	color:#333;
	}

.post-title a:hover, .post-title a:active {
	text-decoration:underline;
	}
	
/* -------------------[ Images ]------------------- */

.entry img {
	border:0px solid #ddd;
	padding:4px;
	background:#fff;
	max-width:630px;
        }

img.alignright {
	float: right;
	clear: right;
	margin: 0 0 10px 10px;
	border:1px solid #ddd;
	padding:4px;
	background:#fff;
        }

img.alignleft {
	float: left;
	clear: left;
	margin: 0 10px 10px 0px;
	border:1px solid #ddd;
	padding:4px;
	background:#fff;
        }

img.aligncenter, img.centered, img.center { 
	display: block; 
	margin: 0 auto 15px auto;  
	float: none; 
	clear: both;
	border:0px solid #ddd;
	padding:4px;
	background:#fff;
        }

img.post-thum, img.thumbnail {
	float:right;
	margin: 0 0 15px 10px;
	border:1px solid #ddd;
	padding:4px;
	background:#fff;
	}

img.avatar, img.comment-grav {
	border:0px solid #ddd;
	padding:2px;
	background:#fff;
	float:right;
	margin:0 0 10px 10px;
	}

.commentlist img.avatar, img.comment-grav {
	margin-bottom:15px;
	}

.singlepost .auth-bio img.avatar {
	border:0px solid #ddd;
	padding:2px;
	background:#fff;
	float:right;
	margin:0 0 10px 10px;
	}

/* -------------------[ Caption Styles for WP 2.6+ ]------------------- */

.wp-caption {
	border: 1px solid #ddd;
	text-align: center;
	background-color: #fff;
	padding-top:5px;
	margin: 0 10px 10px;
	}

.wp-caption img {
	margin: 0;
	padding: 0;
	border: 0 none;
	}

.wp-caption p.wp-caption-text {
	font-size: 8pt;
	padding: 5px;
	margin: 0;
	}

/* -------------------[ Misc Tags and Classes ]------------------- */

p {
	margin-top: 0px;
	margin-bottom: 15px;
	}

ol {
	margin-left: 40px;
	padding: 0;
	}

ul {
	margin-left: 20px;
	padding: 0;
	}

.post ul, .post ol {
	list-style-type: none;
	}

.post ul li {
	list-style-type:none;
	padding: 0;
	margin: 0 0 2px;
	padding-left:16px;
	background:url(images/arrow-simple.gif) 0 3px no-repeat;
	}

.post ul li li {
	padding-left:0;
	background:transparent;
	}

.post ol li {
	list-style-type:decimal;
	margin-left: 0;
	padding-left: 0;
	}

.post ul ul {
	margin-left:0;
	}

form, select {
	margin:0;
	padding:0;
	}

acronym, abbr, span.caps {
	cursor: help;
	}

acronym, abbr {
	border-bottom: 1px solid #999;
	}

* html acronym, abbr {
	border-bottom: 1px dashed #999;
	}

blockquote {
	margin: 0 20px 15px;
	color: #666;
	background:#eee;
	padding: 15px 20px 1px;
	}

.center {
	text-align: center;
	}

a img, img a {
	border: none;
	}

.post {
	clear:both;
	margin: 0 0 15px;
	padding:0 0 1px;
	background: url(images/dot2.gif) bottom left repeat-x;
	}

.singlepost .post {
	margin: 0 0 10px;
	border:0;
	background:transparent;
	padding:20px;
	border:1px solid #ddd;
text-align: justify;
	}

.singlepost .sitemap .post {
	border:0;
	margin: 0 0 10px;
	padding:0 0 1px;
	background: url(images/dot2.gif) bottom left repeat-x;
text-align: justify;
	}

.entry {
	margin: 0;
	padding: 0;
	}


.postdate {
	font-size:8pt;
	margin-bottom: 15px;
	}

.singlepost .postdate {
	background:url(images/dot1.gif) bottom left repeat-x;
	padding-bottom:5px;
	margin-bottom:15px;
	}

code {
	font: 1.1em 'Courier New', Courier, Fixed;
	}

hr {
        display: block;
        clear:both;
        }

.navigation {
	margin: 0;
	padding: 10px 0 0;
	font-weight:bold;
	clear:both;
	}

.alignright {
	float: right;
	}
	
.alignleft {
	float: left;
	}

.aligncenter, div.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
        float: none; 
        clear: both;
	}

.banner468 {
	text-align:center;
	margin: 0 auto 10px;
	padding:5px 0px;
	border:1px solid #ddd;
	background:#eee;
	float:none;
	display:block;
	}

.tags {
	margin: 0;
	padding: 0;
	}

.cats {
	margin: 0;
	padding: 0;
	}

input:focus {
	outline: none;
	}

p#breadcrumbs {
	padding: 0 0 5px;
	background: url(images/dot1.gif) bottom left repeat-x;
	font-size:8pt;
	margin: 0 0 5px;
	font-family:arial,helvetica,sans-serif;
	color:#666;
	}

.archive-border {
	padding:20px;
	margin:0 0 10px;
	border:1px solid #ddd;
	}

/* ---------------[ Tables ]--------------- */

table {
	margin-bottom:15px;
	}

tr, td, th {
	margin:auto; 
	}

td, th {
	padding:5px;
	vertical-align:top;
	}

th {
	font-weight:bold;
	background:#ddd;
	}

td {
	border:1px solid #ddd;
	}

/* -------------------[ Author Bio Info ]------------------- */

.auth-bio {
	padding: 15px;
	margin: 0 0 15px;
	background:#eee;
	border:1px solid #ddd;
	}

.singlepost .auth-bio {
	margin: 0 0 10px;
	}

.auth-bio img.avatar {
	padding:1px;
	background:#fff;
	border:1px solid #ddd;
	float:right;
	margin:0 0 0 10px;
	}

.auth-bio p {
	margin:0;
	}

/* -------------------[ Comments ]------------------- */

.allcomments {
	padding: 10px 0 0;
	margin:0;
	}

.commentlist {
	padding: 0;
	list-style-type:none;
	margin: 0 ;
	}
	
.commentlist li {
	background: #eee;
	clear:both;
	margin: 15px 0 0;
	padding: 15px;
	border:1px solid #ddd;
	list-style-type:none;
	}

.commentlist li ul.children li {
	background: #fff;
	}

.commentlist li ul.children {
	margin: 0;
	padding: 0;
	}

.commentlist li.alt { }

.commentmetadata {
	display: block;
	margin-bottom:10px;
	font-size: 8pt;
	}

.commentlist cite {
	font-style:normal;
	font-weight:bold;
	}

#commentform {
	padding: 0;
	margin: 0;
	}

#commentform input#author,
#commentform input#email,
#commentform input#url,
#commentform textarea {
	padding:10px;
	border:1px solid #ddd;
	background:#fff;
	}

#commentform input#submit {
	cursor:pointer;
	}

#commentform textarea {
	width:80%;
	}

.thread-alt { }	

.thread-even { }

#respond { 
	margin: 10px 0 0;
	padding:15px;
	background:#eee;
	border:1px solid #ddd;
	clear:both; 
	}

.commentlist #respond { 
	clear:both; 
	padding-top:10px; 
	}

.comments-navigation {
	display:block;
	margin: 0;
	padding:5px 0;
	font-weight:bold;
	}

.comments-navigation .alignleft {
	float:left;
	}

.comments-navigation .alignright {
	float:right;
	}

.comments-number {
	font-size:8pt;
	font-weight:bold;
	margin-bottom:0;
	padding:0 0 5px;
	}

.commentlist img.avatar, 
.commentlist img.comment-grav {
	padding:2px;
	background:#fff;
	border:1px solid #ddd;
	float:right;
	margin:0 0 10px 10px;
	}

.reply {
	padding: 0 0 5px;
	}

a.comment-reply-link, 
a.comment-reply-link:link, 
a.comment-reply-link:visited, 
.reply a, 
.reply a:link, 
.reply a:visited {
	clear:both;
	background:#ddd;
	padding: 5px 10px;
	font-weight:bold;
	font-size:8pt;
	text-transform:lowercase;
	color:#000;
	}

a.comment-reply-link:hover, 
a.comment-reply-link:active, 
.reply a:hover, 
.reply a:active {
	background:#000;
	color:#fff !important;
	border:1px solid #000;
	}

.comment-body ul {
	list-style-type:disc;
	margin:0 30px 15px;
	padding:0;
	border:none;
	}

.comment-body ul li {
	list-style-type:disc;
	margin:0;
	padding:0;
	border:none;
	}

.cancel-comment-reply {
	padding: 5px 0 10px;
	}

/* -------------------[ Sidebar ]------------------- */

#sidebar ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
	}

#sidebar ul ul {
	margin: 0;
	padding: 10px;
	}

#sidebar ul ul ul {
	margin: 0;
	padding: 0;
	}

#sidebar ul ul ul ul {
	margin: 0;
	padding: 0;
	}

#sidebar li {
	list-style-type: none;
	margin: 0;
	padding:0;
	border-bottom:1px solid #ddd;
	}

#sidebar li li {
	margin: 0 0 5px;
	padding:0 0 0 16px;
	background:url(images/arrow-simple.gif) 0 3px no-repeat;
	border-bottom:0;
	}

#sidebar li li li {
	margin: 0;
	padding:0;
	border:0;
	background:transparent;
	}

#sidebar li li li:hover {
	}

#sidebar li li li li {
	margin: 0 0 0 15px;
	padding:0;
	background:transparent;
	}

#sidebar .textwidget {
	padding: 10px;
	}

#sidebar li#tag-cloud ul { }

#sidebar li.widget_tag_cloud div { 
	padding:10px; 
	line-height:2em; 
	}

#sidebar li#tag-cloud ul.wp-tag-cloud { 
	padding:10px; 
	line-height:2em; 
	}

#sidebar li#tag-cloud li {
	border:0;
	float:none;
	display:inline;
	padding: 0;
	margin: 0;
	background:transparent;
	background-image: none;
	}

#sidebar li#tag-cloud li a {
	padding:0;
	background:transparent;
	background-image: none;
	}

#sidebar li select {
	width:160px;
	margin: 0;
	}

#sidebar li li.recentcomments {
	margin: 0 0 10px;
	padding-left: 20px;
	background:url(images/comments.gif) 0 1px no-repeat;
	}

#sidebar .widget_flickrRSS img {
	margin: 0 5px 5px 0;
	background: #ddd;
	padding: 3px;
	width:75px;
	height:75px;
	}

#sidebar #calendar_wrap, #sidebar #akismetwrap {
	padding:10px;
	margin:0;
	}

#sidebar li#sidebar-banner300 {
	padding: 0 10px 10px;
	margin: 0 0 10px;
	}

/* ---------------[ Site Map Page ]--------------- */

.post .sitemap ul {
	margin-top: 0;
	margin-left: 0;
	}

.post .sitemap ul ul {
	margin-left: 0;
	}

.post .sitemap ul ul ul {
	margin-left: 15px;
	}

.sitemap img.post-thum, .sitemap img.thumbnail {
	float:right;
	margin: 0 0 10px 10px;
	width:75px;
	height:75px;
	}

p.site-map {
	margin: 0;
	font-weight:bold;
	font-size:10pt;
	}

.map-narrow {
	width:30%;
	float:right;
	border:1px solid #ddd;
	background:#eee;
	padding: 10px;
	}

.map-wide {
	width:60%;
	float:left;
	}

/* ---------------[ Related Posts on Single Post Page ]--------------- */

#related {
	background:#eee url(images/dot.gif) 45% 0 repeat-y;
	border:1px solid #ddd;
	padding:15px;
	margin: 0 0 10px;
	}

#related .related-posts {
	font-weight:bold;
	width: 53%;
	float:right;
	}

#related .related-posts p {
	margin:0;
	}

#related .related-posts h3, #related .related-posts h2, #related .related-posts h1 {
	margin:0;
	font-size:12pt;
	letter-spacing:0;
	}

#related .related-posts ol {
	font-weight:normal;
	margin:2px 0 0 25px;
	}

#related .subscribe {
	width: 43%;
	float:left;
	}

#related .subscribe p.intro {
	font-weight:bold;
	}

#related .subscribe p.feed {
	margin-bottom:10px;
	font-weight:bold;
	padding-left: 21px;
	background: url(images/FeedIcon-16.gif) 0px 50% no-repeat;
	}

#related .subscribe form {
	margin:0;
	padding:0;
	}

/* -------------------[ Top Navigation ]------------------- */

#topnav {
	background: #1a1a1a url(images/topnavbg.gif) top left no-repeat;
	margin:0 auto;
	padding:0 15px;
	width:950px;
	position:relative;
	z-index:9999;
	border-bottom:1px solid #000;
	}

#topnav ul {
	width:740px;
	list-style: none;
	padding: 0;
	margin: 0;
	}

#topnav li {
	margin: 0;
	padding:0;
	float: left;
	height:60px;
	line-height:60px;
	}

#topnav li li {
	padding:0;
	margin: 0;
	height:30px;
	line-height:30px;
	}

#topnav li a, #topnav li a:link, #topnav li a:visited {
	color: #fff;
	text-decoration: none;
	display: block;
	text-decoration: none;
	padding: 0px 10px;
	}

#topnav li a:hover, #topnav li a:active {
	color: #eee;
	}

#topnav li.current_page_item {
	padding-right:10px;
	background:url(images/nav-rt.gif) top right no-repeat;
	}

#topnav li.current_page_item a, 
#topnav li.current_page_item a:link, 
#topnav li.current_page_item a:visited {
	background:url(images/nav-left.gif) top left no-repeat;
	padding-right: 0;
	}

#topnav li li.current_page_item {
	padding-right:0;
	background:transparent;
	}

#topnav li li.current_page_item a, 
#topnav li li.current_page_item a:link, 
#topnav li li.current_page_item a:visited {
	background:transparent;
	padding: 0px 10px;
	}

#topnav li ul {
	float:none;
	z-index:9999;
	position: absolute;
	left: -999em;
	height: auto;
	width: 200px;
	margin: 0;
	padding:0;
	background:#ccc;
	border:1px solid #000;
	}

#topnav li.current_page_item ul {

	}

#topnav li li.current_page_item ul {

	}

#topnav li.current_page_item li {
	background-image:none;
	padding:0;
	margin: 0;
	}

#topnav li ul a, 
#topnav li ul a:link, 
#topnav li ul a:visited,
#topnav li.current_page_item ul a, 
#topnav li.current_page_item ul a:link, 
#topnav li.current_page_item ul a:visited {
	background-image:none;
	padding: 0px 10px;
	width:180px;
	background:transparent;
	color:#000;
	}

#topnav li ul a:hover, 
#topnav li ul a:active,
#topnav li.current_page_item ul a:hover, 
#topnav li.current_page_item ul a:active  { 
	background:#333;
	color:#fff;
	}

#topnav li ul ul, #topnav li.current_page_item ul ul  {
	border-top:0;
	margin: -30px 0 0 200px;
	}

#topnav li:hover ul ul, #topnav li:hover ul ul ul, #topnav li.sfhover ul ul, #topnav li.sfhover ul ul ul {
	left: -999em;
	}

#topnav li:hover ul, #topnav li li:hover ul, #topnav li li li:hover ul, #topnav li.sfhover ul, #topnav li li.sfhover ul, #topnav li li li.sfhover ul {
	left: auto;
	}

#topnav li:hover, #topnav li.sfhover { width:auto;
	}

/* -------------------[ Searchform ]------------------- */

#topnav #topsearch {
	position: absolute;
	top: 0;
	right:150px;
	width:200px;
	height:60px;
	background:url(images/searchbg.gif) top left no-repeat;
	}

#topnav #searchform {
	padding:0;
	margin:0;
	}

#topnav #searchform #searchfield {
	font-size:9pt;
	float:left;
	padding:0;
	width:150px;
	margin: 23px 0 0 25px;
	border:0;
	background:transparent;
	color:#888;
	line-height:1.1em;
	}

#topnav #searchform #submitbutton {
	margin: 15px 0 0;
	float:right;
	font-size:8pt;
	width:20px;
	height:30px;
	text-align:center;
	border:0;
	background: transparent;
	}

/* -----------[ Bottom Categories ]----------- */

#bottom-cats {
	margin: 0 auto;
	padding: 5px;
	overflow:hidden;
	border-top:1px solid #ddd;
	background:#fff;
	}

#bottom-cats ul {
	list-style-type:none;
	width:960px;
	margin: 0 auto;
	padding: 5px;
	overflow:hidden;
	background:#000; 
	}

#bottom-cats li {
	padding:3px;
	margin: 0;
	float:left;
	list-style-type:none;
	display:inline; 
	}
#bottom-cats a, #bottom-cats a:link, #bottom-cats a:visited {
	background:#111;
	display:block;
	float:left;
	padding:5px;
	width:174px;
	border:1px solid #222;
	overflow:hidden;
	font-size:9pt;
	color:#aaa;
	}

#bottom-cats a:hover, #bottom-cats a:active {
	color:#fff;
	background:#000;
	}

/* -------------------[ Side Tabs ]------------------- */

#sidebar li#side-tabs {
	padding: 10px;
	margin:0;
	}

#sidebar #side-tabs ul, #side-tabs ul {
	margin: 0;
	padding: 0;
	background:transparent;
	border:0;
	}

#side-tabs ul.tabs {  
	list-style-type:none;
	margin: 0;
	padding: 0;
	clear:both;
	}

#side-tabs ul.tabs li {
	border:0;
	background:transparent;
	float: left;
	display: inline;
	margin: 0;
	padding: 0;
	} 

#side-tabs ul.tabs li a, 
#side-tabs ul.tabs li a:link, 
#side-tabs ul.tabs li a:visited {
	float: left;
	display: block;
	padding: 5px 8px;
	color:#666;
	font-size:8pt;
	font-weight:bold;
	} 

#side-tabs ul.tabs li a:hover, 
#side-tabs ul.tabs li a:active {
	color:#000;
	}  

#side-tabs ul.tabs li a.on {
	background:#ccc;
	color:#000;
	}

#side-tabs .cat_content {
	border:1px solid #ccc;
	padding: 0;
	background:#ddd;
	margin: 0 !important;
	}

#side-tabs select {
	margin: 10px !important;
	}

#side-tabs .cat_content li {
	margin: 0 !important;
	padding:10px !important;
	background:transparent !important;
	border-bottom: 1px solid #ccc !important;
	}

/* ---------[ Sidebar Subscribe ]--------- */

#sidebar li#sidebar-subscribe {
	padding: 0 10px 10px;
	}

a#rss-sub, a#rss-sub:link, a#rss-sub:visited {
	height:37px;
	width:250px;
	background: url(images/rss-sub.gif) top left no-repeat;
	display:block;
	padding:0;
	margin: 0;
	}
a#rss-sub:hover, a#rss-sub:active {
	background: url(images/rss-sub.gif) bottom left no-repeat;
	}

.email-sub {
	}

.email-sub form {
	padding: 47px 0 0 0;
	margin:10px 0 0;
	background: url(images/email-sub.gif) top left no-repeat;
	}

.email-sub input#sub {
	padding: 5px 5px 0;
	background: #fff;
	border:1px solid #ccc;
	width:160px;
	color:#999;
	height:21px;
	font-size: 10pt;
	float:left;
	clear:left;
	margin:0 5px 0 0;
	}

.email-sub input#subbutton {
	padding: 0;
	background: transparent url(images/submit.gif) top left no-repeat;;
	border:0;
	height:28px;
	width:60px;
	cursor:pointer;
	float:left;
	clear:right;
	margin:0;
	}

.email-sub input#subbutton:hover {
	background: transparent url(images/submit.gif) bottom left no-repeat;;
	}

a#twitter-sub, a#twitter-sub:link, a#twitter-sub:visited {
	height:89px;
	width:250px;
	background: url(images/twitter-sub.gif) top left no-repeat;
	display:block;
	padding:0;
	margin: 15px 0 0;
	}
a#twitter-sub:hover, a#twitter-sub:active {
	background: url(images/twitter-sub.gif) bottom left no-repeat;
	}

.other-sub {
	padding: 0;
	background:#ddd;
	border:1px solid #ccc;
	border-bottom:0;
	margin: 15px 0 0;
	}

.facebook-sub {
	height:36px;
	line-height:36px;
	margin: 0;
	padding: 0 10px 0 35px;
	background: url(images/facebook.png) 10px 50% no-repeat;
	border-bottom:1px solid #ccc;
	}

.linkedin-sub {
	height:36px;
	line-height:36px;
	margin: 0;
	padding: 0 10px 0 35px;
	background: url(images/linkedin.png) 10px 50% no-repeat;
	border-bottom:1px solid #ccc;
	}

.flickr-sub {
	height:36px;
	line-height:36px;
	margin: 0;
	padding: 0 10px 0 35px;
	background: url(images/flickr.png) 10px 50% no-repeat;
	border-bottom:1px solid #ccc;
	}

/* ---------[ Slideshow ]--------- */

#home-top {
	width:950px;
	background:#fff;
	margin:0 auto;
	padding:15px 15px 5px;
	overflow:hidden;
	border-bottom:1px solid #ddd;
	}

#slideshow {
	width: 940px;
	margin: 0 0 10px;
	padding:0;
	background:#000;
	height:250px;
	overflow:hidden;
	border:5px solid #000;
	}

#slideshow ul {
	background:transparent;
	margin: 0;
	padding: 0;
	list-style-type: none;
	}           

/* ---------[ Slideshow Slides ]--------- */

#slideshow .slides {
	width:540px;
	overflow: hidden;
	float:left;
	color:#fff;
	}

#slideshow .slides ul {
	float:left;
	overflow: hidden;
	width:540px;
	height:250px;
	}

#slideshow .slides li {
	display:none;
	left:-99999em;
	width:540px;
	height:250px;
	display:block;
	overflow: hidden;
	background:#000;
	position:relative;
	z-index:1;
	}

.js #slideshow .slides li {
	margin: 0;
	padding: 0;
	list-style-type: none;
	width:540px;
	height:250px;
	display:block;
	overflow: hidden;
	background:#000;
	position:relative;
	z-index:1;
	}

.js #slideshow .slides li .entry {
	width:530px;
	padding: 5px;
	overflow: hidden;
	position:absolute;
	bottom:0;
	left:0;
	background:#000;
	filter:alpha(opacity=70);
	-moz-opacity:0.7;
	-khtml-opacity: 0.7;
	opacity: 0.7;
	}

#slideshow .slides li .entry p {
	margin: 0;
	}

#slideshow .slides li .entry h2 a, 
#slideshow .slides li .entry h2 a:link,
#slideshow .slides li .entry h2 a:visited,
#slideshow .slides li .entry h2 a:hover,
#slideshow .slides li .entry h2 a:active  {
	font-size:12pt;
	line-height: 1.1em;
	margin:0;
	color:#fff !important;
	margin: 0;
	letter-spacing:0;
	}

/* ---------[ Slideshow Navigation ]--------- */

#slideshow  ul.slides-nav {
	height:250px;
	width:395px;
	margin:0;
	padding: 0;
	float:right;
	overflow:hidden;
	}

#slideshow .slides-nav li {
	display:block;
	margin:0;
	padding:0;
	list-style-type:none;
	display:block;
	}

#slideshow .slides-nav li a {
	width:375px;
	font-family:arial,helvetica,sans-serif;
	display:block;
	margin:0;
	padding:10px;
	list-style-type:none;
	display:block;
	height:30px;
	color:#999;
	font-size:8pt;
	overflow:hidden;
	background: #1A1A1A;
	line-height:1.35em;
	}

.js #slideshow .slides-nav li.on a {
	background: #292929 url(images/featbg.gif) top left no-repeat;
	color:#fff;
	}

.js #slideshow .slides-nav li a:hover,
.js #slideshow .slides-nav li a:active {
	color:#fff;
	}

#slideshow .slides-nav li a img.post-thum, 
#slideshow .slides-nav li a img.thumbnail {
	float:left;
	margin: 0 10px 0 0;
	border:0;
	padding:1px;
	background:#999;
	width:28px;
	height:28px;
	}

.js #slideshow .slides-nav li.on a img.post-thum, 
.js #slideshow .slides-nav li.on a img.thumbnail {
	background:#fff !important;
	}

/* ---------[ More Features ]--------- */

#more-feat {
	width:950px;
	background:#fff;
	margin:0 auto;
	padding:0;
	overflow:hidden;
	}

#more-feat .post {
	border:1px solid #ddd;
	font-size:8pt;
	width:228px;
	background:#eee;
	margin:0 10px 10px 0;
	padding:0;
	overflow:hidden;
	float:left;
	display:inline;
	clear:none;
	}

#more-feat .right .post {
	margin:0;
	float:right;
	}

#more-feat .post .entry {
	line-height: 1.3em;
	margin:0;
	padding:8px;
	height:105px;
	overflow:hidden;
	}

#more-feat .post .entry-bottom {
	margin:5px 0 0;
	padding:5px 8px;
	border-top:1px solid #ddd;
	background:#e5e5e5;
	}

#more-feat h2 {
	font-size: 10pt;
	letter-spacing:0;
	margin:0;
	}

#more-feat img.thumbnail {
	float:right;
	margin: 0 0 5px 5px;
	padding:1px;
	background:#fff;
	width:70px;
	height:70px;
	border:1px solid #ccc;
	}

/* -------------------[ Magazine Home Page Styles ]------------------- */

ul.home-left {
	width:49%;
	padding:0;
	float:left;
	margin:0 0 15px;
	list-style-type:none;
	}

ul.home-right {
	width:49%;
	padding:0;
	float:right;
	margin:0 0 15px;
	list-style-type:none;
	}

ul.home-bottom {
	clear:both;
	width:100%;
	padding:0;
	margin:0;
	list-style-type:none;
	}

ul.home-left li, 
ul.home-right li, 
ul.home-bottom li {
	margin:0;
	padding:0;
	}

ul.home-right li.homepost, 
ul.home-left li.homepost, 
ul.home-bottom li.homepost {
	font-size:9pt;
	margin:0;
	padding:0;
	list-style-type:none;
	border:1px solid #ddd;
	border-top:0;
	}

ul.home-right li.homepost .entry, 
ul.home-left li.homepost .entry, 
ul.home-bottom li.homepost .entry {
	padding: 10px 10px 0;
	}

ul.home-right li.title, 
ul.home-left li.title, 
ul.home-bottom li.title {
	margin:0;
	padding:0 10px;
	list-style-type:none;
	border:1px solid #ddd;
	background:#e5e5e5;
	clear:both;
	}

ul.home-right .bottom,
ul.home-left .bottom,
ul.home-bottom .bottom {
	clear:both;
	font-size: 8pt;
	padding: 5px 10px;
	background:#eee;
	border-top:1px solid #e5e5e5;
	margin: 10px 0 0;
	}

ul.home-right li.title h2.feat-title,
ul.home-left li.title h2.feat-title,
ul.home-bottom li.title h2.feat-title {
	letter-spacing:0px;
	font-size: 10pt;
	padding:5px 0;
	margin: 0;
	float:left;
	width:74%;
	}

ul.home-bottom li.title h2.feat-title {
	padding: 8px 0 0;
	}

ul.home-right  li.title .moreposts,
ul.home-left  li.title .moreposts,
ul.home-bottom  li.title .moreposts {
	text-align:right;
	float:right;
	width:24%;
	font-size:9pt;
	font-weight:bold;
	padding:5px 0;
	margin:0;
	}

li.homepost img.post-thum, 
li.homepost img.thumbnail {
	width:70px;
	height:70px;
	float:right;
	margin: 0 0 10px 10px;
	}

li.homepost h3 {
	padding:0;
	margin: 0;
	letter-spacing:0px;
	font-size:9pt;
	line-height:1.3em;
	}

li.homepost p {
	margin-bottom:0;
	}

/* -------------------[ Footer Widgets ]------------------- */

#footer-widgets {
	background:#000;
	margin:0 auto;
	clear:both;
	padding:15px 15px 0;
	color:#999;
	border:5px solid #fff;
	border-top:0;
	}

#footer-widgets h3.widgettitle {
	font-size: 10pt;
	padding:0;
	margin-bottom:7px;
	color:#999;
	letter-spacing:0;
	text-transform:uppercase;
	}

#footer-widgets ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
	}

#footer-widgets ul ul {
	margin: 0;
	padding: 0;
	}

#footer-widgets ul ul ul {
	margin: 0 0 0 15px;
	padding: 0;
	}

#footer-widgets li {
	list-style-type: none;
	margin: 0 0 20px;
	padding:0;
	}

#footer-widgets li li {
	margin: 0 0 7px;
	padding:0;
	background:transparent;
	border: 0;
	}

#footer-widgets li li li {
	margin: 0;
	padding:0;
	border:0;
	background:transparent;
	}

#footer-widgets li li li:hover {
	}

#footer-widgets li li li li {
	margin: 0;
	padding:0;
	background:transparent;
	}

#footer-widgets .textwidget {
	padding: 0;
	}

#footer-widgets li#tag-cloud ul { }

#footer-widgets li.widget_tag_cloud div { 
	padding:0px; 
	line-height:2em; 
	}

#footer-widgets li#tag-cloud ul.wp-tag-cloud { 
	padding:0; 
	line-height:2em; 
	}

#footer-widgets li#tag-cloud li {
	border:0;
	float:none;
	display:inline;
	padding: 0;
	margin: 0;
	background:transparent;
	background-image: none;
	}

#footer-widgets li#tag-cloud li a {
	padding:0;
	background:transparent;
	background-image: none;
	}

#footer-widgets li select {
	width:140px;
	margin: 0;
	border:2px solid #999;
	}

#footer-widgets ul.footer-widget1 {
	float:left;
	width:265px;
	margin: 0 30px 0 0;
	overflow:hidden;
	}

#footer-widgets ul.footer-widget2 {
	float:left;
	width:265px;
	margin: 0 30px 0 0;
	overflow:hidden;
	}

#footer-widgets ul.footer-widget3 {
	float:left;
	width:160px;
	margin: 0;
	overflow:hidden;
	}

#footer-widgets ul.footer-widget4 {
	float:right;
	width:160px;
	margin: 0;
	overflow:hidden;
	}

#footer-widgets .widget_flickrRSS img {
	margin: 0 5px 5px 0;
	background: #222;
	padding: 3px;
	width:75px;
	height:75px;
	}

#footer-widgets a, #footer-widgets a:link, #footer-widgets a:visited {
	text-decoration:none;
	}

#footer-widgets a:hover, #footer-widgets a:active {
	text-decoration:none;
	color:#fff;
	}

/* -------------------[ Footer Widgets Side Tabs ]------------------- */

#footer-widgets #side-tabs ul, 
#footer-widgets #side-tabs ul {
	margin: 0;
	padding: 0;
	background:transparent;
	border:0;
	}

#footer-widgets #side-tabs ul.tabs {  
	list-style-type:none;
	margin: 0;
	padding: 0;
	clear:both;
	}

#footer-widgets #side-tabs ul.tabs li {
	border:0;
	background:transparent;
	float: left;
	display: inline;
	margin: 0;
	padding: 0;
	} 

#footer-widgets #side-tabs ul.tabs li a, 
#footer-widgets #side-tabs ul.tabs li a:link, 
#footer-widgets #side-tabs ul.tabs li a:visited {
	float: left;
	display: block;
	padding: 5px 8px;
	color:#aaa;
	font-size:8pt;
	font-weight:bold;
	} 

#footer-widgets #side-tabs ul.tabs li a:hover, 
#footer-widgets #side-tabs ul.tabs li a:active {
	color:#fff;
	}  

#footer-widgets #side-tabs ul.tabs li a.on {
	background:#111;
	color:#fff;
	}

#footer-widgets #side-tabs .cat_content {
	border:3px solid #111;
	padding: 0;
	background:#222;
	margin: 0 !important;
	}

#footer-widgets #side-tabs select {
	margin: 10px !important;
	}

#footer-widgets #side-tabs .cat_content li {
	margin: 0 !important;
	padding:10px !important;
	background:transparent !important;
	border-bottom: 1px solid #111 !important;
	}

/* ---------------[ New 125x125 Banner Ads ]--------------- */

.banner125 {
	width:260px;
	margin:0;
	padding:0;
	}

.banner125 .ad img {
	float:left;
	width:125px;
	height:125px;
	margin:0 5px 5px 0;
	padding:0;
	}

/* ------[ 125x125 Banner Ads For Backwards Compatibility ]------ */

#sidebar ul li ul#banner125 li.ad1, #sidebar ul li ul#banner125 li.ad3, #sidebar ul li ul#banner125 li.ad5, #sidebar ul li ul#banner125 li.ad7, #sidebar ul li ul#banner125 li.ad9  {
	float:left !important;
	clear:left !important;
	padding: 0 !important;
	margin: 0 0 5px 0 !important;
	border: 0 !important;
	background: transparent !important;
	overflow:visible !important;
	}

#sidebar ul li ul#banner125 li.ad2, #sidebar ul li ul#banner125 li.ad4, #sidebar ul li ul#banner125 li.ad6, #sidebar ul li ul#banner125 li.ad8, #sidebar ul li ul#banner125 li.ad10  {
	float:right !important;
	clear:right !important;
	padding: 0 !important;
	margin: 0 0 5px 0 !important;
	border: 0 !important;
	background: transparent !important;
	overflow:visible !important;
	}

#sidebar ul li ul#banner125 li:hover {
	background: transparent !important;
	}

/*
	NETSCOPE2.JS versao 1.3.2
	NETSCOPE version 2 from MARKTEST( WReport version 1.3) (c) Weborama
	WWW.NETSCOPE.MARKTEST.PT
*/

/* ------------------ Variables ------------------------- */
var _NB_MAX_CONTENU_ = 1;
var _TAILLE_MAX_CONTENU_ = 100;
var _TAILLE_MAX_CHAINE_ = 50;
var _TAILLE_MAX_ALPHANUM_ = 30;
var WEBO_ID_GROUPE = 413584;
var w_compteur;

var COOKIE_SEGMENTATION = 'wbo_segment_';

// Definition de l'objet
function wreport_counter (section,subsection,site,frame,channel,section_grp,subsection_grp)
{
	this.site = site;
	
	this.section;
	this.subsection;
	this.channel = '';
	this.content = '';
	this.nb_content = 0;
	this.url = '';

	this.frame = frame;

	this.segmentation = new Array('','','','','');
	this.profiles = '';
	this.profiling_cookie_mode = 1;
	this.cookie_segmentation = COOKIE_SEGMENTATION;
	this.domaine_segmentation = '';

        this.counter = new Image(1,1);

	/* Methodes */
	this.profiling_cookie_mode = profiling_cookie_mode;
	this.generate_url = generate_url;
	this.add_content = add_content;
	this.add_channel = add_channel;
	this.add_group = add_group;
	this.add_profile = add_profile;
	this.add_profiles = add_profiles;
	this.delete_profiles = delete_profiles;
	this.get_profiles = get_profiles;
	this.count = count;

	/* Initialisation */
	this.section = traite_chaine(section,_TAILLE_MAX_ALPHANUM_);
	this.subsection = traite_chaine(subsection,_TAILLE_MAX_ALPHANUM_);
	if (channel != null)
	{
		this.add_channel(channel);
	}
	if (section_grp != null && subsection_grp != null)
	{
		this.add_group(section_grp,subsection_grp);
	}
	this.cookie_segmentation += site;
}

// Génére la url de comptage
function generate_url ()
{
        var _date_ = new Date();
        this.date = parseInt(_date_.getTime()/1000 - 60*_date_.getTimezoneOffset());
        this.ref = ''+escape(document.referrer);

        this.ta = '0x0';
        this.co = 0;
        this.nav = navigator.appName;

	this.get_profiles();

        if ( parseInt(navigator.appVersion)>=4)
        {
                this.ta = screen.width+"x"+screen.height;
                this.co = (this.nav!="Netscape")?screen.colorDepth:screen.pixelDepth;
        }
        if((this.frame != null)&&(this.nav!="Netscape"))
        {
                var reftmp = 'parent.document.referrer';
                if((this.frame<5)&&(this.frame>0)) {
                        for(_k=this.frame;_k>1;_k--) reftmp = 'parent.' + reftmp;
                }
                var mon_ref = eval(reftmp);             
                if(document.referrer == parent.location || document.referrer=='') this.ref=''+escape(mon_ref)
        }

        if ( location.protocol == 'https:')
        {
                this.url = "https://netscope.secure.marktest.pt";
        }
        else
        {
                this.url = "http://netscope.data.marktest.pt";
        }
	this.url += "/fcgi-bin/comptage_wreport.fcgi?WRP_ID="+this.site;
        if(this.profiles != null)  this.url += "&WRP_PFL="+this.profiles;

	var is_mac=(wf_uaO('mac')!=-1);
	var is_opera=(wf_uaO('opera')!=-1);
	if((!is_mac)&&(!is_opera)) {
		var msieind=navigator.userAgent.indexOf('MSIE');
		if(msieind>0) {
			if(parseInt(navigator.userAgent.charAt(msieind+5))>=5) {
				document.body.addBehavior("#default#clientCaps");
				this.cnx = (document.body.connectionType == 'modem') ? 'A':'B';
				document.body.addBehavior("#default#homePage");
				this.home = (document.body.isHomePage(location.href)) ? 'A':'B';
				this.url+="&CONN="+this.cnx+"&ISHOME="+this.home;
			}
		}
	}
	this.url += "&WRP_SECTION="+this.section+"&WRP_SUBSECTION="+this.subsection;

        if(this.site_grp != null && this.section_grp != null && this.subsection_grp != null)
        {
        	this.url+="&WRP_ID_GRP="+this.site_grp+"&WRP_SECTION_GRP="+this.section_grp+"&WRP_SUBSECTION_GRP="+this.subsection_grp;
	}

        if(this.content != null) this.url+="&WRP_CONTENT="+this.content;
        if(this.channel != null) this.url+="&WRP_CHANNEL="+this.channel;     

        this.url += "&ver=2&da2="+this.date+"&ta="+this.ta+"&co="+this.co+"&ref="+this.ref;
}

// Realise le comptage
function count ()
{
	this.generate_url();
        this.counter.src = this.url;
	return 1;
}

// Ajout de l'information de chaine thématique
function add_channel (chaine)
{
        if (chaine == null) return 0;
        this.channel = traite_chaine(chaine,_TAILLE_MAX_CHAINE_);
        return 1;
}

// Ajout de double comptage option groupe
function add_group (section,subsection)
{
	this.site_grp = WEBO_ID_GROUPE;
	this.section_grp = traite_chaine(section,_TAILLE_MAX_ALPHANUM_);
	this.subsection_grp = traite_chaine(subsection,_TAILLE_MAX_ALPHANUM_);
}

// Ajout de CONTENU
function add_content (chaine)
{
        if (chaine == null) return 0;
        this.nb_content++;
        if ( this.nb_content > _NB_MAX_CONTENU_ ) return 0;
        if ( this.nb_content > 1 ) this.content = this.content.concat('|');
        chaine = chaine.replace('|',' ');
        this.content = this.content.concat( traite_chaine(chaine,_TAILLE_MAX_CONTENU_));
        return 1;
}


/* ------------------ Profilling ------------------------ */

// Modification du mode pour le profiling ( avec cookie ou sans )
function profiling_cookie_mode (mode)
{
	if (mode == 'on')
	{
		this.profiling_cookie_mode = 1;
	}
	else
	{
		this.profiling_cookie_mode = 0;	
	}
}

// Ajout d'un profil pour le profiling 
function add_profile (numero,valeur)
{
        numero = parseInt(numero,10);
        if ((numero < 1) || (numero > 5)) return -2;
	if ( this.profiling_cookie_mode == 0 )
	{
		numero--;
		this.segmentation[numero] = valeur;
		return 1;
	}
        if(parseInt(navigator.appVersion,10)<=3) return -1;
        nb_mois = 12;
        var verif_val_I = /^\d+$/;
        if(verif_val_I.test(valeur)) valeur = encode_en_lettre(valeur);
        var verif_val_A = /^\w*$/; 
        if(verif_val_A.test(valeur)) {
                var mon_profil_wbo = GetCookie(this.cookie_segmentation);
                tab_segment = new Array('','','','','');
                if(mon_profil_wbo != null) {
                        tab_segment = mon_profil_wbo.split('|');
                        if(tab_segment.length != 5) tab_segment = ('','','','','');             
                        //On vérifie qu'une mise à jour est nécessaire.
                        if(tab_segment[numero - 1]==valeur) return 1;           
                }
                if(this.domaine_segmentation == '') {
                        this.domaine_segmentation = window.location.host;
                        tab_points = new Array();
                        tab_points = window.location.host.split('.');
                        if(tab_points.length>2) this.domaine_segmentation = this.domaine_segmentation.substring(this.domaine_segmentation.indexOf('.'),this.domaine_segmentation.length);
                        if(tab_points.length==2) this.domaine_segmentation = '.' + this.domaine_segmentation;
                }
                var ma_chaine_profil='';
                for(var i=1; i<=5; i++) {
                        if(i==numero) tab_segment[i-1]=valeur;
                        if((tab_segment[i-1]=='') || (tab_segment[i-1]==null)) tab_segment[i-1] = '';
                        ma_chaine_profil += tab_segment[i-1];
                        if(i<5) ma_chaine_profil += '|';
                }
                expd = new Date();
                expd.setTime(expd.getTime() + (nb_mois * 30 * 24 * 3600 * 1000));
                SetCookie (this.cookie_segmentation,ma_chaine_profil,expd,'/',this.domaine_segmentation);
                return 2;
        }
        else return -3;
}

// Ajout du profiling
function add_profiles (p1,p2,p3,p4,p5) {
	this.add_profile(1,p1);
	this.add_profile(2,p2);
	this.add_profile(3,p3);
	this.add_profile(4,p4);
	this.add_profile(5,p5);
}

// Destruction du cookie de profiling ou de la variable
function delete_profiles ()
{
	if ( this.profiling_cookie_mode == 0 )
	{
		this.segmentation = Array('','','','','');
	}
	else
	{
		expd = new Date();
		expd.setTime(expd.getTime() - (24 * 3600 * 1000));
		SetCookie (this.cookie_segmentation,'||||',expd,'/',this.domaine_segmentation);
	}
}

// Recuperation des informations de profiling ( on renvoie une chaine escapée )
function get_profiles () {
        this.profiles = GetCookie(this.cookie_segmentation);
        if( this.profiles == null) {                
                this.profiles = '';
                var verif_val_I = /^\d+$/;
                for(var i=1;i<=5;i++) {
                        if(verif_val_I.test(this.segmentation[i-1])) this.segmentation[i-1] = encode_en_lettre(this.segmentation[i-1]);
                        this.profiles += this.segmentation[i-1];
                        if(i<5) this.profiles += '|';
                }
        }
	this.profiles = escape(this.profiles);
}

/* ------------------ Generales --------------------------- */
function encode_en_lettre (num) {
        num = parseInt(num,10);
        if(num > 2500) return '';
        var num1 = parseInt(num/52,10);
        var num2 = num % 52;

        num1 += 65;
        if (num1>90) num1+=6;
        
        num2 += 65;
        if (num2>90) num2+=6;
        
        var mon_code52 = String.fromCharCode(num1) + String.fromCharCode(num2);
        return mon_code52;
}

// Nettoyage d'une chaine de caractères
function traite_chaine (s,taille_max) {
	var bag = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-.,;:_ %";
	var i;
	var returnString = "";
	if (s == null) return "";
	s = "" + s;
	s = s.substr(0,taille_max);
	for (i = 0; i < s.length; i++) {   
		var c = s.charAt(i);
		if (bag.indexOf(c) != -1) returnString += c;
	}
	returnString = escape(returnString);
	return returnString;
}

// Identification du type de navigateur
function wf_uaO(c) {
        var wf_ual=navigator.userAgent.toLowerCase();
        return(wf_ual.indexOf(c))
}

/* ------------------ Cookies --------------------------- */
function getCookieVal (offset) {
        var endstr = document.cookie.indexOf (";", offset);
        if (endstr == -1)
        endstr = document.cookie.length;
        return unescape(document.cookie.substring(offset, endstr));
}

function GetCookie (name) {
        var arg = name + "=";
        var alen = arg.length;
        var clen = document.cookie.length;
        var i = 0;
        while (i < clen) {
                var j = i + alen;
                if (document.cookie.substring(i, j) == arg)
                return getCookieVal (j);
                i = document.cookie.indexOf(" ", i) + 1;
                if (i == 0) break;
        }
        return null;
}

function SetCookie (name,value,expires,path,domain,secure)  {
        document.cookie = name + "=" + escape (value) +
        ((expires) ? "; expires=" + expires.toGMTString() : "") +
        ((path) ? "; path=" + path : "") +
        ((domain) ? "; domain=" + domain : "") +
        ((secure) ? "; secure" : "");
}

/* ------- Retro comptabilite ------- */

function wreport (section,subsection,site,frame,content,channel) {
	w_compteur = new wreport_counter(section,subsection,site,frame,channel);
	w_compteur.add_content(content);
	w_compteur.count();
}

function wreport_groupe (section,subsection,site,section_grp,subsection_grp,frame,content,channel) {
	w_compteur = new wreport_counter  (section,subsection,site,frame,channel,section_grp,subsection_grp);
	w_compteur.add_content(content);
	w_compteur.count();
}

function wreport_click (url,section,subsection,site,frame,content,channel) {
	w_compteur = new wreport_counter(section,subsection,site,frame,channel);
	w_compteur.add_content(content);
	w_compteur.count();
	w_compteur.counter.onload = function() {
		document.location=url;
	}
}

function wreport_click_groupe (url,section,subsection,site,section_grp,subsection_grp,frame,content,channel) {
	w_compteur = new wreport_counter(section,subsection,site,frame,channel,section_grp,subsection_grp);
	w_compteur.add_content(content);
	w_compteur.count();
	w_compteur.counter.onload = function() {
		document.location=url;
	}
}


wreport_ok = 1;

