(function($) {
	$(document).ready(function(){
		//Hide (Collapse) the toggle containers on load
		// $(".views-field-field-answer").hide(); 
	
		//Switch the "Open" and "Close" state per click then slide up/down (depending on open/close state)
		$(".view-id-frequently_asked_questions .views-field-title").toggle(
			function() {
				$(this).next().slideDown();
			},
			function() {
				$(this).next().slideUp();
			}
		);
	});
	
})(jQuery);;
var W3CDOM = (document.createElement && document.getElementsByTagName);

function initFileUploads() {
	if (!W3CDOM) return;
	var fakeFileUpload = document.createElement('div');
	fakeFileUpload.className = 'fakefile';
	fakeFileUpload.appendChild(document.createElement('input'));
	var image = document.createElement('img');
	image.src='pix/button_select.gif';
	fakeFileUpload.appendChild(image);
	var x = document.getElementsByTagName('input');
	for (var i=0;i<x.length;i++) {
		if (x[i].type != 'file') continue;
		if (x[i].parentNode.id != 'webform-component-file-attachment') continue;
		x[i].className = 'file hidden';
		var clone = fakeFileUpload.cloneNode(true);
		x[i].parentNode.appendChild(clone);
		x[i].relatedElement = clone.getElementsByTagName('input')[0];
		x[i].onchange = x[i].onmouseout = function () {
			this.relatedElement.value = this.value;
		}
	}
}
(function($) {
	$(document).ready(function(){
		initFileUploads();
	});
})(jQuery);
;

