var container = document.getElementById( "dg-highlights" );
var a = container.getElementsByTagName( "a" )[ 0 ];
if( container && a && a.href.indexOf( "digiguide.com" ) != -1 )
{
container.innerHTML =
"
" +
getStyle() +
"" +
"" +
"

" +
"
Gareth Malone's Extraordinary School for Boys
" +
"
In an ambitious new series, Gareth Malone turns educator for a term. His mission is to re-engage the boys who aren't fulfilling their potential.
(
more...)" +
"
" +
"
" +
"
" +
"
Other Highlights
" +
"
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" +
"
" +
"
";
}
else
{
alert( "Sorry, you must include the DigiGuide link in your website or this Gadget will not work!" );
}
function checkVar( v )
{
var bThere;
try {
if( eval( v ) )
{
bThere = true;
}
else
{
bThere = false;
}
}
catch( e )
{
bThere = false;
}
return( bThere );
}
function getStyle()
{
var strCSS;
strCSS = ".dg-hl-c2 a { color:[dg_link_color]; cursor: pointer!important; }.dg-hl-c1 { border: 1px solid [dg_border_color]; width: [dg_width][dg_width_unit]; background: [dg_background]; padding: 2px 2px 2px 2px; font-family: [dg_font_family]; font-size: [dg_font_size]!important; color: [dg_text_color]; overflow: hidden; }.dg-hl-c2 { border: 1px solid [dg_border_color]; background: [dg_foreground]; padding: 12px; margin: 0; overflow: hidden; clear: both; color: [dg_text_color]; }.dg-top a { white-space: nowrap; }.dg-hl-c1 hr { color: [dg_border_color]; height: 1px;}.dg-hl-c1 h3 { margin: 0px; font-size: 1.0em; color: [dg_title_color]; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; }.dg-hl-c1 p { color: [dg_text_color]; }.dg-others h3 { font-size: 0.8em;}.dg-hl-c1 ul { list-style-type: none; display: block; width: 100%; margin: 0; padding: 0; position: relative; font-size: 0.9em; padding-left: 7px; height: 1.2em; margin-bottom: 1px; }.dg-hl-c1 ul li { display: block; float: left; width: 5em; margin: 0px; padding: 0px; padding-right: 6px; height: 1.2em; position: relative; } .dg-hl-c1 ul li a { background-color: [dg_tab_color]; display: block; text-decoration: none; color:[dg_title_color]; border: 1px solid [dg_border_color]; border-bottom: 0px solid black!important; text-align: center; height: 1.2em; position: relative; vertical-align: bottom; } .dg-hl-c1 ul li a span{ /* position: absolute; bottom: 1px; left: 0px; */ width: 100%; text-align: center; vertical-align: bottom; } .dg-hl-c1 .dg-current { font-weight: bold; } .dg-current a { background: [dg_foreground]!important; height: 1.2em; padding-bottom: 1px; position: relative; border-bottom: none!important; } .dg-hl-c1 ul li a:hover { background: [dg_foreground]; } .dg-hl-c2 img { margin-right: 8px; padding: 5px; border: 1px solid [dg_border_color]; } .dg-hl-c2 p { margin-top: 3px; margin-bottom: 0; } .dg-link { font-size: 0.9em; margin-top: 10px; display: block!important; visibility: visible!important; } .dg-others .dg-link { margin: 5px 0px 5px 0px; } .dg-link a { font-weight: bold; } .dg-top span { font-weight: normal; text-transform: none; color: [dg_foreground]; } .dg-top { color: [dg_foreground]; height: 17px; text-transform: uppercase; font-weight: bold; font-size: 0.9em; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; } .dg-top a { text-decoration: none; color: [dg_foreground]; } .dg-top a:hover{ background: none!important; }";
if( strCSS )
{
var myThemes = new Object();
myThemes['default']={dg_width:'420',dg_width_unit:'px',dg_background:'#749ac8',dg_border_color:'#6789b3',dg_foreground:'#fff',dg_tab_color:'#dfe9f5',dg_text_color:'#000',dg_title_color:'#4a7ba6',dg_link_color:'#00f',dg_font_size:'10pt',dg_font_family:'helvetica'};myThemes['gold']={dg_width:'420',dg_width_unit:'px',dg_background:'#000000',dg_border_color:'#6789b3',dg_foreground:'#BCBD75',dg_tab_color:'#494A16',dg_text_color:'#000',dg_title_color:'#4a7ba6',dg_link_color:'#00f',dg_font_size:'10pt',dg_font_family:'helvetica'};myThemes['purple']={dg_width:'420',dg_width_unit:'px',dg_background:'#000000',dg_border_color:'#9363AB',dg_foreground:'#6A1594',dg_tab_color:'#310F42',dg_text_color:'#D4C5DB',dg_title_color:'#E2A8FF',dg_link_color:'#EA08FF',dg_font_size:'10pt',dg_font_family:'helvetica'};myThemes['high contrast']={dg_width:'420',dg_width_unit:'px',dg_background:'#000000',dg_border_color:'#000',dg_foreground:'#FFFFFF',dg_tab_color:'#D1D1D1',dg_text_color:'#000',dg_title_color:'#000000',dg_link_color:'#00f',dg_font_size:'10pt',dg_font_family:'helvetica'};myThemes['deep red']={dg_width:'420',dg_width_unit:'px',dg_background:'#000000',dg_border_color:'#9363AB',dg_foreground:'#961B1B',dg_tab_color:'#851B1B',dg_text_color:'#D4C5DB',dg_title_color:'#EB9D21',dg_link_color:'#F0CC18',dg_font_size:'10pt',dg_font_family:'helvetica'};
myThemes[ 'myTheme' ] = {
dg_width : '420',
dg_width_unit : 'px',
dg_background : '',
dg_border_color : '',
dg_foreground : '',
dg_tab_color : '',
dg_text_color : '',
dg_title_color : '',
dg_link_color : '',
dg_font_size : '10pt',
dg_font_family : 'helvetica'
};
for( var strStyleID in myThemes[ 'default' ] )
{
if( checkVar( "dg_style" ) && dg_style[ strStyleID ] && dg_style[ strStyleID ] != "" )
{
if( strStyleID.charAt( 0 ) == "_" )
{
}
else
{
strCSS = eval( "strCSS.replace( /\\[" + strStyleID + "\\]/ig, dg_style[ strStyleID ] ); ");
}
}
else
{
if( strStyleID.charAt( 0 ) == "_" )
{
}
else
{
strCSS = eval( "strCSS.replace( /\\[" + strStyleID + "\\]/ig, myThemes[ 'default' ][ strStyleID ] ); ");
}
}
}
}
var strQuirks = ( ( document.all && ( document.compatMode == "BackCompat" ) ) || navigator.userAgent.indexOf( "MSIE 6" ) != -1 ) ? "" : "";
return( "" + strQuirks );
}