// JavaScript Document

if(typeof sIFR == "function"){
            sIFR.replaceElement(named({ sSelector:"h1.welcome", sFlashSrc:"templates/sifr.swf", sColor:"#E41000", sLinkColor:"", sBgColor:"", sHoverColor:"#000000",nPaddingleft:0, nPaddingright:0,nPaddingtop:0,nPaddingbottom:0,sFlashVars:"",sWmode:"transparent"}));
			            sIFR.replaceElement(named({ sSelector:"span.welcome", sFlashSrc:"templates/sifr.swf", sColor:"#E41000", sLinkColor:"", sBgColor:"", sHoverColor:"#000000",nPaddingleft:0, nPaddingright:0,nPaddingtop:0,nPaddingbottom:0,sFlashVars:"",sWmode:"transparent"}));
            sIFR.replaceElement(named({ sSelector:"h2.subhead", sFlashSrc:"templates/sifr.swf", sColor:"#333333", sLinkColor:"", sBgColor:"", sHoverColor:"#000000",nPaddingleft:0, nPaddingright:0,nPaddingtop:0,nPaddingbottom:0,sFlashVars:"",sWmode:"transparent"}));
            sIFR.replaceElement(named({ sSelector:"h2.heading3", sFlashSrc:"templates/sifr.swf", sColor:"#666666", sLinkColor:"", sBgColor:"", sHoverColor:"#000000",nPaddingleft:0, nPaddingright:0,nPaddingtop:0,nPaddingbottom:0,sFlashVars:"",sWmode:"transparent"}));
            sIFR.replaceElement(named({ sSelector:"h2.contact", sFlashSrc:"templates/sifr.swf", sColor:"#e41000", sLinkColor:"", sBgColor:"", sHoverColor:"#000000",nPaddingleft:0, nPaddingright:0,nPaddingtop:0,nPaddingbottom:0,sFlashVars:"",sWmode:"transparent"}));
            sIFR.replaceElement(named({ sSelector:"h2.heading2", sFlashSrc:"templates/sifr.swf", sColor:"#666666", sLinkColor:"", sBgColor:"", sHoverColor:"#000000",nPaddingleft:0, nPaddingright:0,nPaddingtop:0,nPaddingbottom:0,sFlashVars:"",sWmode:"transparent"}));
            sIFR.replaceElement(named({ sSelector:"h3", sFlashSrc:"templates/sifr.swf", sColor:"#666666", sLinkColor:"", sBgColor:"", sHoverColor:"#000000",nPaddingleft:0, nPaddingright:0,nPaddingtop:0,nPaddingbottom:0,sFlashVars:"",sWmode:"transparent"}));
						sIFR.replaceElement(named({ sSelector:"h5", sFlashSrc:"templates/sifr.swf", sColor:"#e41000", sLinkColor:"", sBgColor:"", sHoverColor:"#000000",nPaddingleft:0, nPaddingright:0,nPaddingtop:0,nPaddingbottom:0,sFlashVars:"",sWmode:"transparent"}));
						sIFR.replaceElement(named({ sSelector:"h3.eletter", sFlashSrc:"templates/sifr.swf", sColor:"#ff0000", sLinkColor:"", sBgColor:"", sHoverColor:"#000000",nPaddingleft:0, nPaddingright:0,nPaddingtop:0,nPaddingbottom:0,sFlashVars:"",sWmode:"transparent"}));
            sIFR.replaceElement(named({ sSelector:"h6.help", sFlashSrc:"templates/sifr.swf", sColor:"#666666", sLinkColor:"", sBgColor:"", sHoverColor:"#000000",nPaddingleft:0, nPaddingright:0,nPaddingtop:0,nPaddingbottom:0,sFlashVars:"",sWmode:"transparent"}));
        
};

<!--Pop up box-->
function toggleBox(szDivID, iState) // 1 visible, 0 hidden
{
   var obj = document.layers ? document.layers[szDivID] :
   document.getElementById ?  document.getElementById(szDivID).style :
   document.all[szDivID].style;
   obj.visibility = document.layers ? (iState ? "show" : "hide") :
   (iState ? "visible" : "hidden");
}

<!--Drop down menu-->
	function setVisibility(id, visibility) {
	document.getElementById(id).style.display = visibility;
	}



		jQuery(document).ready(function() {
			
			jQuery("#map-container AREA").mouseover(function(){

				
				//$("#cenCir").triggerHandler("mouseout");

				var regionMap = '.'+$(this).attr('id')+'-map';
				var regionList = '.'+$(this).attr('id')+'-list';
		
				//alert($(this).attr('id'));
				$(".cenCir-list").css('opacity', '0.2');
				$(".cenCir-list").css('display', 'none');
				$("img.cenCir-map").css('display', 'none');
				$(".cenCir-list").css('opacity', '0.2');
							
				jQuery(regionMap).css('display', 'inline');
				
				// Check if a click event has occured and only change the Region hover state accodringly
				if (! jQuery('#practice-container ul').hasClass('selected')) {
					//jQuery(regionList).css('display', 'inline');
					
					jQuery(".north-list,.northWest-list,.scotland-list,.cenCir-list").css("opacity","0.2");
					jQuery(".north-list,.northWest-list,.scotland-list,.cenCir-list").css("display","none");
					
					//jQuery(regionList).fadeIn("slow");
					//jQuery(regionList).css('display', 'inline');
					jQuery(regionList).css('display', 'inline');
					jQuery(regionList).animate({  opacity: 1}, 1000 )

					
				}
			}).mouseout(function(){
				var regionMap = '.'+$(this).attr('id')+'-map';
				var regionList = '.'+$(this).attr('id')+'-list';
				//
				// Check if a click event has occured and only change the Region hover state accodringly

				//alert($(this).attr('id'));


				if (! jQuery(regionMap).hasClass('selected')) {
					jQuery(regionMap).css('display', 'none');
					$("img.cenCir-map").css('display', 'inline');
					$(".north-list,.northWest-list,.scotland-list,.cenCir-list").css("opacity","0.2");
					$(".cenCir-list").css('display', 'inline');
		
					
					//$(".cenCir-list").animate({  opacity: 1}, 1000 )
				}

				// Check if a click event has occured and only change the Region hover state accodringly
				if (! jQuery('#practice-container ul').hasClass('selected')) {

jQuery(".north-list,.northWest-list,.scotland-list,.cenCir-list,.dfdf").css("opacity","0.2");

					jQuery(regionList).css('display', 'none');

	
	jQuery(".north-list,.northWest-list,.scotland-list,.cenCir-list").css("display","none");
//alert('f');


					//$("img.cenCir-map").fadeIn("slow");
					$("img.cenCir-map").css('display', 'inline');
					//$(".cenCir-list").css('opacity', '0.2');
					$(".cenCir-list").css('display', 'inline');
					$(".cenCir-list").animate({  opacity: 1}, 1000 )

				}
				//$("#cenCir").triggerHandler("mouseover");
				
				
			});


			$("#cenCir").triggerHandler("mouseover");
		
			//$("#cenCir").mouseout(function(){$(".cenCir-list").css('display', 'none');})


 			$("#cenCir").mouseover(function(){
// 				return false;
// 				//$(".cenCir-list").css('display', 'block');
// 				//$(".cenCir-list").fadeIn("slow");;
// 				//$("#cenCir").triggerHandler("mouseover");
 			});


// 			$("#map-container").mouseover(function(){
// 				//$(".cenCir-list").css('display', 'block');
// 				$("#cenCir").triggerHandler("mouseout");
// 			});



			//$(".cenCir-list").css('display', 'block');
// 			jQuery("#map-container AREA").click(function(){
// 				jQuery('#map-container img.region').removeClass('selected').css('display', 'none');
// 				jQuery('#practice-container ul').removeClass('selected').css('display', 'none');
// 				
// 				var regionMap = '.'+$(this).attr('id')+'-map';
// 				var regionList = '.'+$(this).attr('id')+'-list';
// 				jQuery(regionMap).addClass('selected').css('display', 'inline');
// 				jQuery(regionList).addClass('selected').css('display', 'inline');
// 			});

		});
		
<!--End Map-->



	//Initialize FAQ Accordian:
	ddaccordion.init({
		headerclass: "technology", //Shared CSS class name of headers group
		contentclass: "thelanguage", //Shared CSS class name of contents group
		revealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click", "clickgo", or "mouseover"
		mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover
		collapseprev: true, //Collapse previous content (so only one open at any time)? true/false 
		defaultexpanded: [0], //index of content(s) open by default [index1, index2, etc]. [] denotes no content.
		onemustopen: false, //Specify whether at least one header should be open always (so never all headers closed)
		animatedefault: false, //Should contents open by default be animated into view?
		persiststate: false, //persist state of opened contents within browser session?
		toggleclass: ["closedlanguage", "openlanguage"], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
		togglehtml: ["prefix", "", ""], //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
		animatespeed: "normal", //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"
		oninit:function(expandedindices){ //custom code to run when headers have initalized
			//do nothing
		},
		onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed
			//do nothing
		}
	})



//Other site confirmation
function external_site(site_address)
{
var site = site_address;
var r=confirm("You are now leaving eLetter to an external website. If this link does not work, please disable popup blocking on your web browser.");
if (r==true)
  {
  open(site);
  }
else
  {
  return false;
  }
}

