html.nloading{background:#000;}
html.loading *{visibility:hidden;}
html.mg a{outline:none;}
html.mg,body.mg,.imgchange,.imgchange table,.imgchange td{width:100%; margin:0;padding:0px;}
/*html.ie6{overflow:hidden;}*/
.imgchange div{position:fixed;width:200%;height:200%;top:0;left:-50%;z-index:-1}
html.ie6 .imgchange div{position:absolute;}
.imgchange td{vertical-align:middle;text-align:center}
.imgchange img{margin:0 auto}
.imgchange img.zoom{min-height:50%;min-width:50%;}
.imgchange img.centered{min-height:auto;min-width:auto;}
/* BOX */
.jbox{position:relative;}
.jbox div.mg-wrap{position:absolute;}
.jbox div.mg-wrap.centered,.jbox div.mg-wrap.original{position:static;}


/*LOADING*/
div.mg-loading{position:absolute;width:100%;height:100%;z-index:1000;display:none;}
span.mg-loading{margin:auto;background:transparent url("../images/ajax-loader.gif") no-repeat scroll 50% 50%;height:100%;width:100%;border:4px;display:block;}

/*OPTIONAL CONTENT AND MENU -> customize this */
#mg-content{top:0px;left:0px;position:absolute;font-size:11px;z-index:1000;width:100%;height:100%;overflow:auto}

/* VIEWER */
#mbg-viewer{position:relative;overflow:hidden;/*width:1020px;calcolata da jquery?*/}
/* INNER */
#mbg-inner{position:relative;left:0;top:0;width:20000px;}
/* INNER : todo padding e margin. thumb dimensions*/
#mbg a{color:#333;}
#mbg img{border:0;}
#mbg ul, #mbg li {margin:0;padding:0;}
#mbg li {display: block;list-style: none;float: left;height: 51px;width: 60px;}
#mbg li a{	display:block;padding:3px;margin: 5px 5px 5px 2px;}
/* new - 21/06/2010*/
#mbg li a div{position:relative;height:51px;width:51px;overflow:hidden;border:2px solid #999999;}
#mbg li a div.focus{border-color:#fff;}/* new - 15/12/2010*/
#mbg li img{height:auto;width:auto;border:0;/*height:51px;width: 51px;border:2px solid #999;*/}
#mbg img #mbg-thumb-landscape{height:51px;position:absolute;}
#mbg img #mbg-thumb-portrait{width:51px;position:absolute;}
/*#mbg li img.focus{border-color:#fff;}*/

#mbg-h{position:absolute;background:url('../images/sprite.png') no-repeat;}
#mbg-h, #mbg-h:hover, #mbg-h:active{text-align:left;text-indent:-9999px;letter-spacing:-9999px;}/*Simone Parato*/
#mbg-h-pause,#mbg-h-play{width:55px;height:28px;left:18px;top:20px;}
#mbg-h-left,#mbg-h-right{width:16px;height:49px;top:10px;}
#mbg-h-left{background-position: 0 0;left:90px;}
#mbg-h-right{background-position: -16px 0;left:6px;}
#mbg-h-play{background-position: 0 -49px;}
#mbg-h-pause{background-position: 0 -76px;}

/*TOP*/
#mbg-top{width:100%;height:32px;position:absolute;top:0px;z-index:1000;background:url('../images/opacity.png') repeat;}
#mbg-top a, #mbg-top span{color:#fff;font-size:13px;text-decoration:none;}
#mbg-top-right{position:absolute;right:10px;padding-top:5px;}
#mbg-top-center{margin:0 auto;width:126px;position:relative}
#mbg-h-prev,#mbg-h-next{position:absolute;width:62px;height:16px;top:7px}
#mbg-h-prev{background-position: 0 -121px;left:0px;}
#mbg-h-next{background-position: 0 -105px;right:0px;}
/*CAPTION*/
#mg-caption-opacity{position:fixed;}
#mg-caption{position:fixed;visibility: hidden;z-index:1000;right:10px;bottom:50px;width:auto;padding:0px 10px;margin: 0px;background:url('../images/opacity.png') repeat; }/*border:1px solid green;*/
#mg-caption{color:#fff;font-size:170%;}
#mg-caption h3{font-size:170%;width:100%;/*border-bottom:4px solid green;*/}
#mg-caption h3 a{color:#fff; text-transform:capitalize;text-decoration:none;}
 
/**********************************************  MENUSIMPLE ********************************************** */
ul#mg-menu, #mg-menu-opacity{z-index:1000;padding:0px;margin:0px;position:fixed;bottom:0px;right:0px;width:auto;}
ul#mg-menu{font-size:11px; padding:1px 20px;}
ul#mg-menu li{list-style:none;display:block;float:left;padding:3px 10px; margin: 2px;background:url('../images/opacity.png') repeat;-webkit-border-radius:15px;-moz-border-radius:15px;border-radius:15px;
	box-shadow:2px 2px 4px rgba(0,0,0,0.2);
	-moz-box-shadow:2px 2px 4px rgba(0,0,0,0.2);
	-webkit-box-shadow:2px 2px 4px rgba(0,0,0,0.2)}
ul#mg-menu li a{border:0;text-decoration:none;color:#fff;}/*-moz-outline:none;*/	

ul#mg-menu li a.visited{color:#fff;}
ul#mg-menu li a:focus{color:#fff;}
ul#mg-menu li a.selected{border-bottom:4px solid green;}

/*controls*/
#mg-play{}
#mg-stop{}
#mg-next{}
#mg-prev{}
#mg-info{}	