// -----------------------------------------------------------------
//
// TCD New Architecture Website 
// Global Fields, Methods, Events, Objects
//
//
// -----------------------------------------------------------------

// -----------------------------------------------------------------
// FIELDS
// -----------------------------------------------------------------



// -----------------------------------------------------------------
// EVENTS
// -----------------------------------------------------------------

// -----------------------------------------------------------------
// Event: Window.onload = setTimeout(initOverLabels, 50) && Custom.init;
// -----------------------------------------------------------------
function addLoadEvent(func) { 
  var oldonload = window.onload; 
  if (typeof window.onload != 'function') { 
    window.onload = func; 
  } else { 
    window.onload = function() { 
      if (oldonload) { 
        oldonload(); 
      } 
      func(); 
    } 
  } 
} 



// -----------------------------------------------------------------
// 	METHODS
// -----------------------------------------------------------------

function LoadTextFillers(){ 
      try {
           ResetSlideStates();
     }
  catch (ex){
	   } 
  try {
   setTimeout(initOverLabels, 50); 
  }
  catch (ex) { }
  try {
   CustomSelect.init();
  }
  catch (ex) { }
  try {
   CustomSelect2.init();
  }
  catch (ex) { }
  try {
   CustomSelect3.init();   
  }
  catch (ex) { }
//   try {slider.init('slider');}
//   catch (ex){
//	   }
   
    

   try {JSFX_StartEffects();}
   catch (ex1){
	   }
   
   try {regErrors();}
   catch (ex2){
	   }
}
function ChangePage(asParams){
		//alert("some alert here");
		alert("params : " + asParams);
}
function TCDSubmitForm()
{
    TCDPreSubmit();
    document.TCDForm.submit();
}
function TCDPreSubmit()
{
}
function HideShowDynamic()
{
    try{ RegistrationCheckParentEmailDisplay(); }catch(ex1){}
}
// -----------------------------------------------------------------
// 	METHODS
// -----------------------------------------------------------------


// -----------------------------------------------------------------
// 	Script Run at Startup
// -----------------------------------------------------------------
 addLoadEvent(CustomCheckRadio.init); 
 addLoadEvent(LoadTextFillers);
 addLoadEvent(HideShowDynamic);
// -----------------------------------------------------------------
// 	Script Run at Startup
// -----------------------------------------------------------------



