function  mediaCycle(){

setTimeout('$("#mobiel").animate({"marginLeft": "+=1700"}, 1600, "backinout").animate({"marginLeft": "-=1700"}, 1600, "backinout");', 3500);
setTimeout('$("#screenshot").animate({"marginLeft": "+=1700"}, 1600, "backinout").animate({"marginLeft": "-=1700"}, 1600, "backinout");', 3200);

setTimeout('mediaCycle();', 18000); 

}

$(document).ready(function() {
				 //$('#screenshot').hide().animate({"marginLeft": "+=1700", "opacity": 0.2}, 1300, "backinout").show().animate({"marginLeft": "-=1700", "opacity": 1}, 1300, "backinout");
				 
				 //mediaCycle(); 
				 
				 
				 
				 
				  
				
				// $('#screenshot').css({'marginLeft': '1651px'}).animate({"opacity": 0.2}, 600).animate({"marginLeft": "-=1700", "opacity": 1}, 1300, "backinout");
				 //$('#mm').hide().animate({"marginLeft": "+=1700"}).show().animate({"marginLeft": "-=1700", "opacity": 1}, 1300, "backinout");
				 //$('#mma').hide().animate({"marginLeft": "+=1700"}).show().animate({"marginLeft": "-=1700", "opacity": 1}, 1600, "backinout");
				 
				 Cufon.replace('#content h2', {textShadow: '#fafafa -1px -1px', fontSize: '23px'});
				 Cufon.replace('#sub #content h2', { fontSize: '23px', color: '#666666'});
				 Cufon.replace('#sub #content h3', { fontSize: '18px', color: '#666666'});
				 Cufon.replace('#content h1', {textShadow: '#FFF 1px 1px', fontSize: '43px', color: '#666666'});
				
				$("#footer p span").css({'color':'#808080', 'opacity': '0.5'});
				
				$("#footer p span").hover(
					function() { $(this).stop().animate({ opacity: 1}, 200).css({'cursor': 'default'}); },
					function() { $(this).stop().animate({ opacity: 0.5}, 200); }
					
				); 
				
				
				
				$("#navigation a").removeAttr("title");
				$("#opdrachtgevers a img").removeAttr("title");
				
				$('textarea').click(function() {
					if ($(this).val() == 'Uw bericht') { $("textarea").val(''); }
				});
				
				
				
				
				$('#media').supersleight();
				$('.logo').supersleight();
				$('.category').supersleight();
				    
				$("ul#navigation").supersubs({ 
					minWidth:    12,   // minimum width of sub-menus in em units 
					maxWidth:    27,   // maximum width of sub-menus in em units 
					extraWidth:  1     // extra width can ensure lines don't sometimes turn over 
									   // due to slight rounding differences and font-family 
				}).superfish({ animation:   {opacity:'show',height:'show'}, speed: 'fast' });  // call supersubs first, then superfish, so that subs are 
								 // not display:none when measuring. Call before initialising 
								 // containing tabs for same reason. 
				
				
				
				
				//$('.popover').fancybox({
		
		//});
				
				
				
				if(typeof document.body.style.maxHeight === "undefined") {
				$("#navigation").removeClass("sf-shadow");
				$("#opdrachtgevers a img").removeAttr("alt");
				} else {
				//$('#introduction h2').css({'opacity': '0'}).animate({"opacity": 0}, 200).animate({"opacity": 1}, 800, "easein");
				// $('#introduction p strong').css({'opacity': '0'}).animate({"opacity": 0}, 300).animate({"opacity": 1}, 800, "easein");
				
				}
				
			/*$(function() {
	// 3 progressive enhancement steps
	// add active class to 1st tab
	// hide 2nd &amp; 3rd content elements
	$("ul.tabs li a.tab:eq(0)").addClass("active");
	$("#webapplicaties").addClass("hide");
	$("#emailcampagnes").addClass("hide");
	// When a tab is clicked
	$("a.tab").click(function () {
		// switch all active tabs off
		$(".active").removeClass("active");
		// switch clicked tab on
		$(this).addClass("active");
		// hide all elements with the class 'tab-content'
		$(".tab-content").hide(300);
		// Now figure out what the 'href' attribute value is and find the element with that id.
		// Then show it.
		var content_show = $(this).attr("href");
		$(content_show).show(300);
		$(content_show).removeClass("hide");
		// do not perform default action. i.e. do not append #tab-content_id to URL
		return false;
	});
});	*/
				
				
				
			});