window.onload = function(){
	if(get_cookie("bodysize")=="big")
			setBigSize();
	else
			setNormalSize();
	doLinks();
}

function setNormalSize(){
	body=document.getElementsByTagName("body")[0];
	body.className = 'normal';
	set_cookie("bodysize", "normal")
	
	return false ;
}

function setBigSize(){
	body=document.getElementsByTagName("body")[0];
	body.className = 'big';
	set_cookie("bodysize", "big")
	
	return false ;
}

function delete_cookie(cookie_name){
	var cookie_date = new Date ( );  // current date & time
	cookie_date.setTime ( cookie_date.getTime() - 1 );
	document.cookie = cookie_name += "=; expires=" + cookie_date.toGMTString()+ "; path=/";
}

function get_cookie ( cookie_name ){
	var results = document.cookie.match ( '(^|;) ?' + cookie_name + '=([^;]*)(;|$)' );
	if ( results )	return ( unescape ( results[2] ) );
	else	return null;
}

function set_cookie(name, value){
	var cookie_string = name + "=" + escape ( value );
	var tExpDate=new Date();
	tExpDate.setTime( tExpDate.getTime()+(1000*60*1000) );
	cookie_string += "; expires=" + tExpDate.toGMTString() + "; path=/";
	document.cookie = cookie_string;
}

function doLinks(){
 var href,ergebnis;
 arrA = [];
 var arrDiv = document.getElementsByTagName("div");
 n1 = arrDiv.length;
 for(i=0;i<n1;i++){
 	if(arrDiv[i].className == "content") {
 		var arrA = arrDiv[i].getElementsByTagName("a");
 		var n = arrA.length;
 		
	 }
 }
 
// var host = window.location.host.toLowerCase();
 for(var i=0;i<n;i++){
	href = arrA[i].getAttribute("href");
	if(href){
		href2 = href.replace(/http/g, "");
		href3 = href.replace(/www/g, "");
		if(href2 != href || href3 != href) {
			arrA[i].className = "external-link-new-window";
			
		}
	//if(ergebnis){

	//}
 	}
 }
 
}
