function randcnt() {
    var cmt = new Array();
    var sdr = new Array();
    var page = "<span class='rightbar_boldtext'>&quot;"+"Asset Securitization Report"+" </span>";
    cmt[0] = page+"&nbsp; The single best publication covering the U.S. asset-backed and related markets in newsletter format";
    sdr[0] = "Emile Arca, Partner, Dewey & LeBeouf";
    cmt[1] = page+"&nbsp; We read ASR every week. Their news is comprehensive and timely, and much of their CDO coverage is thought provoking and engaging";
    sdr[1] = "Steven Finnk, Guggenheim Capital Markets, LLC";
    cmt[2] = page+"&nbsp; offers both the greatest depth and the broadest scope of coverage on important securitization topics. It probes more deeply than do other weekly newsletters. Moreover, it provides essential data and commentary about deal flow, spread levels, and origination trends. I like to read all the weekly securitization newsletters; when I have time for only one, it’s ASR";
    sdr[2] = "Anonymous, Managing Director";
    var randomnumber=Math.floor(Math.random()*3);
    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*/

/* Prnit Div */
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");
	}
 });

