/****************************************************************************************************
program type:               Javascript include file
name: 			   			browser.js
description:                this file checks and exclused browsers

copyright © 2006 by FIRMENPUNKT GmbH

client:                     -
documentation:              - 
date (dd/mm/yyyy):          20/03/2006
created by (with email):    anja savant <as@firmenpunkt.de>
last modified (dd/mm/yyyy): 
reason for modification:    
modified by (with email):   fabian von derschatta

function		|arguments          | return             |   description
------------------------------------------------------------------------------------------------------
--
*****************************************************************************************************/

/*****************************
*  Umleitung für Netscape 4  *
*****************************/  

// Wenn Browser Netscape ist und Version kleiner gleich 4
if(navigator.appName.indexOf("Netscape") > -1 && navigator.appVersion.substr(0,1) <= "4")
	// Leite um auf Browserseite
	document.location.href="/wrong_browser.htm";

/**************************
*  Umleitung für Opera 6  *
**************************/  

// Wenn Browser Opera ist und Version kleiner gleich 6
if(navigator.appName.indexOf("Opera") > -1 && navigator.appVersion.substr(0,1) <= "6")
	// Leite um auf Browserseite
	document.location.href="/wrong_browser.htm";

/*************************
*  Umleitung für IE Mac  *
*************************/  

// Speichere Browserversion in Variable	
var brVer = navigator.userAgent;

// Suche in Browserversion den Teil "MSIE"
var brVerId = brVer.indexOf('MSIE');

// Suche in Browserversion den Teil "Mac"
var brVerId2 = brVer.indexOf('Mac'); 

// Wenn Browser gleich MSIE und Mac dann
if(brVerId > -1 && brVerId2 > -1) {

	// Wenn Opera nicht vorkommt
	if(brVer.indexOf('Opera') == -1)
		// Leite um
		document.location.href='/wrong_browser_mac.htm';		// Target page
}
