//03-24-2009

function getUrlParam( name )
{
  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var results = regex.exec( window.location.href );
  if( results == null )
    return "";
  else
    return results[1];
}


var format = getUrlParam('format');
if (format == 'print') {
		document.write('<link rel="stylesheet" type="text/css" href="../../rbmc/js/pru/print.css" media="all" />');
} else {
		document.write('<link rel="stylesheet" type="text/css" href="../../rbmc/js/pru/print.css" media="print" />');
		document.write('<link rel="stylesheet" type="text/css" href="../../rbmc/js/pru/template-old.css" media="screen" />');
		document.write('<link rel="stylesheet" type="text/css" href="../../rbmc/js/pru/template2.css" media="screen" />');
}

window.onload=function(){
	//tableResize(); //Will Resize table width entered via eWebeditPro if it exceeds reasonable width.
	//imageResize(); //Will Resize image width entered via eWebeditPro if it exceeds reasonable width.
	initHighlight(); //On focus, background image swap.
}

//For IE6 Flicker
try {
document.execCommand('BackgroundImageCache', false, true);
} catch(e) {}
