function reverse(obj, bgColor, ftColor) {
   	if (document.getElementById) {
		obj.style.backgroundColor = bgColor;
		obj.style.color = ftColor;
	}
}

function on(obj) {
   	if (document.getElementById) {
		obj.src = "img/knapp_paa.gif";		
	}}

function off(obj) {
   	if (document.getElementById) {
		obj.src = "img/knapp_av.gif";		
	}}

function imgPreload()
{  
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=imgPreload.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function imgSwap(obj, image)
{
    if (document.getElementById)
    {
	    obj.src = image;		
	}	
}

function imgSwap2(obj, image)
{
	if (document.getElementById){
		document.getElementById(obj).src = image;		
	}	
}

function magnifyvideo(sup_name,file_name, width, height) {
	
    if (!window.cacheserver || cacheserver == '')
        cacheserver = 'localhost';
	
    var imgsrc = file_name; //'img/' + file_name + 'over.jpg';
	
    if (width == 0 || height == 0) var imgdiv = '<img src="' + imgsrc + '" style="min-width: 50px; min-height: 50px;" class="loading">';
    else var imgdiv = '<img src="' + imgsrc + '" style="width: ' + width + '; height: ' + height + '"; class="loading">';

    var imgphotog = '<div style="font-size: 1.1em; color: #000000; margin-top: 2px;">' + sup_name + '</div>';

    return overlib(imgdiv + imgphotog, width, 10, ABOVE, HAUTO, VAUTO, BGCOLOR, '#B8B8B8', FGCOLOR, '#B8B8B8');
}

function resizeA2B(a, b)
{
	if (document.getElementById){

		aa = document.getElementById(a);
		bb = document.getElementById(b);
		aa.style.height = bb.offsetHeight + 10;
	}
}