/*
 * Purpose : Provide necessary javascript functions for www.teclux.fi and it's subpages
 * Used-by : /common/templates/template09.html indirectly ( /scripts/php/sitewrapper.class.php )
 * Uses    : -
 * Notes   : Ideakuvasto functions used in ideakuvasto http://www.teclux.fi/?p=ideakuvastocoverpage, popup used in http://www.teclux.fi/?p=yhteystiedot
 */

function ideakuvastocategorymouseover(sobj)
{
	var obj = document.getElementById(sobj);
	//obj.innerHTML = "tdkdkd";
	obj.style.visibility = "hidden";
	//obj.bgColor = "rgb(113,73,152)";
	var textobj = document.getElementById(sobj+"_title");
	//textobj.bgColor = "rgb(113,73,152)";
	textobj.style.backgroundColor = "rgb(113,73,152)";
	//textobj.innerHTML = "hdhdhdh";
	//dobj.bgColor = "rgb(113,73,152)";
}

function ideakuvastocategorymouseout(sobj)
{
	var current = document.getElementById("key");
	if(current.value == sobj)
	{
	}else{
		var obj = document.getElementById(current.value);
		var textobj = document.getElementById(current.value+"_title");
		current.value = sobj;
		obj.style.visibility = "visible";
		
		textobj.style.backgroundColor = "transparent";
	}
}

function popup(mylink, windowname)
{
	if (! window.focus)return true;
	var href;
	if (typeof(mylink) == 'string')
	   href=mylink;
	else
	   href=mylink.href;
	window.open(href, windowname, 'width=655,height=495,scrollbars=no');
	return false;
}

