function content_init() {
	document.write("<style type=\"text/css\">\n");
	document.write("<!--\n");

	var content_row; 
	var i = 0;

	document.write("#" + contentRows[i] + " {\n");
	document.write("display: visible\n");
	document.write("}\n\n");

	i++;

	for( i; i < contentRows.length; i++ ) {
		document.write("#" + contentRows[i] + " {\n");
		document.write("display: none\n");
		document.write("}\n\n");
      }
	
	document.write("-->\n");
	document.write("</style>\n");
}

function toggleContent_AllOff() {
	if( document.getElementById ) {
		var content_row; 
		for( var i = 0; i < contentRows.length; i++ ) {
			content_row = document.getElementById(contentRows[i]).style;
			content_row.display = "none";
		}
	}	
}

function switch_content(contentRequest) {
   	// Make all rows invisible
	toggleContent_AllOff();

	// Make requested row visible
	if(document.getElementById) {
      var contentRow= document.getElementById(contentRequest).style;
      
	// Set the cell visible in Firefox 
      if(navigator.userAgent.indexOf("Firefox") != -1){
         if(contentRow.display == "table-cell") {
            contentRow.display = "none";
         }
         else {
            contentRow.display = "table-cell";
         }
      }
      // Set the cell visible in all other browsers
	else {
         if(contentRow.display == "block") {
            contentRow.display = "none";
         }
         else {
            contentRow.display = "block";
         }
      }
      return false;
   }
   else {
      return true;
   }
}