var tabs = ""; var tabCount = 0; var tabsChanged = []; var menuSelected = []; var selectedTab = 0; var tabWidth = 974; var overlay = 200; var windowPart = 0; var half = 0; var scrWidth = 0; var scrHeight = 0; var scrTotalHeight = 0; var scrOfY = 0; var Clixmaster = false; var left = 0; var right = 1; var newTab = 2; var moveFastest = 230; var moveFast = 560; var moveNormal = 700; var moveSlow = 850; var click = true; var ieZes = false; function startCarrousel() { var a = 0; if (navigator.appVersion.indexOf('MSIE 6') > 0) { ieZes = true } tabs = jQuery('#carrousel .tabnavigationblock .tabcontainer'); tabCount = tabs.length; createNavigation() } function createNavigation() { var a = jQuery('#carrouselnav'); var b = '<div class="block-output customnavblock"><ul>'; var c = -1; var d = 0; for (var x = 0; x < tabCount; x++) { var e = tabs[x].title; if (e.charAt(0) == "*") { jQuery(tabs[x]).remove() } } tabs = jQuery('#carrousel .tabnavigationblock .tabcontainer'); tabCount = tabs.length; for (var x = 0; x < tabCount; x++) { var e = tabs[x].title; if (e.charAt(0) == "_") { menuSelected[x] = false } else { d++; if (x == selectedTab) { b += '<li><a class="menuitem_' + x + ' clicked" href="javascript://" onmousedown="moveTo(this, ' + x + ', true)">' + e + '</a><div class="arrow arrow_' + x + '"><span class="arrowImage">&nbsp;</span></div></li>' } else { b += '<li><a class="menuitem_' + x + '" href="javascript://" onmousedown="moveTo(this, ' + x + ', true)">' + e + '</a><div class="arrow arrow_' + x + '"><span class="arrowImage">&nbsp;</span></div></li>' } menuSelected[x] = true } } b += '</ul></div>'; if (a.length > 0) { a[0].innerHTML = b } jQuery('#carrouselnav ul li:last').addClass('lc'); jQuery('#carrouselnav a').not(jQuery('#carrouselnav .lc a')).each(function() { Cufon.replace(this, { fontFamily: 'Museo 300', hover: true }) }); jQuery('#carrouselnav .lc a').each(function() { Cufon.replace(this, { fontFamily: 'Museo 100', hover: true }) }); fillBackGround(0); left = tabCount - 1; resizeCarrousel(); startComponentChanges(0); createCorner(0); startComponentChanges(1); startComponentChanges(tabCount - 1); startComponentChanges(2); startComponentChanges(tabCount - 2) } function checkNavigation() { if (menuSelected[selectedTab] == true) { createCorner(selectedTab); jQuery('#header a').removeClass('clicked'); jQuery('#header .menuitem_' + selectedTab).addClass('clicked'); Cufon.refresh() } } function resizeCarrousel() { if (Clixmaster == true) { GetWindowSize(); jQuery('#carrousel').width(scrWidth + 'px'); tabs.css('left', scrWidth + 'px').css('display', 'block'); jQuery(tabs[left]).css('left', (windowPart - (tabWidth - overlay)) + 'px').addClass('showtab').css('z-index', '2'); jQuery(tabs[selectedTab]).css('left', windowPart + 'px').addClass('showtab').css('z-index', '3'); jQuery(tabs[right]).css('left', (windowPart + (tabWidth - overlay)) + 'px').addClass('showtab').css('display', 'block').css('z-index', '2'); jQuery('#moveLeft').css('left', windowPart + 15 + 'px'); jQuery('#moveright').css('right', windowPart + 15 + 'px'); jQuery('#showPrevious').css('width', windowPart + 27 + 'px'); jQuery('#showNext').css('width', windowPart + 27 + 'px') } } function GetWindowSize() { if (typeof (window.innerWidth) == 'number') { scrWidth = window.innerWidth; scrHeight = window.innerHeight } else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) { scrWidth = document.documentElement.clientWidth; scrHeight = document.documentElement.clientHeight } else if (document.body && (document.body.clientWidth || document.body.clientHeight)) { scrWidth = document.body.clientWidth; scrHeight = document.body.clientHeight } if (typeof (window.pageYOffset) == 'number') { scrOfY = window.pageYOffset } else if (document.body && (document.body.scrollLeft || document.body.scrollTop)) { scrOfY = document.body.scrollTop } else if (document.documentElement && (document.documentElement.scrollLeft || document.documentElement.scrollTop)) { scrOfY = document.documentElement.scrollTop } scrTotalHeight = jQuery('html').height(); if (navigator.appName.indexOf('Explorer') > 0) { scrTotalHeight = jQuery('body').height() } else { scrTotalHeight = jQuery('html').height() } if (scrTotalHeight < scrHeight) { scrTotalHeight = scrHeight } windowPart = (scrWidth - tabWidth) / 2 } var ChangeNext = 0; function fillBackGround(a) { if (!ieZes) { jQuery('.filedisplayblock', tabs[a]).css('background', 'url(themes/themes.veritate/images/bg_tabpage.png)') } } function moveToTheLeft() { jQuery('.filedisplayblock', tabs).css('background', 'none'); jQuery(tabs[newTab]).css('z-index', '1'); jQuery(tabs[left]).css('z-index', '1'); jQuery(tabs[left]).animate({ left: (-1 * tabWidth) + 'px' }, moveFastest).removeClass('showtab'); jQuery(tabs[selectedTab]).animate({ left: (windowPart - (tabWidth - overlay)) + 'px' }, moveFast); jQuery(tabs[right]).animate({ left: windowPart + 'px' }, moveNormal); jQuery(tabs[newTab]).animate({ left: (windowPart + (tabWidth - overlay)) + 'px' }, moveNormal, function() { click = true; startComponentChanges(ChangeNext) }).addClass('showtab'); setTimeout(function() { jQuery(tabs).css('z-index', '2'); jQuery(tabs[right]).css('z-index', '3'); changeImage(selectedTab) }, 250); setTimeout(function() { fillBackGround(right); left = selectedTab; right = newTab }, moveNormal - 30) } function resetLeft() { var a = jQuery('#carrousel .tabnavigationblock .tabcontainer').not(jQuery('#carrousel .tabnavigationblock .showtab')); a.css('left', scrWidth + 'px').css('background', 'none').css('z-index', '1') } function moveLeft() { if (Clixmaster == true && click == true) { click = false; removeCookie(); left = selectedTab - 1; if (selectedTab == 0) { left = tabCount - 1 } right = selectedTab + 1; if (selectedTab == tabCount - 1) { right = 0 } newTab = selectedTab + 2; if (selectedTab == tabCount - 2) { newTab = 0 } if (selectedTab == tabCount - 1) { newTab = 1 } ChangeNext = selectedTab + 3; if (ChangeNext > tabCount - 1) { ChangeNext = ChangeNext - (tabCount - 1) } moveToTheLeft(); if (selectedTab == tabCount - 1) { selectedTab = 0 } else { selectedTab++ } try { pageTracker._trackPageview('/' + tabs[selectedTab].title) } catch (err) { } checkNavigation(); resetLeft() } } function moveToTheRight() { jQuery('.filedisplayblock', tabs).css('background', 'none'); jQuery(tabs[newTab]).css('z-index', '1'); jQuery(tabs[right]).css('z-index', '1'); jQuery(tabs[right]).animate({ left: scrWidth + 'px' }, moveFastest).removeClass('showtab'); jQuery(tabs[selectedTab]).animate({ left: (windowPart + (tabWidth - overlay)) + 'px' }, moveFast); jQuery(tabs[left]).animate({ left: windowPart + 'px' }, moveNormal); jQuery(tabs[newTab]).animate({ left: (windowPart - (tabWidth - overlay)) + 'px' }, moveNormal, function() { click = true; startComponentChanges(ChangeNext) }).addClass('showtab'); setTimeout(function() { jQuery(tabs).css('z-index', '2'); jQuery(tabs[selectedTab]).css('z-index', '3'); changeImage(selectedTab) }, 250); var a = left; right = selectedTab; left = newTab; setTimeout(function() { fillBackGround(a) }, moveNormal - 30) } function resetRight() { var a = jQuery('#carrousel .tabnavigationblock .tabcontainer').not(jQuery('#carrousel .tabnavigationblock .showtab')); a.css('left', -1 * tabWidth + 'px').css('background', 'none').css('z-index', '1') } function moveRight() { if (Clixmaster == true && click == true) { click = false; resetRight(); removeCookie(); left = selectedTab - 1; if (selectedTab == 0) { left = tabCount - 1 } right = selectedTab + 1; if (selectedTab == tabCount - 1) { right = 0 } newTab = selectedTab - 2; if (selectedTab == 0) { newTab = tabCount - 2 } if (selectedTab == 1) { newTab = tabCount - 1 } ChangeNext = selectedTab - 3; if (ChangeNext < 0) { ChangeNext = ChangeNext + (tabCount) } moveToTheRight(); if (selectedTab == 0) { selectedTab = tabCount - 1 } else { selectedTab-- } try { pageTracker._trackPageview('/' + tabs[selectedTab].title) } catch (err) { } checkNavigation() } } function moveTo(e, a, b) { var c = 0; var d = 0; if (Clixmaster == true && click == true) { var f = 0; if (isNaN(a)) { switch (a.toLowerCase()) { case "last": f = tabCount - 1; break; case "first": f = 0; break } } else { f = a } startComponentChanges(f); if (f - 1 > 0) { startComponentChanges(f - 1) } if (f + 1 < tabCount - 1) { startComponentChanges(f + 1) } if (e == '' || e.className.indexOf('clicked') == -1) { createCorner(f); jQuery('#header a').removeClass('clicked'); if (b) { jQuery(e).addClass('clicked'); Cufon.refresh() } c = f - 1; if (f == 0) { c = tabCount - 1 } d = f + 1; if (f == tabCount - 1) { d = 0 } if (selectedTab - 1 == f || (selectedTab == 0 & f == tabCount - 1)) { moveRight(); resetLeft() } else if (selectedTab - 2 == f || (f == tabCount - 1 && selectedTab == 1) || (f == tabCount - 2 && selectedTab == 0)) { moveRight(); setTimeout("moveRight()", 900); setTimeout("resetLeft();", 900) } else if (f - 1 == selectedTab || (selectedTab == tabCount - 1 && f == 0)) { moveLeft(); resetLeft() } else { click = false; if (f - 2 == selectedTab || (selectedTab == tabCount - 1 && f == 1) || (selectedTab == tabCount - 2 && f == 0)) { jQuery(tabs[left]).animate({ left: (-1 * tabWidth) + 'px' }, moveFast).removeClass('showtab'); jQuery(tabs[selectedTab]).animate({ left: (-1 * tabWidth) + 'px' }, moveFast).removeClass('showtab') } else { jQuery(tabs[left]).animate({ left: (-1 * tabWidth) + 'px' }, moveFast, function() { jQuery(tabs[left]).css('left', scrWidth + 'px') }).removeClass('showtab'); jQuery(tabs[selectedTab]).animate({ left: (-1 * tabWidth) + 'px' }, moveFast).removeClass('showtab'); jQuery(tabs[right]).animate({ left: (-1 * tabWidth) + 'px' }, moveFast).removeClass('showtab') } jQuery(tabs[c]).animate({ left: (windowPart - (tabWidth - overlay)) + 'px' }, moveNormal).addClass('showtab'); jQuery(tabs[f]).animate({ left: windowPart + 'px' }, moveNormal).addClass('showtab'); jQuery(tabs[d]).animate({ left: (windowPart + (tabWidth - overlay)) + 'px' }, moveSlow).addClass('showtab') } setTimeout(function() { jQuery(tabs[c]).css('z-index', '2'); jQuery(tabs[f]).css('z-index', '3'); jQuery(tabs[d]).css('z-index', '2') }, 230); setTimeout(function() { left = c; selectedTab = f; right = d; click = true }, 900) } if (f - 2 > 0) { startComponentChanges(f - 2) } if (f + 2 < tabCount - 1) { startComponentChanges(f + 2) } try { pageTracker._trackPageview('/' + tabs[f].title) } catch (err) { } setTimeout(function() { resetLeft(); fillBackGround(f) }, moveNormal - 30); removeCookie() } } var imageSrc = ""; function createCorner(a) { jQuery('#carrouselnav li div').hide().css('background', 'none').removeClass('activeArrow'); jQuery('#carrouselnav li .arrow_' + a).addClass('activeArrow'); changeImage(a); jQuery('#carrouselnav li .arrow_' + a).fadeIn() } function changeImage(a) { var b = jQuery('.filedisplayblock img', tabs[a]); if (b.length > 0) { var c = b[0].src; jQuery('#carrouselnav li .activeArrow').css('background', 'url(' + c + ') center top repeat-y') } } function OpenCloseTabPage(b, c) { if (c) { jQuery('.articlelistblock .openclicked, .displayarticleblock .openclicked', tabs[b]).each(function() { var a = this; openclose(a) }) } else { jQuery('.articlelistblock .openclicked, .displayarticleblock .openclose', tabs[b]).each(function() { var a = this; openclose(a) }) } } function removeCookie() { Delete_Cookie('mv', '/', '') } function popup(a) { if (a != "") { jQuery('#overlaysurvey').css('height', scrTotalHeight + 'px').css('opacity', '0.75'); var b = (scrWidth - 600) / 2; if (b < 0) { b = 0 } var c = ((scrHeight - 545) / 2) + scrOfY; if (c < 0) { c = 0 } jQuery('#popupsurvey').css('top', c + 'px').css('left', b + 'px'); var d = jQuery('#popupsurvey iframe'); var e = ""; if (d.length > 0) { d[0].src = a } else { e = document.createElement("IFRAME"); e.src = a; e.height = "545px"; e.width = "600px"; e.scrolling = "no"; e.allowTransparency = true; e.frameBorder = 0; jQuery('#popupsurvey').append(jQuery(e)) } jQuery(e).ready(function() { jQuery('#overlaysurvey, #popupsurvey').css('position', 'absolute'); jQuery('#overlaysurvey,#popupsurvey').fadeIn("fast") }) } } function resizePopUp() { GetWindowSize(); var a = (scrWidth - 600) / 2; if (a < 0) { a = 0 } var b = ((scrHeight - 630) / 2) + scrOfY; if (b < 0) { b = 0 } jQuery('#overlaysurvey').css('height', scrTotalHeight + 'px').css('opacity', '0.75'); jQuery('#popupsurvey').css('top', b + 'px').css('left', a + 'px') } function getQuerystring(a) { a = a.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]"); var b = new RegExp("[\\?&]" + a + "=([^&#]*)"); var c = b.exec(top.location.href); if (c == null) { return "" } else { return c[1] } } function checkMV() { if (Get_Cookie('mv')) { Delete_Cookie('mv'); moveTo('', 'last', true) } } function CloseOverlay() { jQuery('#overlaysurvey,#popupsurvey').fadeOut("fast") } jQuery(function() { if (jQuery('.mm_wysiwyg_container').length == 0) { Clixmaster = true } if (Clixmaster == true) { startCarrousel(); checkMV(); smallCarrousel(); var a = unescape(getQuerystring('tab').toLowerCase()); if (a.length > 0) { var i = tabCount; while (i--) { if (a == tabs[i].title.toLowerCase()) { var b = jQuery('#carrouselnav .menuitem_' + i)[0]; if (b == Object) { setTimeout(function() { moveTo(b, i, true) }, 250) } else { setTimeout(function() { moveTo("", i) }, 250) } break } } } } else { jQuery('#carrousel .carrouseloption').hide(); jQuery('#carrousel').css('height', 'auto') } }); var articleCounter = 0; var filelistCounter = 0; var articlelistCounter = 0; var searchresultsblockCounter = 0; function startComponentChanges(a) { if (!tabsChanged[a]) { articleBlock(a); smallLogin(a); getImage(a); cufonChanges(a); filelistblock(a); prettyPhoto(a); surveycontainer(a); linklistblocks(a); searchresultsblock(a); tabsChanged[a] = true; changeAnchors(a) } } function createExtraWrapper(a) { var b = 'articleblock'; if (jQuery('.articleblock, .vacancyblock', a.parentNode.parentNode).length >= 1) { b = 'articleblock nextblock' } jQuery(a).wrap('<div class="' + b + '"></div>'); jQuery(a).before('<div class="articleheader">&nbsp;</div>'); jQuery(a).after('<div class="articlefooter">&nbsp;</div>') } function createOpenClosed(a, b, c) { if (b == 0 & jQuery('.displayarticleblock, .searchresultsblock', tabs[b]).length == 1) { jQuery(a).prepend('<div class="openclicked"><a href="javascript://" onmousedown="openclose(this.parentNode)">&nbsp;</a></div>'); openclose(jQuery('.openclicked', a)[0]) } else { jQuery(a).prepend('<div class="openclose"><a href="javascript://" onmousedown="openclose(this.parentNode)">&nbsp;</a></div>'); if (jQuery('.displayarticleblock, .searchresultsblock', tabs[b]).not(jQuery('.articleblock .displayarticleblock, .articleblock .searchresultsblock', tabs[b])).length == 0) { openclose(jQuery('.openclose', a)[0]) } } } function cufonChanges(a) { jQuery('h2', tabs[a]).not(jQuery('.linklistblock h2', tabs[a])).each(function() { Cufon.replace(this) }) } function getImage(d) { jQuery('.filedisplayblock', tabs[d]).each(function() { var a = this; var b = jQuery('.imageurl', a); if (b.length > 0) { var c = document.createElement('IMG'); c.src = b[0].innerHTML; jQuery(a).append(jQuery(c)) } }) } function openclose(a) { var b = a.parentNode.parentNode.parentNode.parentNode; var c = ""; var d = ""; if (jQuery('.openclose', b).length == 1 && a.className != 'openclose') { jQuery('.openclicked, .openclose', b).each(function() { c = this; d = c.parentNode; openPart(d, c) }) } else { d = a.parentNode; openPart(d, a) } } function openPart(a, b) { var c = ""; if (a.className.indexOf('articlelistblock') > 0) { c = jQuery('ul', a) } else if (a.className.indexOf('displayarticleblock') > 0) { c = jQuery('.plain-text', a) } else if (a.className.indexOf('searchresultsblock') > 0) { c = jQuery('ul', a) } if (b.className == "openclose") { c.animate({ height: '0px' }, 200); b.className = 'openclicked'; setTimeout(function() { jQuery(c).hide() }, 200) } else { var d = c[0].getAttribute('extra'); c.animate({ height: d + 'px' }, 180); b.className = 'openclose' } } function articleBlock(k) { var l = 0; jQuery('.displayarticleblock', tabs[k]).each(function() { var j = this; articleCounter++; if (jQuery('table', j).length > 0) { l++; normalArticle(j, articleCounter, l) } else { createExtraWrapper(j); jQuery('ul li', j).mouseover(function() { jQuery(this).addClass('hover') }).mouseout(function() { jQuery(this).removeClass('hover') }); jQuery('ul li a', j).click(function() { jQuery('ul li', j).removeClass('clicked'); if (this.parentNode.tagName == "LI") { jQuery(this.parentNode).addClass('clicked') } }); jQuery('.plain-text', j).each(function() { var b = this; if (b.innerHTML != "") { var c = b.offsetHeight; var d = 260; if (jQuery('ul', j).length > 0) { d = d - 30 } var e = jQuery('.displayarticleblock, .searchresultsblock', tabs[k]).length; if (e > 1) { d = d - ((e - 1) * 60) } if (c > d) { c = d } jQuery(b).css('overflow', 'hidden'); jQuery(b).height(c + 'px'); b.setAttribute('extra', c); b.setAttribute('id', 'plainText' + articleCounter); jQuery('a', j).each(function() { var a = this; jQuery(a).mousedown(function() { clickAnchor(a) }); if (a.href.indexOf('#') > -1) { a.setAttribute('target', 'plainText' + articleCounter) } }) } else { b.style.display = "none" } var f = jQuery('ul', b); if (f.length > 0) { var g = f[0]; jQuery(b).before(jQuery(g)); var h = jQuery('a', g); var i = h[h.length - 1]; if (i.innerHTML.toLowerCase() == 'pdf') { jQuery(i.parentNode).addClass('pdf') } } if (c >= d) { jQuery(".plain-text", j).customScroller() } if (c > 0) { createOpenClosed(j, k) } }) } }) } function clickAnchor(e) { var a = e.parentNode.parentNode.parentNode; if (jQuery('.openclicked', a).length > 0) { var b = jQuery('.openclicked', a)[0]; openclose(b, a) } } function normalArticle(e, f, g) { if (g > 1) { jQuery(e).addClass('normalarticleblock') } else { jQuery(e).addClass('firstarticleblock') } var g = 0; jQuery('tr', e).each(function() { var b = this; var c = jQuery('td', b).length; var d = Math.floor(100 / c); jQuery('td', e).each(function() { var a = this; a.setAttribute('width', d + "%"); g++; switch (g) { case 1: a.className = 'blue'; break; case 2: a.className = 'purple'; break; case 3: a.className = 'green'; g = 0; break } }) }); jQuery('h3', e).each(function() { Cufon.replace(this) }) } function changeAnchors(c) { jQuery("a[target^='_parent']", tabs[c]).each(function() { var a = this; var b = a.href; a.href = "javascript://"; a.target = ""; jQuery(a).click(function() { popup(b) }) }) } function filelistblock(e) { jQuery('.filelistblock', tabs[e]).each(function() { var c = this; var d = true; filelistCounter++; jQuery('ul li a', c).each(function() { var a = this; if (d) { a.parentNode.className = 'fc'; var b = document.createElement('IMG'); b.src = "themes/themes.veritate/images/clear.gif"; b.alt = a.title; a.innerHTML = ""; jQuery(a).append(b); d = false } else { a.setAttribute('target', 'gallery_' + filelistCounter) } a.setAttribute("rel", "prettyPhoto[gallery_" + filelistCounter + "]") }) }) } function surveyGoto(e, a) { var b = e.parentNode.parentNode; var c = e.parentNode.parentNode.parentNode.parentNode; jQuery('.surveywrapper_' + a, c).css('display', 'block'); jQuery(b).hide(); jQuery('.surveynav', c).removeClass('surveynavclicked'); jQuery('.surveynav_' + (a), c).addClass('surveynavclicked') } function surveycontainer(i) { jQuery('.surveycontainer', tabs[i]).each(function() { var c = this; var d = jQuery('h2', c); var e = true; var f = 0; var g = ""; jQuery('div .surveyquestion, div .surveyintroduction', c).each(function() { var a = this; if (e) { f++; g = jQuery('<div class="surveywrapper_' + f + '">'); if (f > 1) { g.hide() } jQuery(a).before(g); e = false } if (a.className.substring(0, 5) == 'plain') { var b = a.innerHTML; if (b.indexOf('$verder$') > 0) { if (f > 1) { g.append('<div class="surveybutton surveyPrevious"><a href="javascript://" onmousedown="surveyGoto(this,' + (f - 1) + ')">Terug</a></div>') } g.append('<div class="surveybutton surveyNext"><a href="javascript://" onmousedown="surveyGoto(this,' + (f + 1) + ')">Verder</a></div>'); e = true; jQuery(a).remove() } else { g.append(jQuery(a)) } } else { g.append(jQuery(a)) } }); g.append('<div class="surveybutton surveyPrevious"><a href="javascript://" onmousedown="surveyGoto(this,' + (f - 1) + ')">Terug</a></div>'); jQuery('.surveywrapper_' + f).append(jQuery('.button-container', c)); var h = '<div class="surveynavtotal">'; for (var x = 1; x < f + 1; x++) { if (x == 1) { h += '<div class="surveynav surveynav_' + x + ' surveynavclicked"></div>' } else { h += '<div class="surveynav surveynav_' + x + '"></div>' } } jQuery('h2', c).after(jQuery(h)) }) } function linklistblocks(d) { var e = true; var f = 0; var g = ""; var h = ""; if (jQuery('.linklistblock', tabs[d]).length > 1) { jQuery('.linklistblock', tabs[d]).each(function() { var a = this; f++; if (e) { g = document.createElement('DIV'); g.className = "linklistcontainer"; h = document.createElement('UL'); h.className = "navlist"; jQuery(g).append(jQuery(h)); jQuery(a).before(jQuery(g)) } jQuery(g).append(jQuery(a)); var b = jQuery('h2', a); var c = ""; if (b.length > 0) { headerTekst = b[0].innerHTML; b[0].innerHTML = "De beschikbare " + headerTekst; if (e) { c = '<li class="listMenu listMenu_' + f + ' liclicked"><a href="javascript://" onclick="linkOpen(this, ' + f + ')">' + headerTekst + '</a></li>' } else { c = '<li class="listMenu listMenu_' + f + '"><a href="javascript://" onclick="linkOpen(this, ' + f + ')">' + headerTekst + '</a></li>' } jQuery(h).append(jQuery(c)) } if (e) { jQuery(a).show(); e = false } }); jQuery('li', h).mouseover(function() { jQuery(this).addClass('lihover') }).mouseout(function() { jQuery(this).removeClass('lihover') }).click(function() { jQuery('li', h).removeClass('liclicked'); jQuery(this).addClass('liclicked') }) } } function linkOpen(e, a) { var b = e.parentNode.parentNode.parentNode; var c = jQuery('.linklistblock', b); c.hide(); jQuery(c[a - 1]).show() } function smallLogin(c) { jQuery('.small_loginblock', tabs[c]).each(function() { var b = this; jQuery('.button-container input', b).click(function() { Set_Cookie('mv', 'true', '', '/', '', '') }); jQuery('a', b).each(function() { var a = this; a.setAttribute('target', '_parent') }) }) } function searchresultsblock(e) { jQuery('.searchresultsblock', tabs[e]).each(function() { var a = this; searchresultsblockCounter++; createExtraWrapper(a); var b = jQuery('ul', a); if (b.length > 0) { var c = b[0]; var d = c.offsetHeight; if (d > 180) { d = 180 } jQuery(c).css('overflow', 'hidden'); jQuery(c).height(d + 'px'); c.setAttribute('extra', d); if (d >= 180) { jQuery(c).customScroller() } jQuery('.showdetails', c).each(function() { this.setAttribute('target', '_parent') }) } createOpenClosed(a, e) }) } function prettyPhoto(a) { jQuery("a[rel^='prettyPhoto']", tabs[a]).prettyPhoto() } var smallTeller = 2; var smallImages = ""; var shownImage = 0; var imageOne = ""; var imageTwo = ""; function smallCarrousel() { if (jQuery('#extra1 .filelistblock a').length > 0) { smallCarrouselFilelist() } else if (jQuery('#extra1 .linklistblock a').length > 0) { smallCarrouselLinklist() } } function smallCarrouselFilelist() { smallImages = jQuery('#extra1 .filelistblock a'); jQuery('#extra1 .filelistblock').each(function() { var a = this; imageOne = document.createElement('img'); imageOne.src = smallImages[0].href; imageTwo = document.createElement('img'); imageTwo.src = smallImages[1].href; imageTwo.left = "170px"; jQuery(a).append(imageOne).append(imageTwo); setTimeout("moveSmallCarrousel()", 3500) }) } function moveSmallCarrousel() { if (shownImage == 0) { jQuery(imageOne).animate({ left: '-170px' }, 800); jQuery(imageTwo).animate({ left: '0px' }, 800, makeNewMove(0)); shownImage = 1 } else { jQuery(imageTwo).animate({ left: '-170px' }, 800); jQuery(imageOne).animate({ left: '0px' }, 800, makeNewMove(1)); shownImage = 0 } setTimeout("moveSmallCarrousel()", 3500) } function makeNewMove(a) { smallTeller++; if (smallTeller > smallImages.length - 1) { smallTeller = 0 } if (a == 0) { jQuery(imageTwo).css('left', '170px'); imageTwo.src = smallImages[smallTeller].href } else if (a == 1) { jQuery(imageOne).css('left', '170px'); imageOne.src = smallImages[smallTeller].href } } function smallCarrouselLinklist() { smallImages = jQuery('#extra1 .linklistblock a'); setTimeout("moveSmallCarrouselLink()", 3500) } function moveSmallCarrouselLink() { var a = shownImage; shownImage++; if (shownImage > smallImages.length - 1) { shownImage = 0 } jQuery(smallImages[a]).animate({ left: '-117px' }, 1000); jQuery(smallImages[shownImage]).animate({ left: '0px' }, 1000); setTimeout(function() { jQuery(smallImages[a]).css('left', '117px'); moveSmallCarrouselLink() }, 3500) }