﻿/********************************************
* javascript function pool
*********************************************/
function roll_over(img_name, img_src){
   		document[img_name].src = img_src;
}
	
function output_normal(imgfile, width, height,style) {
	var version = navigator.userAgent;
	if (version.indexOf('Firefox') == -1) {
		var content = '<img src=\"images/blank.gif\" border=\"0\" style=\"'+ style+ 'width: '+ width +'px; height: '+ height +'px; ' +
		'filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'' + imgfile + '\',sizingMethod=\'scale\')\" />';
		document.write(content);
	}
	else  {
	 var content = '<img border=\"0\"  style=\"'+style+'\" src=\"' + imgfile + '\" width=\"'+ width +'\" height=\"'+ height +'\">';
	 document.write(content);
	}
}
function add_border(cat_div){
	document.getElementById(cat_div).style.border="2px white solid";
	document.getElementById(cat_div).style.margin='1px 0 0 0';
}
function remove_border(cat_div){
	document.getElementById(cat_div).style.border="none";
	document.getElementById(cat_div).style.margin='5px 0 0 0';
}