var re = /Schaffhausen Communication Group/i

document.title.replace(re, "SCHAFFHAUSEN COMMUNICATION GROUP")

var navActive = "";

function kontakt() {
	var win = open('../../static/kontakt.html','Kontakt','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=460,height=630')
	if(win) {
		win.focus()
	}
}
function bewerbung() {
	var win = open('../../static/bewerbung.html','Bewerbung','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=460,height=630')
	if(win) {
		win.focus()
	}
}
function presse() {
	var win = open('../../static/presse_anfrage.html','Presse','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=460,height=600');
	if(win) {
		win.focus()
	}
}

function takeACloserLook(file, width, height) {
	var w = (new Number(width)) + 10;
	var h = (new Number(height)) + 40;

	var win = open('../../static/bild_vergroesserung.html?'+file, 'CloserTo', 'toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=yes,width='+w+',height='+h);
	if(win) {
    	win.focus()
    }
	
}

function WinQuickySpielschein() {
	open('../../../static/games/quicky_spielschein.html','QuickySpielschein','width=615,height=770')
}

function WinQuickyTerminal() {
	open('../../../static/games/quicky_terminal.html','QuickyTerminal','width=768,height=576')
}

function WinSchatzinsel() {
	open('../../../static/games/schatzinsel.html','Schatzinsel','width=713,height=400')
}

function WinTorwandchance() {
	open('../../../static/games/torwand.html','Torwand','width=623,height=296')
}

function LafargeZement() {
	open('http://217.115.141.8/online/virt_zem/','','dependent=no,locationbar=no,menubar=no,resizable=yes,scrollbars=yes,status=yes,height=500,width=840');
}

function WinHTPresentation() {
	open('../../../static/ht_praese/','HellermannTyton','width=1024,height=768')
}


function WinWikingerGames() {
	open('/wikinger/play.html','WikingerSpiele','width=910,height=590')
}

function financeScout() {
	open('/financescout24/financescout.html','FinanceScout24','width=980,height=509')
}

function WinGSTVSpot() {
	open('../../../static/gs_tv/gs_tv.html','GSTVSpot','width=384,height=288')
}

function WinDONDTrailer() {
	open('../../../static/dond/','DONDTrailer','width=311,height=248')
}



function gotoExtern(url) {

	var win = window.open(url,'','');
	if(win) {
		win.focus();
	}
}

var stay = false;

function Menu_clickPoint(name) {
}

function Menu_onMouseOverPoint(name) {
	showSubNav(name)
}


function Menu_onMouseOutPoint(name) {
	setTimeout('if(!stay) hideSubNav("'+name+'")', 100)
}


function Menu_onMouseOverSub(name) {
	stay = true;
}


function Menu_onMouseOutSub(name, arrow, dir) {
	stay = false;
	hideSubNav(name)
	navActive = ""
	navOut(name,arrow,dir)
}



function positionLogo(min) {
	var logo = MM_findObj("logo");
	
	if(logo.style) {
		var max = windowHeight();
		//alert(max)
		var top = max - parseInt(logo.style.height);
		if(top > min) {
			logo.style.top = top + "px"
		}
	}
}

function sizeContent(top, min) {
	var content = MM_findObj("content");
	
	if(content.style) {
		var max    = windowHeight();
		var height = max - top - 20;
		if(height > min) {
			content.style.height = height + "px"
		}
	}
}


function windowHeight() {
	if(document.all && document.body) {
		return document.body.clientHeight
	} 
	if(window.innerHeight) {
		return window.innerHeight
	}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}