// SCROLLER OUTER BORDER IN PIXEL
var scrollborder = "1px";
var scrollbordercolor = "#CCCCCC";
// SCROLLBOX SIZE IN PIXEL:[999]px OR PERSENTAGE:[1-100]%
var scrollwidth = "80%";
var scrollheight = "99";
// FILE NAVIGATION IMAGES (left & right) ATTRIBUTES
var imgleft = "left.gif";
var imgright = "right.gif";
var imgwidth = "10";
var imgheight = "100";

// *** S T A R T   S C R I P T ***
var waktu=0;

function left(){
	isi.scrollBy(-10,0);waktu=setTimeout('left()',60);
}
function right(){
	isi.scrollBy(10,0);waktu=setTimeout('right()',60);
}
function stop() {
	clearTimeout(waktu);
}
function buildScroller(){
	document.writeln('<iframe name="isi" id="isi" class="tx_tinygallery_thumbs" ');
	document.writeln('height="'+scrollheight+'" marginwidth="0" marginheight="0" ');
	document.writeln('hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>');
}

function playscroll(){
	buildScroller();

	// Load the scroller content into IFRAME
	if (document.frames)
		iframe = document.frames['isi'];
	else
		iframe = document.getElementById('isi');

	if (iframe.contentDocument) {
		// For NS6
		IFrameDoc = iframe.contentDocument; 
	} else if (iframe.contentWindow) {
		// For IE5.5 and IE6
		IFrameDoc = iframe.contentWindow.document;
	} else if (iframe.document) {
		// For IE5
		IFrameDoc = iframe.document;
	} else {
		return true;
	}

	// scrollerContent object
	sC = getObject('scrollerContent');
	
	IFrameDoc.write('<body style="height:103px;background: #f2cc3b url(fileadmin/tmpl/imgs/bildergalerie-thumb-bg.gif) left bottom repeat-x;overflow:hidden">' + sC.innerHTML + '</body>');
	//<div style="position: absolute; top: -6px; left: -6px; width: 21px; height: 21px; background: transparent url(fileadmin/tmpl/imgs/main-yellow-topleft-corner.gif) center no-repeat; z-index: 10;"></div><div style="position: absolute; top: -6px; right: -6px; width: 21px; height: 21px; background: transparent url(fileadmin/tmpl/imgs/main-yellow-topright-corner.gif) center no-repeat; z-index: 10;"></div>
	IFrameDoc.close();
}
