<?php
switch($color) {	
	/*                              bdr blc idt      bg blc idt      bg blc2 idt     bordered        h3             h4               h5              underlined      policegrise     h2 .top identity                            */
	case 'white' : 	$colors = array('#d6d6d6', 		'#ffffff', 		'#ffffff', 		'#d2d2d2', 		'#737373', 		'#acacac', 		'#acacac', 		'#ebebeb', 		'#737373', 		'#737373'); break;
}?>

/* ------- CV ---------- */ 

#cv { background:white url(<?php echo $themecolor?>layout.png) no-repeat center top; }
#cv #cv_bloc { 
	width:975px;
	min-height:735px;
	background:transparent url(<?php echo $themecolor?>banner.png) no-repeat center top; 
}
* html #cv #cv_bloc {height:735px;}

/* ------- Banner ---------- */ 

#banner { background-image:url(<?php echo $banner?>); }
#banner { height:85px; }

/* ------- Menu ---------- */ 

#menu { padding:0px 0px 25px 20px; }

#menu a { padding:0px 0px 0px 15px; height:34px; }
#menu span { font:normal normal bold 11px Arial; color:#A39A9F; padding:8px 15px 0px 0px; height:26px;}
#menu a,
#menu span { background-image:url(<?php echo $themecolor?>menu/menu.png); background-repeat:no-repeat; }

#menu a:hover { background-position:left -34px; }
#menu a:hover span { background-position:right -34px; }

#menu li.on a { background-position:left -68px; }
#menu li.on a span { background-position:right -68px; }

#menu li.first a,
#menu li.first span{background-image:url(<?php echo $themecolor?>menu/menu-first.png); }

#menu li.last a,
#menu li.last span{background-image:url(<?php echo $themecolor?>menu/menu-last.png); }

/* ------- Content ---------- */

#content { padding:0px 0px 10px 14px; }

/* ------- Identity ---------- */

#identity { margin-top:0px; }
#identity .top { 
	padding:6px 17px 3px 13px;
	background:url(/images/css/<?php echo $themecolor?>identity/top.png) repeat-x; 
	width:168px;
}
#identity .top span,
#identity .top a {
	color:<?php echo $colors[9]?>;
	font:normal normal bold 16px Arial;
}
#identity .middle { 
	background:none;
	width:198px;	
} 
#identity .bloc { 
	border:1px solid <?php echo $colors[0]?>; 
	margin-bottom:4px;
	background:<?php echo $colors[1]?>;
}
#identity_card.bloc,
#identity_manage .bloc{border-top:0px;}
#identity .bloc2 { background:<?php echo $colors[2]?>; }

#identity h3{ color:#515253; }

#identity_uploadcv a.pdf,
#identity_uploadcv a.word { right:24px; top:90px; }

#identity_netlinks img { border-color:<?php echo $colors[0]?>; }

/* ------- Components ---------- */

#components { padding-left:20px; } 
#components .middle { background:transparent; width:731px; }
#components #col-resize,
#components #col-sep { width:20px; }
#components #col-1 { width:59.1%; }
#components #col-2 { width:38%; }

/* ------- Portlet ---------- */

.portlet { margin-bottom:15px; }
.portlet h2 { 
	height:21px;
	background:url(<?php echo $themecolor?>portlet/top-spacing.png) no-repeat left bottom;
	margin:0px 3px -5px 3px;
	padding-bottom:10px;
}
.level2 .portlet h2 { 
	background:none;
}
.portlet h2 a { 
	font:normal normal bold 17px Arial; color:<?php echo $colors[8]?>;
	padding:0px 60px 0px 0px;
	line-height:18px; 
	height:18px;	 
}
.portlet .icon { 
	top:-10px; left:10px;
	width:30px; height:29px;
	background:none; 
}
.portlet .more { 
	height:18px;	
	padding:0px 0px 0px 35px;
	background:url(<?php echo $themecolor?>portlet/more.png) no-repeat left top; 
}
.portlet .more a { 
	height:18px;
	background:url(<?php echo $themecolor?>portlet/more.png) no-repeat right top; 
}
* html .portlet .more a {background:url(<?php echo $themecolor?>portlet/moreie6.png) no-repeat right top;}
* html .portlet .more {background:url(<?php echo $themecolor?>portlet/moreie6.png) no-repeat left top;}

* +html .portlet .more a {background:url(<?php echo $themecolor?>portlet/moreie6.png) no-repeat right top;}
* +html .portlet .more {background:url(<?php echo $themecolor?>portlet/moreie6.png) no-repeat left top;}

.portlet .more.last { background:url(<?php echo $themecolor?>portlet/more-last.png) no-repeat left top; height:23px;}
.portlet .more.last a {	background:url(<?php echo $themecolor?>portlet/more-last.png) no-repeat right top; height:23px; }

* html .portlet .more.last { background:url(<?php echo $themecolor?>portlet/more-lastie6.png) no-repeat left top; height:23px;}
* html .portlet .more.last a {	background:url(<?php echo $themecolor?>portlet/more-lastie6.png) no-repeat right top; height:23px; }

* +html .portlet .more.last { background:url(<?php echo $themecolor?>portlet/more-lastie6.png) no-repeat left top; height:23px;}
* +html .portlet .more.last a {	background:url(<?php echo $themecolor?>portlet/more-lastie6.png) no-repeat right top; height:23px; }



.portlet .bordered { border-color:<?php echo $colors[3]?>; }

/* ------- Widget ---------- */

.widget h3 a,
.widget h3 a:hover { color:<?php echo $colors[4]?>; }
.widget h4 a,
.widget h4 a:hover { color:<?php echo $colors[5]?>; }
.widget.hobby h4 a,
.widget.hobby h4 a:hover,
.widget.skill h4 a,
.widget.skill h4 a:hover,
.widget.training h4 a,
.widget.training h4 a:hover { color:<?php echo $colors[4]?>; }
.widget h5 a,
.widget h5 a:hover { color:<?php echo $colors[6]?>; }
.widget li { color:#000000; background:url(<?php echo $themecolor?>bullet/bullet1.png) no-repeat left 2px; }
.widget li a,
.widget li a:hover{ color:#50A3D9; }
.widget .colored,
.widget .colored a,
.widget .colored a:hover{ color:<?php echo $colors[4]?>; }
.widget .underlined { background:<?php echo $colors[7]?>; }

.widget .widget-left {top:-5px; background:url(<?php echo $themecolor?>portlet/widget-left.png) repeat-y; width:3px;}
.widget .widget-right {top:-5px; background:url(<?php echo $themecolor?>portlet/widget-right.png) repeat-y; width:3px;}
.widget.hobby .widget-left,
.widget.hobby .widget-right,
.widget.skill .widget-left,
.widget.skill .widget-right {padding-bottom:5px;}

.widget.job ul {padding-left:20px;}
.widget h5 {margin:0;padding:0 0 0 30px;}

/* ------- Widget level 2 ---------- */

.level2 .widget .widget-top { 
	padding-top:10px; /*  defini la height (supterfuge)  */
	background:url(<?php echo $themecolor?>portlet/widget_top.png) no-repeat left bottom; 
	z-index:2;
	position:relative;
}
* +html .level2 .widget .widget-top {background:url(<?php echo $themecolor?>portlet/widget_topie6.png) no-repeat left bottom; }
* html .level2 .widget .widget-top {background:url(<?php echo $themecolor?>portlet/widget_topie6.png) no-repeat left bottom; }
.level2 .widget .widget-bottom { 
	height:30px;
	background:url(<?php echo $themecolor?>portlet/widget_bottom.png) no-repeat left top; 
	z-index:2;
	position:relative;
}
* +html .level2 .widget .widget-bottom {background:url(<?php echo $themecolor?>portlet/widget_bottomie6.png) no-repeat left top;}
* html .level2 .widget .widget-bottom {background:url(<?php echo $themecolor?>portlet/widget_bottomie6.png) no-repeat left top;}
.level2 .widget .widget-right,
.level2 .widget .widget-left {
 	top:0px;
 }

/* ------- Contact ---------- */

#contacts .widget-top { background:url(<?php echo $default?>portlet/widget_top.png) no-repeat left bottom; }
#contacts .widget-top span { background:url(<?php echo $default?>portlet/widget_top.png) no-repeat right bottom; }
#contacts .widget-bottom {	background:url(<?php echo $default?>portlet/widget_bottom.png) no-repeat left top; }
#contacts .widget-bottom span { background:url(<?php echo $default?>portlet/widget_bottom.png) no-repeat right top; }

* html #contacts .widget-top { background:url(<?php echo $default?>portlet/widget_topie6.png) no-repeat left bottom; }
* html #contacts .widget-top span { background:url(<?php echo $default?>portlet/widget_topie6.png) no-repeat right bottom; }
* html #contacts .widget-bottom { background:url(<?php echo $default?>portlet/widget_bottomie6.png) no-repeat left top; }
* html #contacts .widget-bottom span { background:url(<?php echo $default?>portlet/widget_bottomie6.png) no-repeat right top; }


#contacts .contact_2 { width:285px; }
#contacts .widget-top {margin:6px 10px 0 0;padding-top:12px;}
* +html #contacts .widget-top {margin:6px 10px 0 0;padding-top:18px;}
#contacts .widget-right,
#contacts .widget-left {
	height:95%;
	top:18px;
}


/* ------- Password ---------- */

#password .portlet { width:731px; }
#password .icon { background-position:0px 0px; }
#password .bottom {background:white; border-bottom:1px solid#d2d2d2; height:1px; }
#password .portlet h2 {background-repeat:repeat-x;}
#password .widget-left,
#password .widget-right{background:none;}
/* ------- Footer ---------- */

#footer { 
	height:68px;
	width:100%; margin:auto;
	background:url(<?php echo $themecolor?>footer.png) no-repeat center bottom; 
}
#footer img { margin:-1px 0px 0px 0px; }











/* EDITION */

<?php if( isset($ed) && $ed == 1) { ?>

 /* ------- Identity ---------- */

#identity .bloc .options,
#identity .bloc .options span { background-image:url(<?php echo $themecolor?>identity/options.png); }
#identity .bloc2 .options,
#identity .bloc2 .options span { background-image:url(<?php echo $themecolor?>identity/options2.png); }

#identity_manage a.opener {
	left:5px; top:147px;
	background-image:url(<?php echo $themecolor?>identity/config.png);
	padding:0px 0px 11px 187px;
	background-position:183px 5px;
}

#identity_manage a.opener.opened { background-position:183px -22px; }
#identity_manage a.opener.opened:hover { background-position:183px -76px; }
#identity_manage a.opener:hover{ background-position:183px -49px;}

#identity_uploadcv .opener,
#identity_uploadcv .content { top:77px; right:20px; }
#identity_uploadcv .opener { 
	width:75px; height:48px; 
	background:url(<?php echo $themecolor?>identity/export-opener.png) no-repeat 3px top; 
}
#identity_uploadcv .content { 	
	width:181px; 
	margin-top:38px; padding:10px 10px 0px 10px;
	background:url(<?php echo $themecolor?>identity/export-bg.png) no-repeat right top; 
}
#identity_uploadcv .sep { border-color:<?php echo $colors[3]?>; }
#identity_uploadcv .bottom { 
	margin:-17px -10px -6px -10px; padding:9px;
	background:url(<?php echo $themecolor?>identity/export-bg.png) no-repeat right bottom; 
}
* html #identity_uploadcv .bottom { 
	margin:-25px -10px 0px -10px;
}

#identity .hr { border-color:<?php echo $colors[0]?>; }

#identity_manage li a:hover{
	background-color:<?php echo $colors[2]?>;
	border-top:1px solid <?php echo $colors[0]?>;
	border-bottom:1px solid <?php echo $colors[0]?>;
}

/* ------- Widget ---------- */

.portlet .options,
.portlet .options span { background-image:url(<?php echo $default?>portlet/options.png); }
.portlet .home_check { background:#F5F0F3 url(<?php echo $base?>icon/home.png) no-repeat 10px 15px; }
.portlet a.add {
	font:normal normal normal 10px Arial; color:<?php echo $colors[8]?>;
	top:8px; right:8px;
	padding:3px 14px 5px 0px;
	background:url(<?php echo $themecolor?>portlet/add.png) no-repeat right 5px;
}

/* ------- Contact ---------- */

#contacts .options { left:595px; top:-18px; }
#contacts .options3 a{ color:#acacac; }

#contacts .contact_1,
#contacts .contact_2 {height:auto;}

#contacts .widget .widget-bottom {
	height:10px;
}

<?php } ?>
