// Copyright Aristid Systems email:design@aristid.co.uk  


// Define Javascript version
jsVersion = "1.0";

// Define colors etc for all docs
var Jdocbgcolor='SeaGreen' ,                        // 'MediumSeaGreen' , 
    Jtab1bgcolor='#0000df' ,                        // 'Blue' , 
    Jtab2bgcolor='#009fff' ,                        // 'DeepSkyBlue' ,   //DeepSkyBlue=#00bfff
    Jcellbgcolor='#00ff9A' ,                        // 'MediumSpringGreen' , 
    Jbuttonbarbgcolor='#00ff9a',                    // '00FFAA',
    Jbuttonlinecolor='#009fff',                     // 'DeepSkyBlue',
    Jtitlelinecolor='#009fff',                      // 'DeepSkyBlue',
    JLogobgcolor='#00ff9a',                         // '00FFAA',  //  <!--- MediumSpringGreen plus a bit --> 
    JLogoFontColor='Blue',                          // 'Green',
    JUnderLogoColor='#00ff9a',                      // 'DeepSkyBlue',
    Bbgcolor='#00eef0',                             // '00eeff',

    Jtab1padd=3, 
    Jtab2padd=3, 
    Jlink='Blue' , 
    Jvlink='Green' , 
    Jalink='Red'  , 
    Jbgcolor='White' , 


//    Jbuttonbarbgcolor='DeepSkyBlue',
    Jtitlelinesize=6,
    Jfontcolor='Blue' , 
    Jfontface='Tahoma' , 
    JTitleSize=5,
    JTextSize=2,
    JEmptyBarSize=1,	

    JMainBodyFont="<font face=" + Jfontface + " size=" + JTextSize + "> <B>", 



// Marquees
    JMarqBigFont='<font color="Blue" size=4 face="Tahoma"><B>',
    JMarqBigFontOff='</B></font>',
    JMarqSmallFont='<font color="Black" size=2 face="Tahoma"><B>',
    JMarqSmallFontOff='</B></font>',



// Menu Buttons
    JLogoFontSize=4,
    JUnderLogoSize=1,

    JSubMenuFont='<font color="Green" size=1 face="Tahoma"><B>',
    JSubMenuSmallFont='<font color="Green" size=1 face="Tahoma"><B>',
    JSubMenuFontOff='</B></font><BR>',
    Bsubmenucolor='White' 

    ;



function opentop(JTitle, topbot, doc, doctype) {
	// Define head 
	document.write("<head>");  
	document.write("<title>The Accountants' Joint Disciplinary Scheme</title>");  
	document.write("</head>");  
	// Define body 
	document.write("<body ");  
	document.write("onload=\"   "); 
	// Preload images 
	preloadouter(doctype);

	document.write(" ustatus(); \" bgcolor=" + Jdocbgcolor + " ");
	document.write("bgproperties=fixed marginheight=0 marginwidth=0 ");
	document.write("link=" + Jlink + " vlink=" + Jvlink +  " alink=" + Jalink + ">" );

	// Define top 
  	document.write("<A NAME='top'></a> <CENTER>");
	
	// Define first border as table
	document.write("<TABLE bgcolor=" + Jtab1bgcolor + " bordercolor=" + Jtab1bgcolor + " cellpadding=" + Jtab1padd + " width=100%>");
	document.write("<TR><TD>");
	
	// Define second border as table
	document.write("<TABLE bgcolor=" + Jtab2bgcolor + " bordercolor=" + Jtab2bgcolor + " cellpadding=" + Jtab2padd + " width=100%>");
	document.write("<TR><TD>");

	// Open Main table
	if (doctype != "cont") {
	  	document.write("<TABLE bgcolor=" + Jbgcolor + " border=0 cellpadding=0 cellspacing=0  width=100%> ");
	titlebar(JTitle, topbot);
	}
 }





function bottom(JTitle, topbot) {

	titlebar(JTitle, topbot);

	// End tables
  	document.write("</TABLE>");
  	document.write("</TD></TR></TABLE>");
  	document.write("</TD></TR></TABLE></CENTER>");

	// Define bottom
	document.write(" <A NAME='bottom'> ");
}







function titlebar(JTitle, topbot) {
  	document.write("<TR> ");
  	document.write("<TD width=100%>");

  	document.write("<TABLE cellspacing=0 cellpadding=0 border=0 width=100%> ");
  	document.write("<TR> ");
  	document.write("<TD bgcolor=" + Jcellbgcolor + " width=100% >");
	if (topbot == "bot") {
		document.write("<HR color=\"" + Jtitlelinecolor + "\" size=\"" + Jtitlelinesize + "\"> "); 
	} 
  	document.write("<font face=" + Jfontface + " color=" + Jfontcolor + " size=" + JTitleSize + "> "); 
  	document.write("<CENTER><B>" + JTitle + "</B></font></CENTER>");
	if (topbot == "top") {
		document.write("<HR color=" + Jtitlelinecolor + " size=" + Jtitlelinesize + "> "); 
	} 

	document.write("</TD></TR></TABLE>"); 
	document.write("</TR></TD> ");
}



function emptybar() {

/*
    	document.write("<TR height=" + Jtitlelinesize + " ><TD width=100% bgcolor=" + Jcellbgcolor + ">");
// 	document.write("<font color=" + Jcellbgcolor + " size=" + JEmptyBarSize + " face=" + Jfontface + " > ");

		document.write("<HR color=" + Jtitlelinecolor + " size=" + Jtitlelinesize + "> "); 
//    	document.write("<B>Null</B> </font> ");
    	document.write("</TD></TR>");
*/

}


function openmaintext () {
	document.write("<TR><TD><TABLE bgcolor=\"white\" cellpadding=\"5\"><TR><TD>" + JMainBodyFont); 
}

function closemaintext () {
	document.write("</B></font></TD></TR></TABLE></TD></TR> ");
	document.write("<TR><TD height=\"5\"><IMG SRC=\"white1x1.gif\" border=\"0\" width=\"1\" height=\"5\"></TD></TR> ");
}



function preloadouter (doctype) {

//	var ImageDir="images/";
	var PreloadStr="";


// About JDS Series
		PreloadStr = "'images/aboutjds_1.gif', 'images/aboutjds_2.gif', 'images/inv_1.gif', 'images/inv_2.gif', 'images/tribun_1.gif', 'images/tribun_2.gif', 'images/pen_1.gif', 'images/pen_2.gif'," +

// Main menu images
		"'images/about_1.gif','images/about_2.gif','images/about_3.gif', 'images/scheme_1.gif','images/scheme_2.gif','images/scheme_3.gif','images/regs_1.gif','images/regs_2.gif','images/regs_3.gif','images/current_1.gif','images/current_2.gif','images/current_3.gif', 'images/press_1.gif','images/press_2.gif','images/press_3.gif','images/ongcases_1.gif','images/ongcases_2.gif','images/ongcases_2.gif','images/pcases_1.gif','images/pcases_2.gif','images/pcases_3.gif','images/trib_1.gif','images/trib_2.gif','images/trib_3.gif','images/ordering_1.gif','images/ordering_2.gif','images/ordering_3.gif','images/faq_1.gif','images/faq_2.gif','images/faq_3.gif','images/cont_1.gif','images/cont_2.gif','images/cont_3.gif'," +


// Press Notices and Tribunal Reports etc
		"'images/word_1.gif', 'images/word_2.gif', 'images/order_1.gif', 'images/order_2.gif', 'images/tribr_1.gif', 'images/tribr_2.gif', 'images/pressn_1.gif', 'images/pressn_2.gif'" ;


	document.write("preload(" + PreloadStr + " ); " );


//	alert(PreloadStr);

}



function bigmarquee (Mcolor, Mtext) {
	document.write(' <TABLE width="100%"> ');
	document.write(' <TR><TD> ');
	document.write(' <marquee  BEHAVIOR="scroll" BGCOLOR="' + Mcolor + '" ');
	document.write(' DIRECTION="left" SCROLLAMOUNT="10" scrolldelay="100" HEIGHT="30"> ');
	document.write(JMarqBigFont);
	
//	document.write(' Independent investigation of the work and conduct of chartered accountants ');
	document.write(Mtext);
	document.write(JMarqBigFontOff);
     	document.write(' </marquee>  ');
	document.write(' </TD></TR></TABLE> ');

  }


function smallmarquee (Mcolor, Mtext) {
	document.write(' <TABLE width="100%"> ');
	document.write(' <TR><TD> ');
	document.write(' <marquee  BEHAVIOR="scroll" BGCOLOR="' + Mcolor + '" ');
	document.write(' DIRECTION="left" SCROLLAMOUNT="10" scrolldelay="100" HEIGHT="30"> ');
	document.write(JMarqSmallFont);
	document.write(Mtext);
	document.write(JMarqSmallFontOff);
     	document.write(' </marquee>  ');
	document.write(' </TD></TR></TABLE> ');

  }

