/* 
	root element for the scrollable. 
	when scrolling occurs this element stays still. 
*/
div.scrollable {
	/* required settings */
	position:relative;
	overflow:hidden;
	width: 364px;
	/* custom decorations */
	padding:5px 0;
	background-color:#E9E9EA;
	margin-bottom: 50px;
}

/* 
	root element for scrollable items. Must be absolutely positioned
	and it should have a super large width to accomodate scrollable items.
	it's enough that you set width and height for the root element and
	not for this element.
*/
div.scrollable div.items {	
	/* this cannot be too large */
	width:20000em;	
	position:relative;
	clear:both;		
	
	/* decoration */
	margin-left:7px;
}

/* single scrollable item */
div.scrollable div.items div {
	float:left;
	/* custom decoration */
	text-align:center;
	width:102px;
	padding:5px 5px;
	font-family: 'bitstream vera sans';
	background-color: #333;
	margin-right: 8px;
	-moz-border-radius:5px;
}

/* active item */
div.scrollable div.items div.active {
			
	background-color:#fff;
}


/* this makes it possible to add next button beside scrollable */
div.scrollable {
	float:left;	
}

/* prev, next, prevPage and nextPage buttons */
a.prev, a.next, a.prevPage, a.nextPage {
	display:block;
	width:18px;
	height:18px;
	outline:none;
	background:url(/images/_materiale_gallery/left.png) no-repeat;
	float:left;
	margin:36px 0px;
	cursor:pointer;
	font-size:1px;
}

/* mouseover state */
a.prev:hover, a.next:hover, a.prevPage:hover, a.nextPage:hover {
	background-position:0px -18px;
	outline:none;		
}

/* disabled navigational button */
a.disabled {
	visibility:hidden !important;
	outline:none;		
}

/* next button uses another background image */
a.next, a.nextPage {
	background-image:url(/images/_materiale_gallery/right.png);
	clear:right;
	outline:none;	
}



/*********** navigator ***********/


/* position and dimensions of the navigator */
div.navi {
	margin-left:138px;
	margin-top: 50px;
	width:185px;
	height:20px;
	
}


/* items inside navigator */
div.navi > a {
	width:8px;
	height:8px;
	float:left;
	margin:3px;
	background:url(/images/_materiale_gallery/navigator.png) 0 0 no-repeat;
	display:block;
	font-size:1px;
	outline:none;
}

/* mouseover state */
div.navi > a:hover {
	background-position:0 -8px;
	outline:none;      
}

/* active state (current page state) */
div.navi > a.active {
	background-position:0 -16px;     
}

div.overlay { 
     
    /* growing background image */ 
    background-image:url(/gallery/images/_materiale_gallery/white.png); 
     
    /* dimensions after the growing animation finishes  */ 
    width:463px; 
    height:510px;        
     
    /* initially overlay is hidden */ 
    display:none; 
     
    /* some padding to layout nested elements nicely  */ 
    padding:55px; 
} 
 
/* default close button positioned on upper right corner */ 
div.overlay div.close { 
    background-image:url(/gallery/images/_materiale_gallery/close.png); 
    position:absolute; 
    right:5px; 
    top:5px; 
    cursor:pointer; 
    height:35px; 
    width:35px; 
} 
 
 
/* black */ 
div.overlay.black { 
    background:url(/gallery/images/_materiale_gallery/transparent.png) no-repeat !important; 
    color:#fff; 
} 
 
/* petrol */ 
div.overlay.petrol { 
    background:url(/gallery/images/_materiale_gallery/petrol.png) no-repeat !important; 
    color:#fff; 
} 
 
div.black h2, div.petrol h2 { 
    color:#ddd;         
}

.messagebox{
 position:absolute;
 width:100px;
 margin-left:30px;
 border:1px solid #c93;
 background:#ffc;
 padding:3px;
}
.messageboxok{
 position:absolute;
 width:auto;
 margin-left:30px;
 border:1px solid #349534;
 background:#C9FFCA;
 padding:3px;
 font-weight:bold;
 color:#008000;
}
.messageboxerror{
 position:absolute;
 width:auto;
 margin-left:30px;
 border:1px solid #CC0000;
 background:#F7CBCA;
 padding:3px;
 font-weight:bold;
 color:#CC0000;
}

