var linkset=new Array()
//SPECIFY MENU SETS AND THEIR LINKS. FOLLOW SYNTAX LAID OUT

linkset[0]='<div class="menuitems">&nbsp;&nbsp;&nbsp;&nbsp;<b>Profil:</b></div>'
linkset[0]+='<div class="menuitems"><hr></div>'
linkset[0]+='<div class="menuitems"><a href="../Server_Betreuung_Muenchen/Serverbetreuung_Muenchen.html" target="_top" rel="nofollow">Firmenprofil Connectiongroup</a></div>'
linkset[0]+='<div class="menuitems"><a href="../Web_Design_Muenchen/Webdesign_Muenchen.html" target="_top" rel="nofollow">Referenzen</a></div>'
linkset[0]+='<div class="menuitems"><hr></div>'
linkset[0]+='<div class="menuitems"><a href="http://silverlight.connectiongroup.de/download/connectiongroup_flyer_high_res.pdf" target="_blank" rel="nofollow">Download Factsheet</a></div>'
linkset[0]+='<div class="menuitems"><a href="javascript:ShowVideo();") rel="nofollow">P&auml;sentationsvideo ansehen</a></div>'

linkset[1]='<div class="menuitems">&nbsp;&nbsp;&nbsp;&nbsp;<b>Leistungen:</b></div>'
linkset[1]+='<div class="menuitems"><hr></div>'
linkset[1]+='<div class="menuitems"><a href="../Internet_Agentur_Muenchen/Internetagentur_Muenchen.html" target="_top" rel="nofollow">Kurz&uuml;bersicht</a></div>'
linkset[1]+='<div class="menuitems"><hr></div>'
linkset[1]+='<div class="menuitems"><a href="../System_Administrator_Muenchen/Systemadministrator_Muenchen.html" target="_top" rel="nofollow">EDV, IT, Systemadministration</a></div>'
linkset[1]+='<div class="menuitems"><a href="../Webdesigner_Muenchen/Webdesigner_Muenchen.html" target="_top" rel="nofollow">Internetl&ouml;sungen</a></div>'
linkset[1]+='<div class="menuitems"><a href="../Mediengestalter_Muenchen/Mediengestaltung_Muenchen.html" target="_top" rel="nofollow">Medienservice</a></div>'
linkset[1]+='<div class="menuitems"><a href="../Software_Entwickler_Muenchen/Softwareentwickler_Muenchen.html" target="_top" rel="nofollow">Softwarel&ouml;sungen</a></div>'
linkset[1]+='<div class="menuitems"><hr></div>'
linkset[1]+='<div class="menuitems"><a href="http://silverlight.connectiongroup.de/download/connectiongroup_flyer_high_res.pdf" target="_blank" rel="nofollow">Download Factsheet</a></div>'
linkset[1]+='<div class="menuitems"><a href="javascript:ShowVideo()") rel="nofollow">P&auml;sentationsvideo ansehen</a></div>'

linkset[2]='<div class="menuitems">&nbsp;&nbsp;&nbsp;&nbsp;<b>Impressum:</b></div>'
linkset[2]+='<div class="menuitems"><hr></div>'
linkset[2]+='<div class="menuitems"><a href="../Servernotdienst_Muenchen/Server_Notdienst_Muenchen.html" target="_top" rel="nofollow">Kontaktdaten / Impressum</a></div>'
linkset[2]+='<div class="menuitems"><a href="http://maps.google.de/maps?hl=de&um=1&ie=UTF-8&cid=0,0,1568410286993399112&fb=1&hq=softwarehaus&hnear=m%C3%BCnchen&gl=de&daddr=Landsberger+Stra%C3%9Fe+23,+82110+Germering&geocode=15414254780103475652,48.131718,11.370808&ei=_h7HS4-EC4-nOOvh2JkN&sa=X&oi=local_result&ct=directions-to&resnum=1&ved=0CBcQngIwAA" target="_blank" rel="nofollow">Anfahrtsplan</a></div>'

linkset[3]='<div class="menuitems">&nbsp;&nbsp;&nbsp;&nbsp;<b>Silverlight Version:</b></div>'
linkset[3]+='<div class="menuitems"><hr></div>'
linkset[3]+='<div class="menuitems"><a href="http://silverlight.connectiongroup.de" target="_blank" rel="nofollow">Silverlight Version -> GO!</a></div>'
////No need to edit beyond here

var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1
var ns6=document.getElementById&&!document.all
var ns4=document.layers

function showmenu(e,which){

if (!document.all&&!document.getElementById&&!document.layers)
return

clearhidemenu()

menuobj=ie4? document.all.popmenu : ns6? document.getElementById("popmenu") : ns4? document.popmenu : ""
menuobj.thestyle=(ie4||ns6)? menuobj.style : menuobj

if (ie4||ns6)
menuobj.innerHTML=which
else{
menuobj.document.write('<layer name=gui bgColor=#E6E6E6 width=165 onmouseover="clearhidemenu()" onmouseout="hidemenu()">'+which+'</layer>')
menuobj.document.close()
}

menuobj.contentwidth=(ie4||ns6)? menuobj.offsetWidth : menuobj.document.gui.document.width
menuobj.contentheight=(ie4||ns6)? menuobj.offsetHeight : menuobj.document.gui.document.height
eventX=ie4? event.clientX : ns6? e.clientX : e.x
eventY=ie4? event.clientY : ns6? e.clientY : e.y

//Find out how close the mouse is to the corner of the window
var rightedge=ie4? document.body.clientWidth-eventX : window.innerWidth-eventX
var bottomedge=ie4? document.body.clientHeight-eventY : window.innerHeight-eventY

//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<menuobj.contentwidth)
//move the horizontal position of the menu to the left by it's width
menuobj.thestyle.left=ie4? document.body.scrollLeft+eventX-menuobj.contentwidth : ns6? window.pageXOffset+eventX-menuobj.contentwidth : eventX-menuobj.contentwidth
else
//position the horizontal position of the menu where the mouse was clicked
menuobj.thestyle.left=ie4? document.body.scrollLeft+eventX : ns6? window.pageXOffset+eventX : eventX

//same concept with the vertical position
if (bottomedge<menuobj.contentheight)
menuobj.thestyle.top=ie4? document.body.scrollTop+eventY-menuobj.contentheight0 : ns6? window.pageYOffset+eventY-menuobj.contentheight : eventY-menuobj.contentheight
else
menuobj.thestyle.top=ie4? document.body.scrollTop+event.clientY+10 : ns6? window.pageYOffset+eventY+10 : eventY
menuobj.thestyle.visibility="visible"
return false
}

function contains_ns6(a, b) {
//Determines if 1 element in contained in another- by Brainjar.com
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function hidemenu(){
if (window.menuobj)
menuobj.thestyle.visibility=(ie4||ns6)? "hidden" : "hide"
}

function dynamichide(e){
if (ie4&&!menuobj.contains(e.toElement))
hidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
hidemenu()
}

function delayhidemenu(){
if (ie4||ns6||ns4)
delayhide=setTimeout("hidemenu()",500)
}

function clearhidemenu(){
if (window.delayhide)
clearTimeout(delayhide)
}

function highlightmenu(e,state){
if (document.all)
source_el=event.srcElement
else if (document.getElementById)
source_el=e.target
if (source_el.className=="menuitems"){
source_el.id=(state=="on")? "mouseoverstyle" : ""
}
else{

while(source_el.id!="popmenu"){
source_el=document.getElementById? source_el.parentNode : source_el.parentElement
if (source_el.className=="menuitems"){
source_el.id=(state=="on")? "mouseoverstyle" : ""
}
}
}
}

if (ie4||ns6)
document.onclick=hidemenu





//	Show a site in a popup window
function CallUrl(UrlLocation, Width, Height, Scrollbars)
{
	var browserPosX = 0;
	var browserPosY = 0;
	var browserWidth = 0;
	var browserHeight = 0;
	var screenWidth = screen.width;
	var screenHeight = screen.height;
	var firefox = 0;


	Width = Width > screenWidth ? screenWidth : Width;
	Height = Height > screenHeight ? screenHeight : Height;


	// Firefox...
	if (window.screenX)
	{
		browserPosX = window.screenX;
		browserWidth = window.innerWidth;
		
		browserPosY = window.screenY;
		browserHeight = window.innerHeight;
		
		firefox = 1;
	}
	// IE...
	else if (window.screenLeft)
	{
		browserPosX = window.screenLeft;
		browserWidth = document.body.scrollWidth;
		
		browserPosY = window.screenTop;
		browserHeight = document.body.scrollHeight;
	}


	var popupWindow = window.open(UrlLocation,"_blank","toolbar=no,location=no,status=no,menubar=no,scrollbars=" + Scrollbars + ",width=" + Width + ",height=" + Height + ",resizable=no,screenX=0,screenY=0");
	
	
	var posX = (screenWidth - Width) / 2;
	var posY = (screenHeight - Height) / 2;


	popupWindow.moveTo(posX, posY);
}



//	Show video popup
function ShowVideo()
{
	desktop = window.open("../youtube/connectiongroup_youtube_video.html","_blank","toolbar=no,location=no,status=no,menubar=no,scrollbars=no,width=658,height=525,resizable=no,screenX=0,screenY=0");
}




//	Image swapper
function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		preloadFlag = true;
	}
}



//	Google analytics
var _gaq = _gaq || []; 
  _gaq.push(['_setAccount', 'UA-XXXXX-X']); 
  _gaq.push(['_trackPageview']); 
 
  (function() { 
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; 
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; 
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); 
  })(); 