//CopyRight (c) TurboVision - all rights reserved - development@turbovision.de

var basedir = "";
var rootdir = "";
var pdf_dir = "";

if (window.location.protocol == "file:")
{
	base_dir = "file://G:/Internet/Guardian-Europe/web/"
}
else
{
//	base_dir = "/web/"
	base_dir = "http://guardian-europe.com/web/"
}


if (window.location.protocol == "file:")
{
	product_dir = "file://G:/Internet/Guardian-Europe/products/"
	pdf_dir = "file://G:/Internet/Guardian-Europe/pdf/"
	local_sites_dir = "file://G:/Internet/Guardian-Europe/local_sites/"
	photo_gallery_dir = "file://G:/Internet/Guardian-Europe/photo_gallery/"
	flash_dir = "file://G:/Internet/Guardian-Europe/flash/"
	popup_dir = "file://G:/Internet/Guardian-Europe/popup/"
}
else
{
	product_dir = "http://guardian-europe.com/products/"
	pdf_dir = "http://guardian-europe.com/pdf/"
        local_sites_dir = "http://guardian-europe.com/local_sites/"
        photo_gallery_dir = "http://guardian-europe.com/photo_gallery/"
	flash_dir = "http://guardian-europe.com/flash/"
	popup_dir = "http://guardian-europe.com/popup/"
}

var pagelang="";
if (Language == "") {pagelang = ""}
if (Language == "English") {pagelang = "en"}
if (Language == "German") {pagelang = "de"}
if (Language == "Spanish") {pagelang = "es"}
if (Language == "French") {pagelang = "fr"}
if (Language == "Polish") {pagelang = "pl"}
if (Language == "Hungarian") {pagelang = "hu"}

var pagelocation="";
if (Location == "") {pagelocation = ""}
if (Location == "Guardian Global") {pagelocation = "guardian_global"}
if (Location == "Guardian Flachglas") {pagelocation = "guardian_flachglas"}
if (Location == "Guardian Oroshaza") {pagelocation = "guardian_hunguard"}
if (Location == "Guardian Llodio") {pagelocation = "guardian_llodio"}
if (Location == "Guardian Bascharage") {pagelocation = "guardian_luxguardI"}
if (Location == "Guardian Dudelange") {pagelocation = "guardian_luxguardII"}
if (Location == "Guardian Navarra") {pagelocation = "guardian_navarra"}
if (Location == "Guardian Czestochowa") {pagelocation = "guardian_poland"}
if (Location == "Guardian UK") {pagelocation = "guardian_uk"}
if (Location == "Guardian Automotive-E") {pagelocation = "guardian_automotive"}
if (Location == "Guardian Ryazan") {pagelocation = "guardian_russia"}


base_dir = base_dir+pagelang+"/";
product_dir = product_dir+pagelang+"/";
pdf_dir = pdf_dir+pagelang+"/";
flash_dir = flash_dir+pagelang+"/";
popup_dir = popup_dir+pagelang+"/";
var image_dir = base_dir+"images/menu_images/";
var theme_image_dir = base_dir+"images/theme_images/";
var right_image_dir = base_dir+"images/right_images/";
var content_image_dir = base_dir+"images/content_images/";
var style_dir = base_dir+"styles/";
var script_dir = base_dir+"/"+"scripts/";
var script_dir_location = base_dir+pagelocation+"/"+"scripts/";

var global_dir = base_dir+"guardian_global/";
var main_dir = base_dir;
base_dir = base_dir+pagelocation+"/";





// Browserabfrage

	var sAppName = navigator.appName;
	var sAppVersion = parseInt(navigator.appVersion);
	var sUA = navigator.userAgent.toLowerCase();


	this.isWin = false;
	this.isMac = false;
	this.isIE = false
	this.isIE4 = false;
	this.isIE5 = false;
	this.isIE55 = false;
	this.isIE5plus = false;
	this.isIE6 = false;
	this.isIE6plus = false;
	this.isNS = false;
	this.isNS4 = false;
	this.isNS6 = false;
	this.isNS6plus = false;
	this.isNotSupported = false;

	this.styleObj = "";
	this.col1 = "";

	//Identify unsupported browser versions (< 4)
	this.isNotSupported = (sAppVersion < 4);

	//Determine platform
	this.isWin = (sUA.indexOf("win")>=1);
	this.isMac = (sUA.indexOf("mac")>=1);

	if (sAppName == "Microsoft Internet Explorer")
	{
		this.isIE = true;

		//create references for x-browser object references
		this.col1 = "all.";
		this.styleObj = ".style";
		this.isIE4 = (sUA.indexOf("msie 4.")>=1);
		this.isIE5 = (sUA.indexOf("msie 5.0")>=1);
		this.isIE55 = (sUA.indexOf("msie 5.5")>=1);
		this.isIE6 = (sUA.indexOf("msie 6")>=1);

		if (this.isIE5 || this.isIE55 || this.isIE6)
		{
			this.isIE5plus = true;
			this.isIE4 = false;
		}
		if (this.isIE6)
		{
			this.isIE6plus = true;
		}
	}
	else if (sAppName == "Netscape")
	{
		this.isNS = true;
		if (sAppVersion == 4)
		{
			this.isNS4 = true;
		}
		if (sAppVersion == 5)
		{
			this.isNS6 = true;
			this.isNS6plus = true;
		}
		document.captureEvents(Event.CLICK);
	}


	var browser_style = "";

if (this.isIE4==true || this.isNS4==true)
{
	browser_style = "_browser4";
}
