
function imgSwap(obj, image) {
if (document.getElementById) {
		obj.src = image;		
	}	
}


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 showCursorHand(obj){
	if (document.getElementById){
		obj.style.cursor = 'pointer';
	}
}


function showCursorDefault(obj){
	if (document.getElementById){
		obj.style.cursor = 'default';
	}
}


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: #B0B9C6; margin-top: 2px;">' + sup_name + '</div>';

    return overlib(imgdiv + imgphotog, width, 10, ABOVE, HAUTO, VAUTO, BGCOLOR, '#B8B8B8', FGCOLOR, '#B8B8B8');
}

