/* 
 * Description:		Custom Borderd Box
 * Reference:		http://www.456bereastreet.com/archive/200506/customising_custom_corners_and_borders/
 */

/* Default styling. Used when JavaScript is unsupported */

.cbb {
	padding:0 5px;
	margin:5px 0;
	background:#eee;
	border:1px solid #666;
	line-height:1em;
	font-size:12px;
	visibility:hidden;
	}
	
/* Insert the custom corners and borders for browsers with sufficient JavaScript support */

.cb {
	margin:0;
	}
	
/* Rules for the top corners and border */
.bt {
	background:url(/skins/default/panel-box.gif) no-repeat 100% 0;
	margin:0 0 0 12px;
	height:6px;
	}
.bt div {
	height:6px;
	width:12px;
	position:relative;
	left:-12px;
	background:url(/skins/default/panel-box.gif) no-repeat 0 0;
	}

/* Rules for the bottom corners and border */
.bb {
	background:url(/skins/default/panel-box.gif) no-repeat 100% 100%;
	margin:0 0 0 12px;
	height:6px;
	}
.bb div {
	height:6px;
	width:12px;
	position:relative;
	left:-12px;
	background:url(/skins/default/panel-box.gif) no-repeat 0 100%;
	}

/* Insert the left border */
.i1 {
	padding:0 0 0 4px;
	background:url(/skins/default/panel-borders.gif) repeat-y 0 0;
	}
/* Insert the right border */
.i2 {
	padding:0 4px 0 0;
	background:url(/skins/default/panel-borders.gif) repeat-y 100% 0;
	}
/* Wrapper for the content. Use it to set the background colour and insert some padding between the borders and the content. */
.i3 {
	background:#F9F9F9;
	padding:0 0;
	}
/* CSS for the box ends here */





/* 	You can use different borders for different boxes on the same page. Just adjust the CSS. 
	The following is an example that uses the GIF images instead of the PNG images. 
	Note that you can also adjust borders, heights and paddings this way. 
	Remember to adjust the IE CSS as well. */

.headline div {
	height:30px;
}
.headline h2 {
	float:left;
	display:inline;
	width:170px;
	padding:3px 0 0 0;
	height:25px;
	overflow:hidden;
}
.headline .i1,
.headline .i2 {
	background-image:url(/skins/default/panel-borders-inner.gif);
	}
.headline .bt,
.headline .bt div,
.headline .bb,
.headline .bb div {
	background-image:url(/skins/default/panel-box-inner.gif);
	}
.headline .i3 {
	background-color:#4BB6FD;
	height:inherit !important;
}

.headline .bt {
	margin:0 0 0 8px;
	height:8px;
}
.headline .bt div {
	height:8px;
	width:8px;
	position:relative;
	left:-8px;
}
/* Insert the left border */
.headline .i1 {
	padding:0 0 0 14px;
	}
/* Insert the right border */
.headline .i2 {
	}
	
.headline .bb {
	margin:0 0 0 8px;
	height:8px;
	}
.headline .bb div {
	height:8px;
	width:8px;
	position:relative;
	left:-8px;
	}
	
.home-panel {
	width:289px;
	height:192px;
}
.home-panel .i3 {
	height:192px;
}

/* 
 * subject-specific options
 */

/* ******************************* 
 * SUBJECT SPECIFIC: SCIENCE
 * *******************************
 */
#content div.science .headline .i1,
#content div.science .headline .i2 {
	background-image:url(/skins/default/panel_inner_border_science.gif);
	}
#content div.science .headline .bt,
#content div.science .headline .bt div,
#content div.science .headline .bb,
#content div.science .headline .bb div {
	background-image:url(/skins/default/panel-box-inner_science.gif);
	}
#content div.science .headline .i3 {
	background-color:#5bc658;
}

/* ******************************* 
 * SUBJECT SPECIFIC: MATH
 * *******************************
 */
#content div.math .headline .i1,
#content div.math .headline .i2 {
	background-image:url(/skins/default/panel_inner_border_math.gif);
	}
#content div.math .headline .bt,
#content div.math .headline .bt div,
#content div.math .headline .bb,
#content div.math .headline .bb div {
	background-image:url(/skins/default/panel-box-inner_math.gif);
	}
#content div.math .headline .i3 {
	background-color:#d85a50;
}

/* ******************************* 
 * SUBJECT SPECIFIC: SOCIAL
 * *******************************
 */
#content div.social .headline .i1,
#content div.social .headline .i2 {
	background-image:url(/skins/default/panel_inner_border_social.gif);
	}
#content div.social .headline .bt,
#content div.social .headline .bt div,
#content div.social .headline .bb,
#content div.social .headline .bb div {
	background-image:url(/skins/default/panel-box-inner_social.gif);
	}
#content div.social .headline .i3 {
	background-color:#d5d143;
}

/* ******************************* 
 * SUBJECT SPECIFIC: ENGLISH
 * *******************************
 */
#content div.english .headline .i1,
#content div.english .headline .i2 {
	background-image:url(/skins/default/panel_inner_border_english.gif);
	}
#content div.english .headline .bt,
#content div.english .headline .bt div,
#content div.english .headline .bb,
#content div.english .headline .bb div {
	background-image:url(/skins/default/panel-box-inner_english.gif);
	}
#content div.english .headline .i3 {
	background-color:#cc8936;
}

/* ******************************* 
 * SUBJECT SPECIFIC: HEALTH
 * *******************************
 */
#content div.health .headline .i1,
#content div.health .headline .i2 {
	background-image:url(/skins/default/panel_inner_border_health.gif);
	}
#content div.health .headline .bt,
#content div.health .headline .bt div,
#content div.health .headline .bb,
#content div.health .headline .bb div {
	background-image:url(/skins/default/panel-box-inner_health.gif);
	}
#content div.health .headline .i3 {
	background-color:#5ad7d1;
}

/* ******************************* 
 * SUBJECT SPECIFIC: ART
 * *******************************
 */
#content div.art .headline .i1,
#content div.art .headline .i2 {
	background-image:url(/skins/default/panel_inner_border_art.gif);
	}
#content div.art .headline .bt,
#content div.art .headline .bt div,
#content div.art .headline .bb,
#content div.art .headline .bb div {
	background-image:url(/skins/default/panel-box-inner_art.gif);
	}
#content div.art .headline .i3 {
	background-color:#9376bf;
}



#quiz .i1,
#quiz .i2 {
	background-image:url(/skins/default/panel-borders_quiz.gif);
	}
#quiz .bt,
#quiz .bt div,
#quiz .bb,
#quiz .bb div {
	background-image:url(/skins/default/panel-box_quiz.gif);
	}
#quiz .i3 {
	background-color:#DBDDD6;
}

/* grey - my account */
.grey .i1,
.grey .i2 {
	background-image:url(/skins/default/panel-border_grey.gif);
	}
.grey .bt,
.grey .bt div,
.grey .bb,
.grey .bb div {
	background-image:url(/skins/default/panel-box_grey.gif);
	}
.grey .i3 {
	background-color:#F9F9F9;
}

.grey .headline .i1,
.grey .headline .i2 {
	background-image:url(/skins/default/panel_inner_border_grey.gif);
	}
.grey .headline .bt,
.grey .headline .bt div,
.grey .headline .bb,
.grey .headline .bb div {
	background-image:url(/skins/default/panel-box-inner_grey.gif);
	}
.grey .headline .i3 {
	background-color:#EBECE6;
}


.inset-white .i1,
.inset-white .i2 {
	background-image:url(/skins/default/panel_inner_border_white.gif);
	}
.inset-white .bt,
.inset-white .bt div,
.inset-white .bb,
.inset-white .bb div {
	background-image:url(/skins/default/panel-box-inner_white.gif);
	}
.inset-white .i3 {
	background-color:#fff;
}