base_url = (location.hostname.indexOf("activecheck.info") != -1) ? "/shop/" : "/shop/";

// Globale Variablen fuer den Bild-Tauscher
var old_obj;
var old_url = '';

// Bild-Tauscher
function change_pic(obj, url)
{
	// Alte URL speichern
	old_url = obj.src;

	// Objekt speichern
	old_obj = obj;

	// URL aendern
	obj.src = "img/" + url;
}

// Onmouseout-Funktion
function restore()
{
	old_obj.src = old_url;
}

function get_width()
{
 var x;

 if (self.innerHeight) // all except Explorer
 {
	x = self.innerWidth;
 }
 else if (document.documentElement && document.documentElement.clientHeight)
	// Explorer 6 Strict Mode
 {
	x = document.documentElement.clientWidth;
 }
 else if (document.body) // other Explorers
 {
	x = document.body.clientWidth;
 }
 
 return x;
}

function get_height()
{
 var y;

 if (self.innerHeight) // all except Explorer
 {
	y = self.innerHeight;
 }
 else if (document.documentElement && document.documentElement.clientHeight)
	// Explorer 6 Strict Mode
 {
	y = document.documentElement.clientHeight;
 }
 else if (document.body) // other Explorers
 {
	y = document.body.clientHeight;
 }
 
 return y;
}

function impressum()
{
 w = window.open(base_url + "popup.php?render=impressum", "PopupImpressum", "width=400, height=400, scrollbars=yes");
 
 w.focus();
}

function hotline()
{
 w = window.open("popup.php?render=hotline", "PopupRueckruf", "width=400, height=300, scrollbars=yes");
 
 w.focus();
}

function agb()
{
 w = window.open(base_url + "popup.php?render=agb", "PopupAGB", "width=400, height=400, scrollbars=yes");
 
 w.focus();
}
