function show_page (file_path,winName,winParams) {

	var sBaseHref = document.getElementsByTagName("base")[0];
	if (sBaseHref) {
		var baseHref = sBaseHref.getAttribute("href");
		if (file_path.search(/http.+/) < 0) {
			file_path = baseHref+file_path;	
		}
	}
	
	newWindow = window.open(file_path,winName,winParams);
	
	newWindow.focus();	
	if (newWindow.scrollbars && newWindow.scrollbars.visible == false)
	 newWindow.scrollbars.visible = true;
}	

function pausecomp(millis)
{
	var date = new Date();
	var curDate = null;
	
	do { curDate = new Date(); }
	while(curDate-date < millis);
} 


function getPageLocation() {
  return window.location.href;
}



function isReady()
{
    return true;
}

function setPageID(pageID)
{
	$.ajax({
  		url: 'index.php?type=78&dataType=1&locactionUid=' + pageID,
  		success: function(data) {
    		$('#col3_wide_content_global_clearing_breaker').html(data);
  		},
  		dataType: "html"
	});
	
	$.ajax({
  		url: 'index.php?type=78&dataType=2&locactionUid=' + pageID,
  		success: function(data) {
    		$('#col2_content').html(data);
  		},
  		dataType: "html"
	});
}

$(document).ready(function() {

   // Keyfacts Multiple Open Accordion
   
   var accordeon = $('.accordeon');
   
   if(accordeon[0]) {

      accordeon.each(function(index,el){
         //var content = el.getElement('div.box_content');
         var content = $('.box_content',this).eq(0);
         var toggler = $('.box_header',this).eq(0);

         if (index > 0) {
         content.slideUp('fast', function() {
            // Animation complete.
         });
         }
         
         //toggler.click(function(e) {
         //   content.toggle();
         //});         
         
      });   
   }

});
      
