/* -- BEGIN: sIFR --------------------------------------------------------- */

var centurygothic  = { src: './flash/centurygothic2.swf' };
sIFR.activate(centurygothic);
sIFR.replace(centurygothic, { 
	selector: '.ContentHeader h1', 
	css :[ '.sIFR-root { font-size: 24px; color: #000000; leading: -2; font-weight: normal;}' ],
	wmode: 'transparent'
});
sIFR.replace(centurygothic, { 
	selector: '.ContentArea .contactheadline', 
	css :[ '.sIFR-root { font-size: 14px; color: #000000; font-weight: bold; }' ],
	wmode: 'transparent'
});
sIFR.replace(centurygothic, { 
	selector: '.ContentArea .contactheadline2', 
	css :[ '.sIFR-root { font-size: 14px; color: #000000; font-weight: bold; }' ],
	wmode: 'transparent'
});
sIFR.replace(centurygothic, { 
	selector: '.ContentArea h1', 
	css :[ '.sIFR-root { font-size: 18px; text-transform: uppercase; color: #000000; }' ],
	wmode: 'transparent',
	tuneHeight : -5
});
//sIFR.replace(akzidenz, { 
//	selector: '.ContentArea .header H2', 
//	css :[ '.sIFR-root { font-size: 19px; color: #FFFFFF; }' ],
//	wmode: 'transparent',
//	tuneHeight : -5
//});

/* ----------------------------------------------------------- END: sIFR -- */

	
/* -- BEGIN: DHTMLMenu ---------------------------------------------------- */

/*var DHTMLMenu = Class.create(PageWidget, {
	initialize : function(menu_id, config) {
		this.node = $(menu_id);

		// bail out if the menu doesn't exist on this page
		if (!this.node || this.initialized) return;

		this.setOptions(config);

		this.submenus = { };

		// get all the top-level LIs in the menu and iterate over them, adding event handlers
		$(menu_id).immediateDescendants().each(function(item){
			item.observe("mouseover", this.mouseoverHandler.bindAsEventListener(this, item));
			item.observe("mouseout", this.mouseoutHandler.bindAsEventListener(this, item));

			this.submenus[item.id] = item.down().next();
		}.bind(this));

	},

	initialized : false,
	node : null,              // holds the DOM node of the menu
	menu_hide_timeout : null, // the JS timeout ID for hiding the menu
	menu_show_timeout : null, // the JS timeout ID for showing the menu
	last_menu_on : null,      // the DOM object of the waiting to close

	mouseoverHandler : function(e, item) {
		// stop the menu from closing/opening (this gets called a lot)
		clearTimeout(this.menu_hide_timeout);
		clearTimeout(this.menu_show_timeout);

		// if we're mousing over the menu for the first time, set a timeout so the menu doesn't show up accidentally.
		if (this.last_menu_on == null) {
			this.menu_show_timeout = setTimeout(this.showMenu.bind(this, item),	this.CONFIG["menu_show_time"]);

		// if there's already a menu on, then we know the user is expecting to see another one, so show it immediately.
		} else if (this.last_menu_on != item) {
			this.showMenu(item);
		}
	},

	mouseoutHandler : function(e, item) {
		// clear the existing show/hide timeouts (this gets called a lot)
		clearTimeout(this.menu_hide_timeout);
		clearTimeout(this.menu_show_timeout);

		// only "close" the menu in a little bit if we're over a menu with submenus, otherwise, close it right now
		if (this.submenus[item.id]) {
			this.menu_hide_timeout = setTimeout(this.hideMenu.bind(this, item),	this.CONFIG["menu_hide_time"]);

		} else {
			this.hideMenu(item);
		}
	},

	// shows the menu
	showMenu : function(item) {
		// hide the last menu shown
		if (this.last_menu_on != null) { this.hideMenu(this.last_menu_on); }

		// adding the "hover" class turns on the menu
		item.addClassName(this.CONFIG['hover_class']);

		// insert the IFRAME for IE
		if (Prototype.Browser.IE6) {
			// get at the submenu for dimension info
			var submenu = this.submenus[item.id];
			if (submenu) {
				var iframe = submenu.next();

				if (submenu && !iframe) {
					this.createIframe(item, {
						'left'   : submenu.offsetLeft + "px",
						'height' : submenu.offsetHeight + "px",
						'width'  : submenu.offsetWidth + "px"
					});
				}
			}
		}

		// store the last item on
		this.last_menu_on = item;

	}, // END: showMenu()

	// hide the menu
	hideMenu : function(item) {
		// nothing to hide
		if (item == null) return;

		// removing the "hover" class turns off the menu
		item.removeClassName(this.CONFIG['hover_class']);

		// remove the IFRAME for IE
		if (Prototype.Browser.IE6) {
			var submenu = this.submenus[item.id];
			if (submenu) {
				var iframe = submenu.next();
				if (submenu && iframe) {
					item.removeChild(iframe);
				}
			}
		}

		this.last_menu_on = null;
	}, // END: hideMenu()

	// makes an IFRAME the exact size of the menu so elements underneath it are covered
	// (IE-only)
	createIframe : function(node, style) {
		node.insert({ 'bottom' : ('<iframe class="' + this.CONFIG['iframe_class'] + '" frameborder="0" scrolling="no" style="width: #{width}; height: #{height}; left: #{left};"><\/iframe>').interpolate(style) } );
	}
});

DHTMLMenu.CONFIG = {
	submenu_class : "SubMenu", // the DOM class of the menu container
	hover_class : "Hover", // the class to give the top-level LI to "activate" the menu
	menu_hide_time : 500, // time to keep the menus on after mouseout; in ms
	menu_show_time : 100, // threshold o
	iframe_class : "IframeFix"
};

fixWebKitInheritanceBug(DHTMLMenu); */

/* ------------------------------------------------------ END: DHTMLMenu -- */

/*document.observe('dom:loaded', function(){
	$$(".DHTMLMenu").each(function(menu) {
		new DHTMLMenu(menu.id);
	});
});*/



/* ------------------------------------------------------------------------ */


/*document.observe('dom:loaded', function(){
	$$('a.lightwindow').each(function(x) {
		x.writeAttribute("rel", "Gallery[Images]");
	});
});*/

