/*
 * File:        alert.css
 * CVS:         $Id$
 * Description: Alert styling
 * Author:      Allan Jardine
 * Created:     26-8-07
 * Modified:    $Date$ by $Author$
 * Language:    CSS
 * Project:     Alert
 * 
 * Copyright 2007 Allan Jardine. All rights reserved.


 DOM layout that this style sheet applies to:

 +--div #alert_background--------------------------------------------------+
 |                                                                         |
 |                                                                         |
 |     +--div #alert_wrapper---------------------------------------+       |
 |     |                                                           |       |
 |     | +--div #alert_header------------------------------------+ |       |
 |     | |                        Header                         | |       |
 |     | +-------------------------------------------------------+ |       |
 |     |                                                           |       |
 |     | +--div #alert_content-----------------------------------+ |       |
 |     | |                                                       | |       |
 |     | |                        Content                        | |       |
 |     | |                                                       | |       |
 |     | +-------------------------------------------------------+ |       |
 |     |                                                           |       |
 |     | +--div #alert_buttons-----------------------------------+ |       |
 |     | |                        Buttons                        | |       |
 |     | +-------------------------------------------------------+ |       |
 |     |                                                           |       |
 |     +-----------------------------------------------------------+       |
 |                                                                         |
 |                                                                         |
 +-------------------------------------------------------------------------+

*/

/*
 * Generic styles for the demo html page
 */
body, html {
	margin: 0;
	padding: 0;
	font: 12px/1.5em "Lucida Grande", "Lucida Sans Unicode", verdana, geneva, sans-serif;
	height: 100%;
	width: 100%;
}


#fw_wrapper {
	padding: 2em;
}


/*
 * Alert styles
 */
#alert_background {
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	
	z-index: 1;
	background-color: black;
	
	_position: absolute;
	_top:expression( document.body.scrollTop+'px' );
}

#alert_background iframe {
	display		:	none;				/*	sorry for IE5	*/
	display		:	block;			/*	sorry for IE5	*/
	position	:	absolute;		/*	must have	*/
	top				:	0;					/*	must have	*/
	left			:	0;					/*	must have	*/
	z-index		:	-1;					/*	must have	*/
	width			: 100%;				/*	must have for any big value	*/
	height		: 100%;				/*	must have for any big value	*/
}


#alert_wrapper {
	position			: fixed;
	top						: 50%;
	left					: 50%;
	height        : 200px;
	width					: 400px;
	margin-top		: -100px;
	margin-left		: -200px;
	padding				: 25px;
	padding-top		: 30px;

  background-color:#ffffff;
  border:3px solid #cc0000;
  
	z-index: 2000;

  /* background-color: #DBDADF; */

	border: 0px solid #3E3E3E;
	color: #3E3E3E;
	
	_position: absolute;
	_top:expression( (documentElement.scrollTop + ((document.body.clientHeight-this.clientHeight)/2))+'px');
}


#alert_header {
	height: 24px;
	padding-top: 6px;
	font-size: 18px;
	font-weight: bold;
	background-color: #c0d0ff;
	border: 1px solid #8F908F;
	text-align: center;
}


#alert_content {
  height: 130px;
	padding-top: 10px;
}

#alert_buttons {
	height: 45px;
}

#alert_buttons table {
}

#alert_buttons td {
	margin: 0;
	padding: 0px;
	background: url(../images/button.jpg) no-repeat top left;
	text-align: center;
}

#alert_buttons td.empty {
	background: none;
}

#alert_buttons a {
	background: url(../images/button.jpg) no-repeat top right;
	color: black;
	cursor: pointer;
	display: block;
	font-size: 12px;
	height: 28px;   

	margin: 0;
	margin-left: 10px;

  padding-right: 10px;
	padding-top: 7px;

	text-align: center;
	text-decoration: none;
}

/*  The left side of a selected button  */
#alert_buttons td.selected {
    background: url(../images/button_selected.jpg) no-repeat top left;
    font-weight:bold;
}

/*  The right  side of a selected button  */
#alert_buttons a.selected {
    background: url(../images/button_selected.jpg) no-repeat top right;
}

/*
 * 'Different' styles for the 'different' classed alert box
 * Strip these out when you do your own styling
 */
#alert_background.different {
	position: fixed;
	height: 100%;
	width: 100%;
	
	z-index: 1;
	background-color: black;
	opacity: 0.4;
	
	_position: absolute;
	_top:expression( document.body.scrollTop+'px' );
}

#alert_wrapper.different {
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	margin: 0;
	padding: 0;
	
	z-index: 2;
	color: #3E3E3E;
	background: url(../images/alt_bg.png) no-repeat bottom left;
	
	_position: absolute;
	_top:expression( (documentElement.scrollTop + ((document.body.clientHeight-this.clientHeight)/2))+'px');
}

#alert_wrapper.different #alert_header {
	display: none;
}

#alert_wrapper.different #alert_content {
	position: absolute;
	top: 50%;
	left: 50%;
	height: 90px;
	margin-top: -45px;
	margin-left: -200px;
	padding: 12px;
	
	background-color: #f3f3f3;
	border: 3px solid #3f3f3f;
}

#alert_wrapper.different #alert_buttons {
	position: absolute;
	top: 50%;
	left: 50%;
	height: 30px;
	width: 400px;
	margin-top: 15px;
	margin-left: -200px;
}

#alert_wrapper.different #alert_buttons td {
	margin: 0;
	padding: 0;
	background: url(../images/button.jpg) no-repeat top left;
	text-align: center;
}

#alert_wrapper.different #alert_buttons td.empty {
	background: none;
}

#alert_wrapper.different #alert_buttons a {
	display: block;
	height: 28px;
	margin: 0;
	padding-top: 7px;
	margin-left: 10px;
	padding-right: 10px;
	
	background: url(../images/button.jpg) no-repeat top right;
	text-align: center;
	font-size: 12px;
	color: black;
	text-decoration: none;
	*cursor: hand;
	cursor: pointer;
}

#alert_wrapper.different #alert_buttons td.selected {
	background: url(../images/button_selected.jpg) no-repeat top left;
}

#alert_wrapper.different #alert_buttons a.selected {
	background: url(../images/button_selected.jpg) no-repeat top right;
}







