﻿function multirow_getHTML()
{
	var stopV = startV + 12;
	if (typeof multirow_itemList != 'undefined')
	{
		myoutput = "";
		for (i = startV; i<stopV; i++)
		{
			if (i >= multirow_itemList.length)
				break;
			myitem = multirow_itemList[i];
			myoutput = myoutput + '<li style="float:left;"><div class="thumb_item" style="background: transparent url(' + myitem.url + ') no-repeat scroll center center;" title="' + myitem.title + '"><div style="border-right: 1px solid #CACACA; border-bottom: 1px solid #CACACA; margin-top: 0px; position: absolute; background-color:#FFFFFF; font-size: 9px; line-height: 11px;">Bild ' + (i+1) + '</div><a href="' + myitem.linkurl + '"><img src="/external/gfx/defaults/pixel.gif" width="147" height="110" border="0" style="margin:0px;padding:0px;"></a></div></li>';
		}
		writeUL(myoutput);
	}
};

function fwd()
{
	startV = startV + 12;
	if (startV >= maxImageV)
		startV = 0;
	multirow_getHTML();
}
function bck()
{
	startV = startV - 12;
	if (startV < 0)
		startV = firstImageLastPageV;
	multirow_getHTML();
}

function writeUL(myList)
{
	document.getElementById("imgThumbs").innerHTML = myList;
}

multirow_getHTML();

// 2011/11/15 AA - fxmbgclick extends click area of wallpapers
// triggered by fxm only
function fxmbgclick(sUrl) {
	$('#content_main').prepend('<div class="fixed_layer" style="position:fixed;top:0;left:0;width:100%;height:1500px;z-index:0;"></div>');
	$('#header').css('position','relative');
	$('#site_content').css('position','relative');
	$('#footer').css('position','relative');
	$('.fixed_layer').bind('click', function () {window.open(sUrl)}); 
	$('.fixed_layer').css('cursor','pointer');
	$('#column_right').css('width','auto');
	
	return true;
}
