﻿function changestyle(container,range)
	{	
		for(var i = 1; i <= range; i++) {
			var sub = container.length -2;
			var id = container.substring(0,sub);
			if(i< 10) id += '0'+ i;
			else id += i;
			document.getElementById(id).style.display="none";
		}
		document.getElementById(container).style.display="block";
	}



	function colorlinks(obj,e)
	{
	if(e)
	for (var i = 0; i < document.getElementById('jurylinkscontainer').getElementsByTagName("a").length; i++) {
	    document.getElementById('jurylinkscontainer').getElementsByTagName("a")[i].style.color = '#CDBB7C';
	  }

	 obj.style.color = '#2596d4';
	}
	
	
	function colorforback(obj,e)
	{
	if(e)
	for (var i = 0; i < document.getElementById('jurylinkscontainer').getElementsByTagName("a").length; i++) {
	    document.getElementById('jurylinkscontainer').getElementsByTagName("a")[i].style.color = '#CDBB7C';
	  }

	 document.getElementById(obj).style.color = '#2596d4';
	}
	
	
	// Funktion für das Popup-Window: Foto der Jury, 600 x 837
	var newwindow;
	function popupwindow(url)
	{
		newwindow=window.open(url,'name','height=600,width=837,top=120, left=295;scrollbars=no,resizable=yes');
		newwindow.close();
		newwindow=window.open(url,'name','height=600,width=837,top=120, left=295;scrollbars=no,resizable=yes');
		if (window.focus) {newwindow.focus()}

	}


	// Funktion für das Popup-Window: WMV Film
	var newwindow;
	function popupwindowMovie(url)
	{
		newwindow=window.open(url,'name','height=250,width=340,top=120, left=295;scrollbars=no,resizable=yes');
		newwindow.close();
		newwindow=window.open(url,'name','height=250,width=340,top=120, left=295;scrollbars=no,resizable=yes');
		if (window.focus) {newwindow.focus()}
	}


	// Funktion für das Popup-Window: SCOOP!-Titelbild
	var newwindow;
	function popupwindowTitelbild(url)
	{
		newwindow=window.open(url,'name','height=600,width=500,top=50, left=195;scrollbars=no,resizable=yes');
		newwindow.close();
		newwindow=window.open(url,'name','height=600,width=500,top=50, left=195;scrollbars=no,resizable=yes');
		if (window.focus) {newwindow.focus()}
	}	


		
	
// 	
// 
// function colorlinks()
// 	{
// 
// 			
// 				
// 				navRoot = document.getElementById("jurylinkcontainer");				
// 				if (navRoot)
// 				
// 					{
// 						for (i=0; i<navRoot.childNodes.length;  i++)
// 							{
// 								node = navRoot.childNodes[i];
// 								alert(navRoot.childNodes[i]);
// 								
// 								if (node.nodeName=="a")
// 								
// 										{
// 
// 											this.style.color='#aa9';
// 										}
// 									
// 							}
// 					}
// 			
// 	}
// 
// 
// 						