// Behavior of the downloads page
// Author: 		Roman Simecek
// Company: 	ScreenConcept

 $(document).ready(function(){
	$('#Downloads * .item_download_body').hide();
	$('#Downloads * .title_download * a.item_download_closed').click(function(event){
		event.preventDefault();
		var test = $(this).attr('class');
		if(test == "item_download_closed"){
			$(this).attr('style', 'background-position: bottom left;');
			$(this).removeAttr('class');
			$(this).addClass('item_download_opend');
			$(this).parent().parent().parent().children('.item_download_body').show();
			// alert($(this).attr('class'));
		}else{
			$(this).removeAttr('class');
			$(this).addClass('item_download_closed');
			$(this).removeAttr('style');
			$(this).parent().parent().parent().children('.item_download_body').hide();
		}
	});
 });
