// TOP BAR
    $(document).ready(function() {
		$("#dewi_bar").jixedbar();
    }); 
// EIND TOP BAR

// MEER
	$(function(){
	 $('#content_wrapper').truncatable({	limit: 3000, more: 'Lees meer', less: true, hideText: 'Lees minder' }); 
	});
// EIND MEER

// CLICK
// $(document).ready(function(){
// 	$(document).bind("contextmenu",function(e){
// 		return false;
// 	});
// });

// var message="";
// function clickIE() {if (document.all) {(message);return false;}}
// function clickNS(e) {if 
// (document.layers||(document.getElementById&&!document.all)) {
// if (e.which==2||e.which==3) {(message);return false;}}}
// if (document.layers) 
// {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
// else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
// document.oncontextmenu=new Function("return false")
// EIND CLICK

// DRAG
// $(function(){
// 	$.extend($.fn.disableTextSelect = function() {
// 		return this.each(function(){
// 			if($.browser.mozilla){//Firefox
// 				$(this).css('MozUserSelect','none');
// 			}else if($.browser.msie){//IE
// 				$(this).bind('selectstart',function(){return false;});
// 			}else{//Opera, etc.
// 				$(this).mousedown(function(){return false;});
// 			}
// 		});
// 	});
// 	$('p').disableTextSelect();//No text selection on elements with a class of 'noSelect'
// });
// EIND DRAG

// TWITTER

// FLASH Z-INDEX
function LJQ() {
		var sc=document.createElement('script');
		sc.type='text/javascript';
		sc.id = 'script1';
		sc.defer = 'defer';
		document.getElementsByTagName('head')[0].appendChild(sc);
		window.noConflict = true;
		window.fix_wmode2transparent_swf();
}
if(typeof (jQuery) == "undefined") {
	if (window.addEventListener) {
	  window.addEventListener('load', LJQ, false); 
	 } else if (window.attachEvent) { 
	  window.attachEvent('onload', LJQ);
	 }
}
else { // JQuery is already included
	window.noConflict = false;
	window.setTimeout('window.fix_wmode2transparent_swf()', 200);
}
window.fix_wmode2transparent_swf = function  () {
	if(typeof (jQuery) == "undefined") {
		window.setTimeout('window.fix_wmode2transparent_swf()', 200);
		return;
	}
	if(window.noConflict)jQuery.noConflict();
	// For embed
	jQuery("embed").each(function(i) {
		var elClone = this.cloneNode(true);
		elClone.setAttribute("WMode", "Transparent");
		jQuery(this).before(elClone);
		jQuery(this).remove();
	});	
	// For object and/or embed into objects
	jQuery("object").each(function (i, v) {
	var elEmbed = jQuery(this).children("embed");
	if(typeof (elEmbed.get(0)) != "undefined") {
		if(typeof (elEmbed.get(0).outerHTML) != "undefined") {
			elEmbed.attr("wmode", "transparent");
			jQuery(this.outerHTML).insertAfter(this);
			jQuery(this).remove();
		}
		return true;
	}
	var algo = this.attributes;
	var str_tag = '<OBJECT ';
	for (var i=0; i < algo.length; i++) str_tag += algo[i].name + '="' + algo[i].value + '" ';	
	str_tag += '>';
	var flag = false;
	jQuery(this).children().each(function (elem) {
		if(this.nodeName == "PARAM") {
			if (this.name == "wmode") {
				flag=true;
				str_tag += '<PARAM NAME="' + this.name + '" VALUE="transparent">';		
			}
			else  str_tag += '<PARAM NAME="' + this.name + '" VALUE="' + this.value + '">';
		}
	});
	if(!flag)
		str_tag += '<PARAM NAME="wmode" VALUE="transparent">';		
	str_tag += '</OBJECT>';
	jQuery(str_tag).insertAfter(this);
	jQuery(this).remove();	
	});
}
// EIND FLASH Z-INDEX

// EIND TWITTER

// TOP BAR
	$(function() {
	$("#top").css("opacity","0.7");
	$("#top").hover(function () {
	$(this).stop().animate({
	opacity: 1.0
	}, "fast");
	},
	function () {
	$(this).stop().animate({
	opacity: 0.7
	}, "fast");
	});
	});
	
// EIND TOP BAR



// CUFON
Cufon.replace('.artikel h1', { hover: true, fontFamily: 'Klavika Light' });
Cufon.replace('.artikel h2', { hover: true, fontFamily: 'Klavika Light' });
Cufon.replace('#top a', { hover: true, fontFamily: 'Klavika Light' });
Cufon.replace('.links_block h1', { hover: true, fontFamily: 'Klavika Light' });
Cufon.replace('.links_block h2', { hover: true, fontFamily: 'Klavika Light' });
Cufon.replace('.links_block h3', { hover: true, fontFamily: 'Klavika Light' });
Cufon.replace('#wrapper h1', { hover: false, fontFamily: 'Klavika Light' });
Cufon.replace('.artikel_datum', { hover: true, fontFamily: 'Klavika Light' });
// EIND CUFON




