// Make calls to other operations from this file. 


// fired at the end of the page once all html has loaded
function onDOMload () {
	if(typeof sIFR == "function"){
		switchFonts();
	};
	if(typeof buildTransitions == "function") {
		buildTransitions();
	};
};

// fired once all content has loaded
function onPageLoad () {
	
};



document.onload = onPageLoad();

function printPage () {
	window.print();
}

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      oldonload();
      func();
    }
  }
}



function openDir( form ) { 

	var newIndex = form.sort.selectedIndex; 

	if ( newIndex == 0 ) { 

		alert( "Please select a location!" ); 

	} else { 

		cururl = form.sort.options[ newIndex ].value; 

		window.location.assign( cururl ); 

	} 

} 
