  

// ----------------------------------------------------------------------------------------
// the following are some simple scripts, which enhance the functionality of the site
// if you encounter any problems or have questions
// please refer to Cedric Haindl of Haindl Mediendesign http://www.haindl.ch cedi@haindl.ch
//
// please also note, that the path to the images has to be correct!
// ----------------------------------------------------------------------------------------


var selectedtopic = 0;
var topicsPresent = 10;
var path = "";

URL = location.href
// if (URL.indexOf("/de/") != -1) path = "";

if (document.images)  {
	picturesDef = new Array();
		for (i = 1; i <= topicsPresent ; i++)   {
			picturesDef[i] = new Image();
			picturesDef[i].src = path + "/plugin/image/sgci/SGCI_home09_en_"  + i + "_n.gif";}
	
	picturesHi = new Array();
		for (i = 1; i <= topicsPresent; i++)   {
			picturesHi[i] = new Image();
			picturesHi[i].src = path + "/plugin/image/sgci/SGCI_home09_en_"  + i + "_h.gif";}
}

function changePic(picNum)   {
	if (document.images)  {
	eval("document.topic" + picNum + ".src = picturesHi[picNum].src;");
    }        
}


function resetPic(picNum)   {
	if (document.images)  {
		eval("document.topic" + picNum + ".src = picturesDef[picNum].src;");
	}
}

function off(LinkObject)
{
//LinkObject.style.background = '#FFFFFF';
//LinkObject.style.cursor = 'default';
}
function on(LinkObject)
{
//LinkObject.style.background = '#F7F7F7';
//LinkObject.style.cursor = 'hand';
}


