////////////////////////////////////////////////////////////////////////////////
//						                                                      //
//						                                                      //
//						                                                      //
// main script for wss homepage                                               //
//						                                                      //
// last update 05. januarv 2010                                               //
// (c) hans-dieter baran                                                      //
//						                                                      //
//			                       			                                  //
////////////////////////////////////////////////////////////////////////////////

// 05 JAN 2010: function "topNaviElementNumber" added                         //

////////////////////////////////////////////////////////////////////////////////



// script to change the top navigation bar                                    //


function topNaviElementNumber(gnElementId)
{
	window.document.getElementById(gnElementId).style.textDecoration="none";
}



// scripts to control the navigation bar                                      //


function navMouseOver(activeCell)
{

	window.document.getElementById(activeCell).bgColor="#FFFFCC";
}

function navMouseOut(activeCell)
{
	window.document.getElementById(activeCell).bgColor="";
}

function navMouseClick(activeCell)
{
	window.document.getElementById(activeCell).bgColor="green";
}


// script to change picture in second frame                                   //
// note: include gcImgPath="../../images/pics/xxxxx/" in navi frame !! //


function changeImage(gcImgName, gcImgWidth, gcImgHeight)
{
	gcImgPathName = gcImgPath + gcImgName;

	parent.ImgShow.document.imgLarge.src=gcImgPathName;
	parent.ImgShow.document.imgLarge.border=1;
	parent.ImgShow.document.imgLarge.width=gcImgWidth;
	parent.ImgShow.document.imgLarge.height=gcImgHeight;
	
	return;
}


// script to change image size                                               //


function changeImageToLarge(imgNameLarge,imgLargeWidth,imgLargeHeight)
{
	commandString1="window.document.imgLarge.src=imgPath + imgNameLarge";
	eval(commandString1);
	window.document.imgLarge.width = imgLargeWidth;
	window.document.imgLarge.height = imgLargeHeight;
}

// script to change image content                                            //

function ChangePicture(imgNameLarge,imgLargeWidth,imgLargeHeight)
{
	commandString1="window.document.imgDisplay.src=imgPath + imgNameLarge";
	eval(commandString1);
	window.document.imgDisplay.width = imgLargeWidth;
	window.document.imgDisplay.height = imgLargeHeight;
}


// scripts to open new window                                               //


function OpenNewWindow(WindowReference,Window,WindowParameters)
{
	commandString1="NewWindow=window.open(WindowReference, Window, WindowParameters)";
	eval(commandString1);
	NewWindow.focus();
	return false;
}

function OpenNewWindow2(WindowReference,Window,WindowParameters)
{
	commandString1="NewWindow=window.open(WindowReference, Window, WindowParameters)";
	eval(commandString1);
	NewWindow.focus();
}


function OpenNewWindow3(WindowReference, Window, WindowParameters)
{

	NewWindow = window.open(WindowReference, Window, WindowParameters);
	NewWindow.focus();

}


