var jq = jQuery.noConflict();
    
    jq(document).ready(function(){
       
       /*alert('jQuery lever!');*/
       
		// actives the slider plugin mechanism.
    	jq('.timeline-item-wrapper')
		.before('<div id="timeline-nav">')
		.cycle({
    		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
			speed: 900,
			timeout: 7000,
			pause: true,
			pauseOnPagerHover: true,
			pager: '#timeline-nav'
        });

		// actives the fancyzoom plugin mechanism
		jq('#fancyzoom').fancyzoom({Speed:400, showoverlay:false});
		jq('#fancyzoom1').fancyzoom();

		// strips all margin on frontpage content paragraphs.
		jq('.column-content div.paragraph-content:last-child')
			.css("margin","0px");
        
		// handle focus and blur events for the search field.
		jq('.text').focus(function(){
			jq(this).val("");
		});
		
		jq('.text').blur(function(){
			jq(this).val("indtast s\u00F8geord..."); 
		});
		
		jq('.slide-nav-item').each(function(index, value){
			//alert(index+1);		
			var theHeader = jq('#timeline-item-header'+(index+1)).text();
			//alert(theHeader);
			jq(this).text(theHeader);
		});
		
    });

var $ = jQuery.noConflict();
