window.offscreenBuffering=true;
////////////////////////////////////////////////////////
function resizePicture(pictureID,minSize,maxSize)
////////////////////////////////////////////////////////
{
var img=getElement(pictureID);	

if(img.altTitle==undefined)  { img.altTitle=img.title; }
if(img.altMarginLeft==undefined) { img.altMarginLeft=img.style.marginLeft; }
img.width=(img.width==minSize)?(maxSize):(minSize);
img.height=(img.height==minSize)?(maxSize):(minSize);
img.title=(img.width==maxSize)?(''):(img.altTitle);
img.style.marginLeft=(img.width==maxSize)?('250px'):(img.altMarginLeft);
window.scrollBy(0,img.height-minSize);
}
////////////////////////////////////////////////////////
function displayScrollerSwitch()
////////////////////////////////////////////////////////
{ document.write('<div class="newsStop"><img src="img/stop.gif" width="21" height="21" border="0" alt="Stop" onclick="scroller.switchScrolling()" /></div>'); }
////////////////////////////////////////////////////////
function displayMap()
////////////////////////////////////////////////////////
{ document.write('<span id="page-picture"><img src="img/map.gif" width="210" height="210" border="0" class="contact" id="contact-map" alt="Harta"  onclick="resizePicture(\'contact-map\',210,500);" title="Click pe imagine, pentru a vedea harta marita" /></span>'); }
////////////////////////////////////////////////////////
function displayThumbnail(webRoot, language, file, width)
////////////////////////////////////////////////////////
{ document.write('<a href="' + webRoot + '/?language=' + language + '&amp;page=images&amp;image=' + file + '" target="_self"> <img src="' + webRoot + '/img/?thumbnail=' + file + '&amp;lowres" width="' + width + '" id="th' + file + '" alt="' + file + '" /> </a>'); }
////////////////////////////////////////////////////////
function displayImage(webRoot, file, width)
////////////////////////////////////////////////////////
{ document.write('<img src="' + webRoot + '/img/?image=' + file + '&amp;lowres" width="' + width + '" id="img' + file + '" alt="' + file + '" />'); }
////////////////////////////////////////////////////////
var scroller  = new myScroller('news',100);
window.onload   = function() { scroller.init(); }
window.onunload = function() { scroller.stop(); }
////////////////////////////////////////////////////////




