/*
The overall canvas: provides a canvas works space to be able to place controls
outside of image, and also one of: container-inactive container-active
*/

.ia-canvas {
 position: relative;
 border: 0px solid #ddd;
 text-align: left !important; /* Protect from IE centering effect */
}

/*
The overall container: always has class="ia-container", and also one of:
container-inactive container-active
*/

.ia-container {
position: absolute
}

.ia-container img {
 border-width: 0;
}

.ia-view-image-link {
	display: block;
	margin-top: 10px;
	text-align: left;
}

#ia-modaldialog {
	position: absolute;
		top: 10px;
		right: 10px;
	height: 100px;
	width: 300px;
	overflow: auto;
}

#ia-modaldialog h2 {
	margin-left: 25px !important;
	color: black !important;
}

#ia-modaldialog p {
	padding: 0 0 0 25px !important;
}

.ia-modaldialog-bad  { background-color: #fbb; color: #f00;}
.ia-modaldialog-good { background-color: #bfb; color: #0f0;}
.ia-modaldialog-ok   { background-color: #ffb; color: #000;}

#ia-modaldialog-close {
	display: block;
	width: 25px;
	float: left;
	text-align: center;
	font-size: 10px;
	font-weight: bold;
	cursor: pointer;
	color: black;
}


/* Note areas - a separate class is applied to those being edited. */

.ia-area {
 position: absolute;
 background: url(../img/transparent.gif);
 border: 1px solid #222;
 cursor: crosshair;
 /* Need to define font size to protect from other CSS (*cough* ImageFrames)
  * reducing it to an unreadable size */
 font-size: 10px; 
}

.ia-area-new {
 border: 1px dotted #ff0;
}

.ia-container-active .ia-area {
 visibility: inherit;
}

.ia-container-inactive .ia-area {
 visibility: hidden;
}

.ia-area-editing {
 position: absolute;
 visibility: visible;
 background: url(../img/transparent.gif);
 border: 1px dashed #FFFFFF;
 cursor: crosshair;
}

.ia-area-highlight {
 position: absolute;
 visibility: visible;
 background: url(../img/translucent.gif);
 border: 1px dashed #FFFFFF;
 cursor: crosshair;
}


.ia-area-innerborder-left {
 position: absolute;
 top: 0xp;
 left: 0px;
 border-left:1px solid #fff;
 width: 0px;
 height: 100%;
}

.ia-area-innerborder-top {
 position: absolute;
 top: 0xp;
 left: 0px;
 border-top: 1px solid #fff;
 width: 100%;
 height: 1px;
}

.ia-area-innerborder-right {
 position: absolute;
 top: 0xp;
 right: 0px;
 border-right:1px solid #fff;
 width: 0px;
 height: 100%;
}

.ia-area-innerborder-bottom {
 position: absolute;
 top: 0xp;
 bottom: 0px;
 border-bottom: 1px solid #fff;
 width: 100%;
}


/* Notes themselves. */

.ia-note {
 position: absolute;
 left: 0%;
 top: 100%;
 width: 150px;
 visibility: hidden;
 padding: 4px;
 background-color: #FFEECC;
 border: 1px solid #000;
 -moz-border-radius: 7px; /* Non-standard */
}
.ia-note span {
 display: block;
 margin-top: 2px;
 text-align: left;
 line-height: 1em;
}
.ia-note-title {
 margin-bottom: 1px;
 font-size: 110%;
 font-weight: bold;
 color: #666633;
}
.ia-note-content {
 color: #000000;
}
.ia-note-author {
 font-size: 80%;
 font-style: italic;
 text-align: right !important;
 color: #333300;
}


/* Note drag/resize UI */

.dragresize {
 position: absolute;
 width: 5px;
 height: 5px;
 font-size: 1px;
 background: white;
 border: 1px solid black;
}

.dragresize-tl {
 top: -8px;
 left: -8px;
 cursor: nw-resize;
}
.dragresize-tm {
 top: -8px;
 left: 50%;
 margin-left: -4px;
 cursor: n-resize;
}
.dragresize-tr {
 top: -8px;
 right: -8px;
 cursor: ne-resize;
}

.dragresize-ml {
 top: 50%;
 margin-top: -4px;
 left: -8px;
 cursor: w-resize;
}
.dragresize-mr {
 top: 50%;
 margin-top: -4px;
 right: -8px;
 cursor: e-resize;
}

.dragresize-bl {
 bottom: -8px;
 left: -8px;
 cursor: sw-resize;
 z-index: 200;
}
.dragresize-bm {
 bottom: -8px;
 left: 50%;
 margin-left: -4px;
 cursor: s-resize;
 z-index: 200;
}
.dragresize-br {
 bottom: -8px;
 right: -8px;
 cursor: se-resize;
 z-index: 200;
}

/* Editing UI */

.ia-editbar {
 position: absolute;
 z-index: 100;
 width: 300px;
 background-color: #ddd;
 padding-bottom: 5px;
 font-size: 12px;
 border: 1px solid black;
}

.ia-editbar-inactive {
 visibility: hidden;
}

.ia-editbar-active {
 visibility: inherit;
 padding-bottom: 30px;
}

.ia-editbar select {
  margin: 2px 15px;
}

.ia-editbar input, .ia-editbar textarea {
 font-weight: normal;
 width: 85%;
 margin: 5px 10px;
 padding: 5px;
 font-family: arial, helvetica, sans-serif;
 font-size: 10pt;
 font-weight: bold;
}

.ia-editbar span {
 position: absolute;
 visibility: visible;
 top: 2px;
 height: 11px;
 font-size: 1px;
 line-height: 1px;
 cursor: pointer;
}

.ia-editbar-active span {
 visibility: inherit;
}

span.ia-editbar-ok {
 right: 70px;
 width: 28px;
 height: 18px;
 background-image: url(../img/ok.gif);
 border: 1px solid #bbb;
 visibility: inherit;
 padding: 0px;
}

span.ia-editbar-cancel {
 right: 6px;
 width: 55px;
 height: 18px;
 background-image: url(../img/cancel.gif);
 border: 1px solid #bbb; 
 visibility: inherit;
}

/* Admin page CSS */
.ia-activerow {
	color: green;
	font-weight: bold;
}

