function agreeDisclaimer() {
	$.cookie('disclaimer', 'read');
	setTimeout("window.location = 'index.php'", 1250);
}

// popupWindow function
// This is where you set your specific height & width etc... for your popups.
function openPopup(url,popType) {
	if (popType==1) {
		window.open(url, 'popupwindow', 'width=630,height=800,top=5,left=5,scrollbars,resizable'); 
	} else {
		window.open(url);
		return false; 
	}
}

$(document).ready(function(){
						   
	fileCntVar = 1;

	$("form#fil").hide();
	// Popups and external links.
	$("a.popup").click(function(){
		var url = this.href;
		openPopup(url,1);
		return false;
		})
	
	
		$("a#switch-fil").click(function(){
		/* if button is clicked when "up" */
		if (fileCntVar == 1){

			/* button toggle value */
			fileCntVar = 0;
			$("#hs-file-group").hide();
			$("form#fil").show();
			
 	
		
		/* if button is clicked when "down" */
		} else if (fileCntVar == 0) {
			fileCntVar = 1;
			$("form#dir").hide();
			$("form#fil").hide();
			
 			$(this).removeClass("on");
		}
		/*reset the other button to "up" state*/
		grpCntVar = 1;
		
		return false;
	});
		
		
	
});
