/*

	this file  defines exceptions and specific
	details belonging to one site only. it should
	be overridden for each design that extends 3c2rs.

*/

	// some config. window.config is defined
	// in 3c2rs.js
	window.config.animspeed = 10000;
	window.config.fadespeed = 2000;

	// when ready, activate some hovervoodoo

	/*
		//the oneclick functionakity has been canceled 20101214
		
		jQuery(document).ready(function() {
			jQuery('.oneclick').each( function (idx,elm) {
				if (jQuery("a",this).not(".email").not(".author").size()) {
					//alert('binding linked oneclick');
					jQuery(this).bind('click.oneclick',function(event) {
						if (event.target.nodeName.toLowerCase()!="a") {
							var jqlink = jQuery("a",this).not(".email").not(".author").eq(0);
							if (!jqlink.attr("target")) {
								document.location.href=jqlink.attr("href");
							} else {
								var wdw=window.open(jqlink.attr("href"),jqlink.attr("target"));
							}
						}
					}).bind('mouseover.oneclick',function() {
						jQuery(this).addClass("hover");
						jQuery("a",this).not(".email").not(".author").eq(0).addClass("hover")
					}).bind('mouseout.oneclick',function() {
						jQuery(this).removeClass("hover");
						jQuery("a",this).not(".email").not(".author").eq(0).removeClass("hover")
					});
				} else {
					//alert('ignoring oneclick without links');
					jQuery(this).removeClass('oneclick');
				}
			});
		});

	*/
	
	jQuery(document).ready(function() {
		jQuery('dl.foldable dt span').bind('click.foldable',function(event) {
			var ddelm = jQuery(this).parent().toggleClass("open").next();
			while (ddelm.size() && ddelm.get(0).nodeName.toLowerCase()=="dd") {
				ddelm.toggleClass("hide");
				ddelm=ddelm.next();
			}
		})
	});

