/**
 * File contains
 *
 * @author Bronislav Klucka <Bronislav.Klucka@bauglir.com>
 * @copyright Copyright (c) 2010+, Bronislav Klučka
 * @license http://licence.bauglir.com/bsd.php BSD License
 * @version $Id: main.js,v 1.2 2010/06/23 09:16:44 cvsuser Exp $
 */
String.prototype.trim = function() {
	return this.replace(/^\s+|\s+$/g,"");
}
String.prototype.ltrim = function() {
	return this.replace(/^\s+/,"");
}
String.prototype.rtrim = function() {
	return this.replace(/\s+$/,"");
}


$(document).ready(function() {
/**
 * set target to all external links (a.external)
 */
 $('a.external').attr('target' , '_blank');
 
/**
 * remove all empty <li> and <p> tags (some language versions does not contain all necessary strings)
 */
 $('p , li').each(function() {
  if($(this).text().trim() == '')
   $(this).remove();
 });
});


