			function addProducts(family,language,containerId) {
				$('#'+containerId).css('display','none');
				$.post(assetsPath+"/ajax/loadproducts.php", { 'family':family,'language':language },
					function(data){
						var response = $.parseJSON(data);
						if (response.success) {
							var productInfo = "";
							var p_family = response.family_name;
							for (var i in response.products) {
								var p_id		= response.products[i].id;
								var aco_id		= response.products[i].aco_id;
								var p_name		= response.products[i].name_capitalized;
								var p_descr		= response.products[i].description;

								$('<div>',{'id':'product_'+p_id,'class':'productBox'}).appendTo('#'+containerId);

								$('<div>',{'id':'product_image_'+p_id,'class':'p_image'}).appendTo('#product_'+p_id);
								$('<div>',{'id':'product_descr_'+p_id,'class':'p_descr'}).appendTo('#product_'+p_id);
								
								$('#product_image_'+p_id).html( "<img src='"+uploadedContentPath+"/products/ACO_"+aco_id+"_liten.jpg'>" );
								$('#product_descr_'+p_id).html( "<p class='p_productName "+p_family+"'>"+p_name+"</p><p class='p_productDescription'>"+p_descr+"</p>" );
							}
							$('#'+containerId).fadeIn('slow');
						}
						else {
							$('#'+containerId).html( "<b>error while loading products</b>:<br>"+response.error_descr );
						}
					}
				);
			}
			
			function addMovie(movie_id,language,containerId) {
				$('#'+containerId).html('');
				$('<div>',{'id':'movieBox_'+movie_id}).appendTo('#'+containerId);
				var flashObj = {};
				flashObj.swf_path = assetsPath+"/flash/jwplayer.swf";
				flashObj.container_id = containerId;
				flashObj.width = 560;
				flashObj.height = 335;
				flashObj.version = 9;
				flashObj.flashvars = {
						file: uploadedContentPath+"/media/"+lang+"/"+movie_id+".flv",
						image: uploadedContentPath+"/media/"+lang+"/"+movie_id+".jpg",
						frontcolor: 'ffffff',
						backcolor: '444444',
						screencolor: '000000',
						lightcolor: 'ffffff',
						autostart:false
					};
				addFlash( JSON.stringify(flashObj) );

				//$('#'+containerId).html( "<b>display video: "+movie_id +" with language "+language+" here</b>" );
			}
			
			function addOldStartBanner() {
				
			}
			
			function addFlash(flash_info_json) {
				var obj = $.parseJSON(flash_info_json);
				var flashvars = {};
				var params = {};
				var attributes = {};
				
				swfobject.embedSWF(
						obj.swf_path,
						obj.container_id,
						obj.width,
						obj.height,
						obj.version+".0.0",
						false,
						obj.flashvars,
						params,
						attributes
					);
			}
			
			function addLoadEvent(functioncall) {
				bodyLoad.push(functioncall);
			}
			
			function pageLoadedHandler() {
				for (var f in bodyLoad) {
					eval(bodyLoad[f]);
				}
				$('#pageFooter').css('display','none');
				$('#pageFooter').fadeIn('fast');
				/*
				if ( typeof $('.productBox a').lightBox == 'function') {
					$('.productBox a').lightBox();
				}*/
			}
			
			function FlashObject(swf_path,container_id,width,height,version) {
				this.swf_path = swf_path;
				this.container_id = container_id;
				this.width = width;
				this.height = height;
				this.version = version;
			}
