function getBrowserInfo() {
 var t,v = undefined;
 if (window.opera) t = 'Opera';
 else if (document.all) {
  t = 'IE';
  var nv = navigator.appVersion;
  var s = nv.indexOf('MSIE')+5;
  v = nv.substring(s,s+1);
 }
 else if (navigator.appName) t = 'Netscape';
 return {type:t,version:v};
}

function bookmark(a){
 var url = 'http://www.bloemenblad.nl';
 var title = 'Bloem en Blad';
 var b = getBrowserInfo();
 if (b.type == 'IE' && b.version >= 4) window.external.AddFavorite(url,title);
 else if (b.type == 'Opera') {
  a.href = url;
  a.rel = "sidebar";
  a.title = url+','+title;
  return true;
 }
 else if (b.type == "Netscape") window.sidebar.addPanel(title,url,"");
 return false;
}

function toggleMenu(id, mode){
	var obj = document.getElementById(id);
	if(obj) {
		if (mode == ''){
			if (obj.style.display == 'block'){
				obj.style.display = 'none';
			} else {
				obj.style.display = 'block';
			}
		} else {
			obj.style.display = mode ? 'block' : 'none';
		}
	}
	return true;
}

function switchContent(id,page,sortselection,typeid,obj)
{
	jQuery('A.pagelinks').css('color','#6C5991');
	jQuery(obj).css('color','#000000');
	jQuery.post("/ajax/ajax.post.php", { act: "switchContent", id: id, page:page, sortselection:sortselection, typeid:typeid },
		function(data){
			jQuery('#content'+id).html(data);
	});
}

(function($) {
	$(document).ready(function() {
		$('.linkarrow').append('<img height="6" width="3" src="/images/link-pt.gif"/>');
	});
})(jQuery);