var $=function(element) 
{
	element = document.getElementById(element);
	return element;
};

var swapimg;

function swapImg(name, target)
{
	swapimg = name.src;
	name.src = target;
}

function restoreImg(name)
{
	name.src = swapimg;
}

function setPngImg(obj){
	obj.width=obj.height=1;
	obj.className=obj.className.replace(/\bpngImg\b/i,'');
	obj.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+obj.src+"',siZingMethod='image');"
	obj.src='';
	return'';
}

function obj_movie(src, ids, width, height, autostart)
{
	var wh = "";
	if (parseInt(width) && parseInt(height)) 
		wh = " width='"+width+"' height='"+height+"' ";
	if (!autostart) autostart = false;
	return "<embed src='"+src+"' "+wh+" autostart='"+autostart+"'></embed>";
}

function showMovie() {
	var win = window.open("/ga/product/movie.php","use",'scrollbars=no,resizable=no,width=640, height=480');
	win.focus();
}



















































