//pass it a code to represent count home, mnw, member site and use that to determine the location
// eg <s cript>Whats_New(3,"DEKKERSS","wealth-e-shares.com.au","contact_us.asp")< /script>

function Whats_New(TypeCode,MemberCode,Web,Contact)
{

var Depth
var Extra1
var Extra2
var StyleHeading
var StyleText

if (TypeCode==1) //public site
{	
	Depth = "" //this needs to stay within the site starting from the beginning	
	Extra1 = ""
	Extra2 = ""
	StyleHeading = "fp" //css for heading
	StyleText = "fp" //css for text	
	Window = "" //does or doesn't need to open in new window
	Height = "150" //scrolling box height	
}
if (TypeCode == 2) //mnw site
{
	//Depth = "../../countpublic" //the asp in MNW will add badged link in front of this	
	Extra1 = "http://www.count.com.au/" //count.asp?where=
	Extra2 = ""
	StyleHeading = "sidebar_subheading" //find appropriate style name
	StyleText = "sidebar_subheading"	  //find appropriate style name
	Window = " target=_blank"	
	Height = "372"  //was 272
}	
if (TypeCode == 3) //member site   http://www.count.com.au/direct.asp?mid=1493&where=
{	
	Extra1 = "count.asp?where="
	Extra2 = "&top=" + MemberCode + "/" + MemberCode + "_logo.gif&memc=" + MemberCode + "&MemWeb=" + Web + "&Web=" + Contact
	StyleHeading = "table_text"
	StyleText = "table_text"
	Window = " target=_blank"
	Height = "60" 
}	


// ******* WD & WN Support to start amending here ******
// ******* DO NOT CHANGE TypeCode==2; Extra1 AND Extra2 in the bottom var TextLink line ******

var Heading1  = "Monthly Investment Market Review";
var Link1   = 'Investor_Education/Research_centre/Market_Review/Market_Review.asp';
    var Link1B = Web + "&where=" + Link1; 
    if (TypeCode==2)  {Link1=Link1B}
var TextLink1 = "<a href="+Extra1+Link1+Extra2+Window+">This update </a> provides you with a snapshot of current domestic and international financial market conditions.";

var Heading2  = "Appointment of New CEO";
var Link2   = 'About_Count/Investor_Relations/PDF_Files/ASX_Announcements/Appointment_New_CEO.pdf';
    var Link2B = Web + "&where=" + Link2; 
    if (TypeCode==2)  {Link2=Link2B}
var TextLink2 = "<a href="+Extra1+Link2+Extra2+Window+">Click here</a> for more.";

var Heading3  =  "ASX Announcement";
var Link3   = 'About_Count/Investor_Relations/PDF_Files/ASX_Announcements/ASX_Announcement_Achieve_Tuck_In_of_Cal_Consulting.pdf';
    var Link3B = Web + "&where=" + Link3; 
    if (TypeCode==2)  {Link3=Link3B}
var TextLink3 = "<a href="+Extra1+Link3+Extra2+Window+">Countplus - Tuck in Acquisition</a>";

// ******* WD & WN Support to stop amending here ******

if (TypeCode==1) //public site
{	
//document.writeln("<marquee id=mq loop onstart=';mq.scrollAmount=2;setTimeout('mq.scrollAmount=2', 1000);' behavior=scroll direction=up scrollamount='1' height="+Height+" vspace=2 scrolldelay=0 onMouseover='mq.scrollAmount=0;' onMouseout='mq.scrollAmount=2;';>");
document.writeln("<table width=100% border=0 cellspacing=0 cellpadding=0>");
//Item 1
document.writeln("<tr>");
document.writeln("<td width=6 valign=top><img src=http://www.count.com.au/Images/link_arrow.gif width=9 height=14>");
document.writeln("</td>");
document.writeln("<td><span class="+StyleHeading+"><b>"+Heading1+"</b></span>");
document.writeln("</td>");
document.writeln("</tr>");
document.writeln("<tr>");
document.writeln("<td width=6>");
document.writeln("</td>");
document.writeln("<td><span class="+StyleText+">"+TextLink1+"</span>");
document.writeln("</td>");
document.writeln("</tr>");
//Item 2
document.writeln("<tr>");
document.writeln("<td width=6 valign=top><img src=http://www.count.com.au/Images/link_arrow.gif width=9 height=14>");
document.writeln("</td>");
document.writeln("<td><span class="+StyleHeading+"><b>"+Heading2+"</b></span>");
document.writeln("</td>");
document.writeln("</tr>");
document.writeln("<tr>");
document.writeln("<td width=6>");
document.writeln("</td>");
document.writeln("<td><span class="+StyleText+">"+TextLink2+"</span>");
document.writeln("</td>");
document.writeln("</tr>");
//Item 3
document.writeln("<tr>");
document.writeln("<td width=6 valign=top><img src=http://www.count.com.au/Images/link_arrow.gif width=9 height=14>");
document.writeln("</td>");
document.writeln("<td><span class="+StyleHeading+"><b>"+Heading3+"</b></span>");
document.writeln("</td>");
document.writeln("</tr>");
document.writeln("<tr>");
document.writeln("<td width=6>");
document.writeln("</td>");
document.writeln("<td><span class="+StyleText+">"+TextLink3+"</span>");
document.writeln("</td>");
document.writeln("</tr>");
//End table
document.writeln("</table>");
//document.writeln("</marquee>");		
}
if (TypeCode == 2) //mnw site
{
////////var Link1B
////////Link1B = Web + "&where=" + Link1;  
//document.writeln(Link1B);
//document.writeln("Sally 1");
//Link1 = Link1B;



//alert(Web)

/////////var TextLink1 = "This one is for <a href="+Extra1+Link1+Extra2+Window+">January</a> - read it today";
//document.writeln(TextLink1);
//document.writeln("Sally 2");

//var TextLink1B 
//var TextLink1 = "This one is for <a href="+Extra1+Link1+Extra2+Window+">January</a> - read it today";

//TextLink1 = "This one is for <a href='' id="+Link1B+Window+">January</a> - read it today";

//document.writeln("HELP" + TextLink1);

//document.writeln("<marquee id=mq loop onstart=';mq.scrollAmount=2;setTimeout('mq.scrollAmount=2', 1000);' behavior=scroll direction=up scrollamount='1' height="+Height+" vspace=2 scrolldelay=0 onMouseover='mq.scrollAmount=0;' onMouseout='mq.scrollAmount=2;';>");
document.writeln("<table width=100% border=0 cellspacing=0 cellpadding=0>");
//Item 1
document.writeln("<tr>");
document.writeln("<td width=6 valign=top><img src=images/tri-row.gif width=4 height=9>");
document.writeln("</td>");
document.writeln("<td><span class="+StyleHeading+"><b>"+Heading1+"</b></span>");
document.writeln("</td>");
document.writeln("</tr>");
document.writeln("<tr>");
document.writeln("<td width=6>");
document.writeln("</td>");
document.writeln("<td><span class="+StyleText+">"+TextLink1+"</span>");
document.writeln("</td>");
document.writeln("</tr>");
//Item 2
document.writeln("<tr>");
document.writeln("<td width=6 valign=top><img src=images/tri-row.gif width=4 height=9>");
document.writeln("</td>");
document.writeln("<td><span class="+StyleHeading+"><b>"+Heading2+"</b></span>");
document.writeln("</td>");
document.writeln("</tr>");
document.writeln("<tr>");
document.writeln("<td width=6>");
document.writeln("</td>");
document.writeln("<td><span class="+StyleText+">"+TextLink2+"</span>");
document.writeln("</td>");
document.writeln("</tr>");
//Item 3
document.writeln("<tr>");
document.writeln("<td width=6 valign=top><img src=images/tri-row.gif width=4 height=9>");
document.writeln("</td>");
document.writeln("<td><span class="+StyleHeading+"><b>"+Heading3+"</b></span>");
document.writeln("</td>");
document.writeln("</tr>");
document.writeln("<tr>");
document.writeln("<td width=6>");
document.writeln("</td>");
document.writeln("<td><span class="+StyleText+">"+TextLink3+"</span>");
document.writeln("</td>");
document.writeln("</tr>");
//End table
document.writeln("</table>");
//document.writeln("</marquee>");			
}	
if (TypeCode == 3) //member site   http://www.count.com.au/direct.asp?mid=1493&where=
{	
//document.writeln("<marquee id=mq loop onstart=';mq.scrollAmount=2;setTimeout('mq.scrollAmount=2', 1000);' behavior=scroll direction=up scrollamount='1' height="+Height+" vspace=2 scrolldelay=0 onMouseover='mq.scrollAmount=0;' onMouseout='mq.scrollAmount=2;';>");
document.writeln("<table width=100% border=0 cellspacing=0 cellpadding=0>");
//Item 1
document.writeln("<tr>");
document.writeln("<td width=6 valign=top><img src=http://www.count.com.au/Images/link_arrow.gif width=9 height=14>");
document.writeln("</td>");
document.writeln("<td><span class="+StyleHeading+"><b>"+Heading1+"</b></span>");
document.writeln("</td>");
document.writeln("</tr>");
document.writeln("<tr>");
document.writeln("<td width=6>");
document.writeln("</td>");
document.writeln("<td><span class="+StyleText+">"+TextLink1+"</span>");
document.writeln("</td>");
document.writeln("</tr>");
//Item 2
document.writeln("<tr>");
document.writeln("<td width=6 valign=top><img src=http://www.count.com.au/Images/link_arrow.gif width=9 height=14>");
document.writeln("</td>");
document.writeln("<td><span class="+StyleHeading+"><b>"+Heading2+"</b></span>");
document.writeln("</td>");
document.writeln("</tr>");
document.writeln("<tr>");
document.writeln("<td width=6>");
document.writeln("</td>");
document.writeln("<td><span class="+StyleText+">"+TextLink2+"</span>");
document.writeln("</td>");
document.writeln("</tr>");
//Item 3
document.writeln("<tr>");
document.writeln("<td width=6 valign=top><img src=http://www.count.com.au/Images/link_arrow.gif width=9 height=14>");
document.writeln("</td>");
document.writeln("<td><span class="+StyleHeading+"><b>"+Heading3+"</b></span>");
document.writeln("</td>");
document.writeln("</tr>");
document.writeln("<tr>");
document.writeln("<td width=6>");
document.writeln("</td>");
document.writeln("<td><span class="+StyleText+">"+TextLink3+"</span>");
document.writeln("</td>");
document.writeln("</tr>");
//End table
document.writeln("</table>");
//document.writeln("</marquee>");	
}	




} // end function

