function menuOver(where,element) {
 if (element) where.style.backgroundImage = 'url(templates/images/over_'+element+'.jpg)';
 else where.style.backgroundImage = '';
}

function setBgColor(where,color) {
 if (color) where.style.backgroundColor = color;
 else where.style.backgroundColor = '';
}

function maxi(fileName,width,height) {
 if (!width) width = '690';
 if (!height) height = '540';
 window.open(fileName,'Galeria','width='+width+',height='+height+',scrolbars=no,toolbar=no,status=no,menubar=no,top=20,left=20');
}
function put_swf(swfURL, width, height, bgcolor, flashvars){
	var swfo;
	swfo='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ';
	swfo+='codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"';
	swfo+=' width="'+width+'" height="'+height+'">';
	swfo+='\n <param name="allowScriptAccess" value="sameDomain" />';
	swfo+='\n <param name="movie" value="'+swfURL+'" />';
    swfo+='\n <param name="bgcolor" value="'+bgcolor+'" />';	
	swfo+='\n <param name="quality" value="high" />';
	swfo+='\n <param name="flashvars" value="'+flashvars+'" />';
	swfo+='\n <embed src="'+swfURL+'?'+flashvars+'" quality="high" bgcolor="'+bgcolor+'"';
	swfo+='\n width="'+width+'" height="'+height+'"';
	swfo+='\n align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" ';
	swfo+='pluginspage="http://www.macromedia.com/go/getflashplayer" /> ';
	swfo+='</object>';
	document.write(swfo);

}