function randcnt() {
	var cmt = new Array();
	var sdr = new Array();
	var page = "<span class='rightbar_boldtext'>&quot;"+"Money Management Executive"+" </span>";
	cmt[0] = page+"&nbsp; The breaking news in Money Management Executive’s daily e-newsletter and the more comprehensive articles in its weekly print edition are a great source of valuable information for us and for our customers in the mutual fund and managed accounts industries, particularly in its coverage of operations and compliance issues";
	sdr[0] = "Ann Bergin, Managing Director & General Manager, Wealth Management Services, DTCC";
	cmt[1] = page+"&nbsp; is a great means of staying on the latest 	edge of market news without having to scour larger publications, and the daily news is delivered expediently to my inbox";
	sdr[1] = "Brett Wiebke, Legacy Program Administrator, OppenheimerFunds Legacy Program";
	cmt[2] = page+"&nbsp; has its finger on the pulse of the industry it serves. As a marketer to the industry, I look to the publication for information that focuses our sales efforts, leads our product management efforts, and keeps us on the edge of industry needs";
	sdr[2] = "Christopher P. Willis, Executive Vice President, Marketing and Strategic Alliances, Pyxis Mobile";
	cmt[3] = page+"&nbsp; keeps me up to date on everything important in the money management industry, without all the noise from investment areas that I don’t care about";
	sdr[3] = "Dan Ahrens, Portfolio Manager, Ladenburg Thalmann Gaming and Casino Fund";
	cmt[4] = page+"&nbsp; Concise, timely coverage of the dynamic asset management industry makes Money Management Executive rewarding and required reading";
	sdr[4] = "Burt Greenwald, President, B.J. Greenwald Associates";
	var randomnumber=Math.floor(Math.random()*5);
	document.getElementById('DyData').innerHTML = cmt[randomnumber];
	document.getElementById('DySender').innerHTML = sdr[randomnumber];
	
}
function showDiv(DivID) {
	document.getElementById(DivID).style.display = 'block'
}
function hideLayer(DivID) {
	document.getElementById(DivID).style.display = 'none'
}


/*Print Functionality*/
var myWindow;
function printVersion() {
     myWindow=window.open('dummyPrint.html', "PopUpWindow",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=950,height=600' );
	 
}
function PrintContents() {	
	 printedDiv=document.getElementById("wrapperFrame");

	 /* This inserts a Print button onto the print preview page.  We may or may not use this. */
     var printContents="<div class='printPopHead'><a href='#' onclick='window.print()'>Print</a></div>";
     printContents+=printedDiv.innerHTML;
	 printContents+="<br/>";
	 /* Uncomment the line below to display Parent Page URL in the Print Preview Window*/
	 /*printContents+="<div class='pgURL'>"+window.location+"</div>"*/
	 /* This sets the conents of the popup window to the html that was copied from the parent. */
     myWindow.document.body.innerHTML=printContents;
}
/*Print Functionality*/


var win = null;
function NewWindow(mypage,myname,w,h,scroll) {
  
  LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
  TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
  settings =
  'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
  win = window.open(mypage,myname,settings)
}

function printdiv(printpage)
{
  var headstr = "<html><head><title></title></head><body>";
  var footstr = "</body>";
  var newstr = document.getElementById(printpage).innerHTML;
  var oldstr = document.body.innerHTML;
  document.body.innerHTML = headstr+newstr+footstr;
  window.print();
  document.body.innerHTML = oldstr;
  return false;
}

 $(document).ready(function(){
	$("a#audience_nav").removeClass("hi-lite");			
	$("a#editorial_nav").removeClass("hi-lite");			
	$("a#display_nav").removeClass("hi-lite");			
	$("a#online_nav").removeClass("hi-lite");	
	
	if ( $("#audience").length > 0 ){
		$("a#audience_nav").addClass("hi-lite");
		randcnt();
	}
	if ( $("#editorial").length > 0 ){
		$("a#editorial_nav").addClass("hi-lite");
	}
	if ( $("#display").length > 0 ){
		$("a#display_nav").addClass("hi-lite");
	}
	if ( $("#online").length > 0 ){
		$("a#online_nav").addClass("hi-lite");
	}
 });


