var state = 0;

function toggleTipsEnVenn() {

	if( state == 0 ) {
	
		state = 1;

		new Effect.SlideDown(document.getElementById("tipsContainer"));

	} else {
	
		state = 0;
	
		new Effect.SlideUp(document.getElementById("tipsContainer"));
	}	

}

function hfShowFilm() {
	
	jQuery("div.artkat41 a.lesmer").html('<img src="/gfx/se-film.jpg" alt="Se film" />');
	jQuery("div.lesmer").css({'display' : 'block','padding-left':'30px','padding-bottom':'5px'});
	
}

function getQueryTimer() {

	jQuery.post('/code/querytimer.php' , {'reset':0} , function(data) {
	
		if(data == "show") {
		
			showQuery();
			window.setTimeout("getQueryTimer()",30000);
		
		} 
		
		else if( data == "hide" ) {
		
		} else {
		
			window.setTimeout("getQueryTimer()",10000);
		
		}
	
	});

}

function showQuery() {

	var winRef = window.open('/blocks/querydialog.php' , 'queryWindow' , 'width=475,height=570,scrollbars=1,location=0,menubar=0,toolbar=0,resizable=0');
	
	try {
		if(!winRef) {
			jQuery("#undersokelseContainer").show();
		}
	} catch(Error) {}

}

function openQuery() {
	jQuery("#undersokelseContainer").hide();
	window.open('/blocks/querydialog.php' , 'queryWindow' , 'width=475,height=600,scrollbars=1,location=0,menubar=0,toolbar=0,resizable=0');
}

function rejectQuery() {
}

function showQueryDialog() {

}

jQuery(document).ready(function() {


});

