function winOpen(Url,ID)
{
	window.open(Url+'?ID='+ID ,'Lexicon','location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,WIDTH=500,HEIGHT=500')
}

function winOpen2(Url)
{
	window.open(Url,'Lexicon','location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,WIDTH=420,HEIGHT=200')
}

function winOpenGallery(Url,ID)
{
	window.open(Url+'?ID='+ ID,'Lexicon','location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,WIDTH=400,HEIGHT=300')
}

function winOpenGallery2(Url,ID)
{
	window.open(Url+'?ID='+ ID,'Lexicon','location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,WIDTH=450,HEIGHT=460')
}

function winOpenGalleryFilm(Url)
{
	window.open(Url,'Lexicon','location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,WIDTH=360,HEIGHT=310')
}

function winOpenGalleryFilm2(Url)
{
	window.open(Url,'Lexicon','location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,WIDTH=690,HEIGHT=585')
}

function winOpenGalleryPicture(Url)
{
	window.open(Url,'Lexicon','location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,WIDTH=360,HEIGHT=305')
}

//function winOpenGallery(Url,ID,strLangCode)
//{
//	window.open(Url+'?ID='+ ID + '&Lang=' + strLangCode,'Lexicon','location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,WIDTH=400,HEIGHT=300')
//}

function winOpenGalleryProtest(Url,ID,strLangCode)
{
	window.open(Url+'?ID='+ ID + '&Lang=' + strLangCode,'Lexicon','location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,WIDTH=570,HEIGHT=550')
}

function ShowPic(strPIC)
{
	window.open(strPIC,'_blank','location=no,toolbar=no,menubar=no,scrollbars=Auto,resizable=yes,WIDTH=400,HEIGHT=400')
}


function SwitchMenu(obj)
	{

	try{
		
		if (document.all('sub_' + obj).style.display == 'none')
			{
			//alert('true');
			document.all('sub_' + obj).style.display = '';
			//document.all('img_' + obj).src = 'imgs/answer_bullet.gif';
			//document.all('img_' + obj).alt = '1';

			}
		else
			{
			//alert('false');
			document.all('sub_' + obj).style.display = 'none';
			//document.all('img_' + obj).src = 'imgs/question_bullet.gif';
			//document.all('img_' + obj).alt = '1';
			}
		}
	catch(e){}
	}
	
	function SwitchMenuColors(obj)
	{

	try{
		
		if (document.all('sub_' + obj).style.display == 'none')
			{
			/*alert('true');
			var ss = document.getElementById('search_suggest');
			ss.style.display = '';
			ss.innerHTML = '';
			
			var suggest = '<div id="line_' + i + '" align="right" onmouseover="javascript:suggestOver(this);" ';			
			suggest += 'onclick="javascript:setSearch(this.innerHTML);HideDiv();" ';	
			
			if (SelectedDiv == i){	
				suggest += 'class="suggest_link_over">' + str[i] + '</div>';	
				//alert('SelectedDiv:' + SelectedDiv + 'i:' + i);	
			}
			else
			{
				suggest += 'class="suggest_link">' + str[i] + '</div>';			
			}
			
			ss.innerHTML += suggest;
			
			
			*/
			if (obj == '1'){
				document.all('sub_1').style.display = '';
				document.all('sub_2').style.display = 'none';
			}else{
				document.all('sub_1').style.display = 'none';
				document.all('sub_2').style.display = '';
			}
			//document.all('img_' + obj).src = 'imgs/answer_bullet.gif';
			//document.all('img_' + obj).alt = '1';
			

			}
		else
			{
			//alert('false');
			document.all('sub_1').style.display = 'none';
			document.all('sub_2').style.display = 'none';
			//document.all('img_' + obj).src = 'imgs/question_bullet.gif';
			//document.all('img_' + obj).alt = '1';
			}
		}
	catch(e){}
	}
	
	/*function suggestOver(div_value) {	
	//alert('Over');
		for(i=0; ((i < DivCount)); i++) {		
			div_valueTemp = document.getElementById('line_' + i);
			div_valueTemp.className = 'suggest_link';
			
			//alert('div:' + i + ' class:' + div_value.className);
		}
		div_value.className = 'suggest_link_over';
		//SelectedDiv = i
		//GetSelectedDiv();
	}
	//Mouse out function
	function suggestOut(div_value) {	
		//alert('OUT');
		div_value.className = 'suggest_link';
	}*/
	
	
function Open_PopupPrint(DynamicContentID)
	{
		 var ScreenWidth=window.screen.width;
	   	 var ScreenHeight=window.screen.height;
		 var movefromedge=0;
		 placementx=(ScreenWidth/2)-((550)/2);
		 placementy=(ScreenHeight/2)-((600+50)/2);
	     address = "ShowDoc_Print.asp?DynamicContentID=" + DynamicContentID
	     prm = "width=550,height=600,toolbar=0,location=0,directories=0,status=1,scrollbars=auto,menubar=0,resizable=1,left="+placementx+",top="+placementy+",screenX="+placementx+",screenY="+placementy+","
	     WinPop=window.open(address,'window1',prm);
	}		
	
	function ChangeBGColor(obj){
		document.location.href = 'ChangeBGColor.asp?BGColor=' + obj ;
		
	}
	
	function ChangeFontColor(obj){
		document.location.href = 'ChangeFontColor.asp?FontColor=' + obj ;
	}
	
	
	function SwitchMenuTxtColor(obj)
	{
	try{
		
		if (document.all('sub_' + obj).style.display == 'none')
			{
			//alert('true');
			document.all('sub_' + obj).style.display = '';
			//document.all('img_' + obj).src = 'imgs/answer_bullet.gif';
			//document.all('img_' + obj).alt = '1';

			}
		else
			{
			//alert('false');
			document.all('sub_' + obj).style.display = 'none';
			//document.all('img_' + obj).src = 'imgs/question_bullet.gif';
			//document.all('img_' + obj).alt = '1';
			}
		}
	catch(e){}
	}
	
	function winFormOpen(Url)
{
	window.open(Url,'Lexicon','location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,WIDTH=500,HEIGHT=500')
}



