jQuery(document).ready(function() {
	// {{ Search field label

	var search_label = jQuery('#searchform label').text();

	jQuery('#Search').val(search_label);

	jQuery('#Search').focus(function () {
		if (jQuery(this).val() == search_label) {
			jQuery(this).val('');
		}
	})

	jQuery('#Search').blur(function () {
		if (jQuery(this).val() == '') {
			jQuery(this).val(search_label);
		}
	})

	// }}

	
	// {{ Case Story stuff

	CS.createLinks();
	CS.change(CS.cur_casestory_index, false);
	CS.beginWalking();

	// }}


	// {{ Tag cloud

    swfobject.addDomLoadEvent(function() {
    	swfobject.embedSWF(
			"themes/ff/s/text_and_image_cloud.swf",
			"tagcloud",
			"220",
			"200",
			"9",
			"themes/ff/s/expressInstall.swf",
			{
				cloud_data: "../../../home/XMLCloudData",
				tcolor: "0x999999",
				tcolor2: "0x999999",
				hicolor: "0xFF0019",
				tspeed: "85",
				fontFace: "Arial"
			},
			{
				wmode: "window",
				menu: "false",
				quality: "best"
			}
        );
    });

	// }}
});
