function bgcolor(typ,bgc)
{
	typ.style.backgroundColor=bgc;
	
}	

function textcolor(typ,col)
{
	typ.style.color=col;
	
}	 




$(document).ready(function(){
   // jQuery-Beispiele hier einfügen

						$('#programm1').click(function()
								{	
									einblenden(this.id)
								}
						  );
						
						
						 $('#programm2').click(function()
						 		{
   								einblenden(this.id)
								}
							);
						 
						$('#programm3').click(function()
						 		{
   								einblenden(this.id)
								}
							);
						
						$('#programm4').click(function()
						 		{
   								einblenden(this.id)
								}
							);	
							
						$('#programm5').click(function()
						 		{
   								einblenden(this.id)
								}
							);	
							
						$('#programm6').click(function()
						 		{
   								einblenden(this.id)
								}
							);
						
						$('#programm7').click(function()
						 		{
   								einblenden(this.id)
								}
							);	
						
						$('#programm8').click(function()
						 		{
   								einblenden(this.id)
								}
							);	
																		
						$('#close').click(function()
								{
   								$('#window').hide("slow");
									$('#overlay').css("display","none");
									return false;
 								}
							);	
							
						/* $("#window").resizable(); */
						$("#window").draggable({ cursor: 'move' });
						
	
							
							
			 });	 

			function einblenden(name)
			{
				var div = '#windowcontent';
				var id =  name.substr(8, 1);
			 	$('#window').show("slow"); 
				$('#overlay').css("display","block");
				 
				$(div+id).show();
				for (var i = 1; i <= 8; i++)
				{
					if (i!=id)
					{
			 			$(div+i).hide();
					} 
				}	
				
				
			

				
				
			} 
