if( window.innerHeight && window.scrollMaxY ) { // Firefox 
	boxWidth = 718;
	boxHeight = window.innerHeight + window.scrollMaxY - 391;
}
else if( document.body.scrollHeight > document.body.offsetHeight ) // all but Explorer Mac
{
	boxWidth = 749;
	boxHeight = document.body.scrollHeight - 219;
}
else // works in Explorer 6 Strict, Mozilla (not FF) and Safari
{ 
	boxWidth = 749;
	boxHeight = document.body.offsetHeight + document.body.offsetTop - 219;
}

document.writeln('<!-- Start Mortgage Specialist Notice -->');
document.writeln('<STYLE TYPE="text/css">');
document.writeln('DIV.MSBox');
document.writeln('{');
document.writeln('background-color:White;');
document.writeln('color: #002888;');
document.writeln('text-align:center;');
document.writeln('BORDER-RIGHT: #a52a2a 4px solid;');
document.writeln('PADDING-RIGHT: 15px;');
document.writeln('BORDER-TOP: #a52a2a 4px solid;');
document.writeln('PADDING-LEFT: 15px;');
document.writeln('Z-INDEX: 1;');
document.writeln('FLOAT: none;');
document.writeln('VISIBILITY: hidden;');
document.writeln('PADDING-BOTTOM: 20px;');
document.writeln('MARGIN-LEFT: 230px;');
document.writeln('BORDER-LEFT: #a52a2a 4px solid;');
document.writeln('PADDING-TOP: 20px;');
document.writeln('BORDER-BOTTOM: #a52a2a 4px solid;');
document.writeln('POSITION: absolute;');
document.writeln('TOP: 350px;');
document.writeln('WIDTH: ' + boxWidth + 'px;');
document.writeln('}');
document.writeln('</STYLE>');
document.writeln('<div class="MSBox" id="MSBox">');
document.writeln('<div style="color: #CC3333;">Campagne de printemps de vente promotionnelle pour Conseiller en pr&ecirc;ts hypoth&eacute;caires</br><br>Le 1 f&eacute;vrier jusqu\'au 28 f&eacute;vrier 2010 </div>');
document.writeln('<div style="color: #CC3333;">RBC sponsorise de nouveau un escompte de 50 % &agrave; un maximum de $250.<br>L\'escompte sera appliqu&eacute apr&egrave;s que vous placer la commande.<br>RBC r&eacute;serve le droit de mettre fin &agrave; la vente d\'un moment &agrave; l\'autre.</br></br></div>');
document.writeln('<div><a href="#" onClick="document.cookie=\'MSBox=False; path=/\'; document.getElementById(\'MSBox\').style.visibility=\'hidden\';">Fermer</a></div>');
document.writeln('</div>');

//document.writeln('<!-- Start Contest Notice -->');
//document.writeln('<STYLE TYPE="text/css">');
//document.writeln('DIV.ContestBox');
//document.writeln('{');
//document.writeln('background-color:White;color: #808080;BORDER-RIGHT: #808080 1px solid;BORDER-TOP: #808080 1px solid;');
//document.writeln('TOP: 300px;MARGIN-LEFT: 250px;Z-INDEX: 90;FLOAT: none;BORDER-LEFT: #808080 1px solid;BORDER-BOTTOM: #808080 1px solid;');
//document.writeln('POSITION: absolute;VISIBILITY: hidden;');
//document.writeln('}');
//document.writeln('</STYLE>');
//document.writeln('<div class="ContestBox" id="ContestBox">');
//document.writeln('<div><a href="#" onClick="document.cookie=\'ContestBox=False; path=/\'; document.getElementById(\'ContestBox\').style.visibility=\'hidden\';"><img src=img/features/contest/Winner.jpg border=0 /></a></div>');
//document.writeln('</div>');

document.writeln('<!-- Start Notice -->');
document.writeln('<STYLE TYPE="text/css">');
document.writeln('DIV.OlympicBox');
document.writeln('{');
document.writeln('background-color:White;');
document.writeln('color: #002888;');
document.writeln('text-align:center;');
document.writeln('BORDER-RIGHT: #a52a2a 4px solid;');
document.writeln('PADDING-RIGHT: 15px;');
document.writeln('BORDER-TOP: #a52a2a 4px solid;');
document.writeln('PADDING-LEFT: 15px;');
document.writeln('Z-INDEX: 1;');
document.writeln('FLOAT: none;');
document.writeln('VISIBILITY: hidden;');
document.writeln('PADDING-BOTTOM: 20px;');
document.writeln('MARGIN-LEFT: 230px;');
document.writeln('BORDER-LEFT: #a52a2a 4px solid;');
document.writeln('PADDING-TOP: 20px;');
document.writeln('BORDER-BOTTOM: #a52a2a 4px solid;');
document.writeln('POSITION: absolute;');
document.writeln('TOP: 350px;');
document.writeln('WIDTH: ' + boxWidth + 'px;');
document.writeln('}');
document.writeln('</STYLE>');
document.writeln('<div class="OlympicBox" id="OlympicBox">');
document.writeln('<div style="color: #CC3333;">Veuillez prendre note que, pour <b>les produits de s&eacute;rie limit&eacute;e</b>, les articles ne sont pas conserv&eacute;s en inventaire.</br></div>');
document.writeln('<div style="color: #CC3333;">Les commandes seront accept&eacute;es jusqu\'au 10 juin pour une livraison <br>vers le 15 juillet 2008.</br></br></div>');
document.writeln('<div><a href="#" onClick="document.cookie=\'OlympicCookie=False; path=/\'; document.getElementById(\'OlympicBox\').style.visibility=\'hidden\';">Fermer</a></div>');
document.writeln('</div>');

document.writeln('<STYLE TYPE="text/css">');
document.writeln('DIV.OlympicProtectBox');
document.writeln('{');
document.writeln('background-color:White;');
document.writeln('color: #002888;');
document.writeln('text-align:center;');
document.writeln('PADDING-RIGHT: 15px;');
document.writeln('PADDING-LEFT: 15px;');
document.writeln('Z-INDEX: 10;');
document.writeln('FLOAT: none;');
document.writeln('VISIBILITY: hidden;');
document.writeln('PADDING-BOTTOM: 20px;');
document.writeln('MARGIN-LEFT: 220px;');
document.writeln('PADDING-TOP: 20px;');
document.writeln('POSITION: absolute;');
document.writeln('TOP: 240px;');
document.writeln('WIDTH: ' + boxWidth + 'px;');
document.writeln('HEIGHT: ' + boxHeight + 'px;');
document.writeln('}');
document.writeln('</STYLE>');
document.writeln('<div class="OlympicProtectBox" id="OlympicProtectBox">');
document.writeln('<a href="#" onClick="document.cookie=\'OlympicProtect=False; path=/\'; document.getElementById(\'OlympicProtectBox\').style.visibility=\'hidden\';"><img src="img/features/olympic/vanoc_buttons.jpg" border="0"/></a>');
document.writeln('</div>');

function fnMSBox ( btn )
{
	if ( document.cookie.indexOf("MSBox=False") == -1)
	{
		document.getElementById("MSBox").style.visibility="visible";
	}
}

//function fnContestBox ( btn )
//{
//	if ( document.cookie.indexOf("ContestBox=False") == -1)
//	{
//		document.getElementById("ContestBox").style.visibility="visible";
//	}
//}

function fnOlympicNotice ( btn )
{
	if ( document.cookie.indexOf("OlympicCookie=False") == -1)
	{
		document.getElementById("OlympicBox").style.visibility="visible";
	}
}

function fnOlympicProtect ( btn )
{
	if ( document.cookie.indexOf("OlympicProtect=False") == -1)
	{
		boxHeight = 10000;
		document.getElementById("OlympicProtectBox").style.height=boxHeight;
		document.body.style.overflow = 'hidden';
		//document.writeln('<iframe name="OlympicProtectFrame" src="banners/blank.html" scrolling="no" frameborder="0"  style="position:absolute;width:' + (boxWidth - 1) + 'px;height:1500px;top:210px;left:170px;border:0;z-index:2"></iframe>');
		document.getElementById("OlympicProtectBox").style.visibility="visible";
	}
	//else
	//{
	//	switch (cur_cat_id)
	//	{
	//	case "18": case	 "21":
	//		fnOlympicNotice('True');
	//	default:
	//	}
	//}
}

//if ( cur_cat_id == "36" )
//{
//	fnContestBox('True');
//}

switch (cur_cat_id)
{
//case "18": case	 "21": case	 "22": case	 "24": case	 "25": case	 "54": case 56: case 61:
case "18": case	 "21": case	 "24": case	 "25": case	 "54": case 56: case 61:
	fnOlympicProtect('True');
	break;
case "23": case "29": case "67":
	//fnMSBox('True');
	break;
default:
}