/*
GENERAL EVENT HANDLER
v1.0 by Orr Siloni. December 2004.
*/

/* === ONLOAD ==================================== */
window.onload = geh_fOnLoad;

function geh_fOnLoad(){
	// initialize the floating bar
	if (typeof(fb_vFloatingBarState)!="undefined"){
		fb_fFloatingBarInit();
		// start other events:
		window.onscroll = geh_fOnScroll;
		window.onresize = geh_fOnResize;
	}
	// show the text above the form fields (only in contact pages)
	if (typeof(ct_vIsFormState)!="undefined"){ ct_fShowContactText(); }
}

/* === ONSCROLL ==================================== */
function geh_fOnScroll(){
	// activate the scrolling event for the floating bar
	if (typeof(fb_vFloatingBarState)!="undefined" && fb_vFloatingBarState){ fb_fPlaceBar(); }
	// activate the scrolling for the bsmart scrolling panel ('leshonit') which is in BSmart.js
	if (typeof(adjustDynamicPanel)!="undefined"){ adjustDynamicPanel('RTL'); }
}

/* === ONRESIZE ==================================== */
function geh_fOnResize(){
	// activate the resize event for the floating bar
	if (typeof(fb_vFloatingBarState)!="undefined" && fb_vFloatingBarState){ fb_fPlaceBar(); }
}

