jQuery.Link = function() {}
jQuery.Link.prototype.Go = function(url) {
	top.location = url;
}

// Project jQuery.
$(document).ready(function() {
	$(function(){ jQuery.link = new jQuery.Link(); })
	
	// Lightbox: Nastavení.
	$('a[rel="lightbox"]').lightBox({
		fixedNavigation: true,
		imageLoading: '/img/lightbox/lightbox-ico-loading.gif',
		imageBtnClose: '/img/lightbox/lightbox-btn-close.gif',
		imageBtnPrev: '/img/lightbox/lightbox-btn-prev.gif',
		imageBtnNext: '/img/lightbox/lightbox-btn-next.gif',
		imageBlank: '/img/lightbox/lightbox-blank.gif'
	});	
});


/***********************************************
* ProHTML Ticker script- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var tickspeed=7000; //ticker speed in miliseconds (2000=2 seconds)
var enablesubject=0; //enable scroller subject? Set to 0 to hide

if (document.getElementById){
document.write('<style type="text/css">\n')
document.write('.project-table{display:none;}\n')
document.write('</style>\n')
}

var selectedDiv=0;
var totalDivs=0;

function contractall(){
var inc=0
	while (document.getElementById("project-table"+inc)){
	document.getElementById("project-table"+inc).style.display="none";
	inc++;
}
}


function expandone(){
var selectedDivObj=document.getElementById("project-table"+selectedDiv)
contractall();
//document.getElementById("projects-body").innerHTML=selectedDivObj.getAttribute("subject")
if(selectedDivObj){
	selectedDivObj.style.display="block"
	selectedDiv=((selectedDiv<totalDivs-1)? selectedDiv+1 : 0);
	setTimeout("expandone()",tickspeed)
}
}

function startscroller(){
while (document.getElementById("project-table"+totalDivs)!=null)
totalDivs++;
expandone()
//if (!enablesubject)
//document.getElementById("projects-body").style.display="none"
}

if (window.addEventListener)
window.addEventListener("load", startscroller, false)
else if (window.attachEvent)
window.attachEvent("onload", startscroller)


