﻿$(document).ready(function () {
    var menuItems = $("div .root.static > li");
    $(menuItems).each(
			function () {
			    AddEventToMenuItem(this);
			}
			);
});
var mcTopTmpl = '<img src="${BackgroundImg}" style="width:695px;height:374px" /><div id="maincontent"><div id="transboxtitle">${Title}</div><div id="transboxcontent"><div>{{html Content}}</div></div><div id="transbox"></div></div>';
var mc_erfolgsfaktor = '<img src="${BackgroundImg}" style="height:374px;width:695px" /><div id="maincontent"><div style="z-index: 2;position:relative;width:165px;height:80px;background-color:#FFCC00;margin-top:-20px;filter:alpha(opacity=60);-moz-opacity:0.6;-khtml-opacity: 0.6;opacity:0.6;"></div><div style="z-index: 3;position:relative;font: 24px/28px Verdana; color:#FFCC00;margin-left:175px;margin-top:5px">${Title}</div><div style="z-index: 4;position:relative;font: 17px/20px Verdana; color:#FFFFFF;margin-left:175px;margin-top:-120px;width:498px"><div style="padding-left:2px;padding-right:3px">{{html Content}}</div></div><div id="transbox" style="margin-top:-85px;margin-left:165px;width:530px;height:135px">	</div></div>';
var mc_herausforderung = '<img src="${BackgroundImg}" style="height:374px;width:695px" /><div id="maincontent"><div style="z-index:2;position:relative; width:165px;height:80px;background-color:#FFCC00;margin-top:-30px;filter:alpha(opacity=60);-moz-opacity:0.6;-khtml-opacity: 0.6;opacity:0.6;"></div><div style="z-index: 3;position:relative;font: 24px/28px Verdana; color:#FFCC00;margin-left:180px;margin-top:0px">${Title}</div><div style="z-index: 4;position:relative;font: 17px/20px Verdana; color:#FFFFFF;margin-left:175px;margin-top:-160px;width:500px"><div style="padding-left:2px;padding-right:3px">{{html Content}}</div></div><div id="transbox" style="margin-top:-125px;margin-left:165px;width:530px;height:175px"></div></div>';
var mc_losung = '<img src="${BackgroundImg}" style="height:374px;width:695px" /><div id="maincontent"><div style="z-index: 2;position:relative;width:165px;height:80px;background-color:#FFCC00;margin-top:-70px;filter:alpha(opacity=60);-moz-opacity:0.6;-khtml-opacity: 0.6;opacity:0.6;"></div><div style="z-index: 3;position:relative;font: 24px/28px Verdana; color:#FFCC00;margin-left:175px;margin-top:-15px;width:500px"><div style="padding-left:2px;padding-right:3px">${Title}</div></div><div style="z-index: 4;position:relative;font: 17px/20px Verdana; color:#FFFFFF;margin-left:175px;margin-top:-190px;width:500px"><div style="padding-left:2px;padding-right:3px">{{html Content}}.</div></div><div id="transbox" style="margin-top:-130px;margin-left:165px;width:530px;height:210px"></div></div>';
var mc_crm = '<img src="${BackgroundImg}" style="height:374px;width:695px" /><div id="maincontent"><div style="z-index: 2;position:relative;width:165px;height:80px;background-color:#FFCC00;margin-top:-90px;filter:alpha(opacity=60);-moz-opacity:0.6;-khtml-opacity: 0.6;opacity:0.6;"></div><div style="z-index: 4;position:relative;font: 17px/20px Verdana; color:#FFFFFF;margin-left:175px;margin-top:-60px;width:500px"><div style="padding-left:2px;padding-right:3px">{{html Content}}</div></div><div id="transbox" style="margin-top:-105px;margin-left:165px;width:530px;height:110px"></div></div>';
var mc_businessItel = '<img src="${BackgroundImg}" style="height:374px;width:695px" /><div id="maincontent"><div style="z-index: 2;position:relative;width:165px;height:80px;background-color:#FFCC00;margin-top:-75px;filter:alpha(opacity=60);-moz-opacity:0.6;-khtml-opacity: 0.6;opacity:0.6;"></div><div style="z-index: 4;position:relative;font: 17px/20px Verdana; color:#FFFFFF;margin-left:175px;margin-top:-54px;width:500px"><div style="padding-left:2px;padding-right:3px">{{html Content}}</div></div><div id="transbox" style="margin-top:-105px;margin-left:165px;width:530px;height:112px"></div></div>';
var mc_traditionell = '<img src="${BackgroundImg}" style="height:374px;width:695px" /><div id="maincontent">	<div style="z-index: 2;position:relative;width:165px;height:80px;background-color:#FFCC00;margin-top:-50px;filter:alpha(opacity=60);-moz-opacity:0.6;-khtml-opacity: 0.6;opacity:0.6;"></div><div style="z-index: 4;position:relative;font: 17px/20px Verdana; color:#FFFFFF;margin-left:175px;margin-top:-54px;width:500px"><div style="padding-left:2px;padding-right:3px">{{html Content}}</div></div><div id="transbox" style="margin-top:-105px;margin-left:165px;width:530px;height:112px"></div></div>';
var mc_cloudcomputing = '<img src="${BackgroundImg}" style="height:374px;width:695px" /><div id="maincontent"><div style="z-index: 2;position:relative;width:165px;height:80px;background-color:#FFCC00;margin-top:-30px;filter:alpha(opacity=60);-moz-opacity:0.6;-khtml-opacity: 0.6;opacity:0.6;"></div><div style="z-index: 4;position:relative;font: 17px/20px Verdana; color:#FFFFFF;margin-left:175px;margin-top:-135px;width:500px"><div style="padding-left:2px;padding-right:3px">{{html Content}}</div></div><div id="transbox" style="margin-top:-105px;margin-left:165px;width:530px;height:112px"></div></div>';
var mc_partnerschaft = '<img src="${BackgroundImg}" style="height:374px;width:695px" /><div id="maincontent"><div style="z-index: 2;position:relative;width:165px;height:80px;background-color:#FFCC00;margin-top:-185px;filter:alpha(opacity=60);-moz-opacity:0.6;-khtml-opacity: 0.6;opacity:0.6;"></div><div style="z-index: 3;position:relative;font: 29px/29px Verdana; color:#FFCC00;margin-left:175px;margin-top:-45px">${Title}</div><div style="z-index: 4;position:relative;font: 17px/20px Verdana; color:#FFFFFF;margin-left:175px;margin-top:5px;width:500px"><div style="padding-left:2px;padding-right:3px">{{html Content}}</div></div><div id="transbox" style="margin-top:-105px;margin-left:165px;width:530px;height:112px"></div></div>';
var mc_office365 = '<img src="${BackgroundImg}" style="height:374px;width:695px" /><div id="maincontent"><div style="z-index: 2;position:relative;width:165px;height:80px;background-color:#FFCC00;margin-top:-55px;filter:alpha(opacity=60);-moz-opacity:0.6;-khtml-opacity: 0.6;opacity:0.6;"></div><div style="z-index: 3;position:relative;font: 24px/28px Verdana; color:#FFCC00;margin-left:175px;margin-top:-40px;width:500px"><div style="padding-left:2px;padding-right:3px">${Title}</div></div><div style="z-index: 4;position:relative;font: 17px/20px Verdana; color:#FFFFFF;margin-left:175px;margin-top:-200px;width:500px"><div style="padding-left:2px;padding-right:3px">{{html Content}}</div></div><div id="transbox" style="margin-top:-125px;margin-left:165px;width:530px;height:220px"></div></div>';
var mc_dynamiccrm = '<img src="${BackgroundImg}" style="height:374px;width:695px" /><div id="maincontent"><div style="z-index: 2;position:relative;width:165px;height:80px;background-color:#FFCC00;margin-top:-65px;filter:alpha(opacity=60);-moz-opacity:0.6;-khtml-opacity: 0.6;opacity:0.6;"></div><div style="z-index: 3;position:relative;font: 24px/28px Verdana; color:#FFCC00;margin-left:175px;margin-top:-45px;width:500px"><div style="padding-left:2px;padding-right:3px">${Title}</div></div><div style="z-index: 4;position:relative;font: 17px/20px Verdana; color:#FFFFFF;margin-left:175px;margin-top:-165px;width:500px"><div style="padding-left:2px;padding-right:3px">{{html Content}}</div></div><div id="transbox" style="margin-top:-105px;margin-left:165px;width:530px;height:180px"></div></div>';
var mc_colsulting = '<img src="${BackgroundImg}" style="height:374px;width:695px" /><div id="maincontent"><div style="z-index: 2;position:relative;width:165px;height:80px;background-color:#FFCC00;margin-top:-90px;filter:alpha(opacity=60);-moz-opacity:0.6;-khtml-opacity: 0.6;opacity:0.6;"></div><div style="z-index: 3;position:relative;font: 10px/10px Verdana; color:#FFFFFF;margin-left:175px;margin-top:65px;width:500px"><div style="padding-left:2px;padding-right:3px">${Title}</div></div><div style="z-index: 4;position:relative;font: 17px/20px Verdana; color:#FFFFFF;margin-left:175px;margin-top:-130px;width:500px"><div style="padding-left:2px;padding-right:3px">{{html Content}}</div></div><div id="transbox" style="margin-top:-105px;margin-left:165px;width:530px;height:145px"></div></div>';
var mc_engineering = '<img src="${BackgroundImg}" style="height:374px;width:695px" /><div id="maincontent"><div style="z-index: 2;position:relative;width:165px;height:80px;background-color:#FFCC00;margin-top:-210px;filter:alpha(opacity=60);-moz-opacity:0.6;-khtml-opacity: 0.6;opacity:0.6;"></div><div style="z-index: 3;position:relative;font: 10px/10px Verdana; color:#FFFFFF;margin-left:175px;margin-top:45px;width:500px"><div style="padding-left:2px;padding-right:3px">${Title}</div></div><div style="z-index: 4;position:relative;font: 17px/20px Verdana; color:#FFFFFF;margin-left:175px;margin-top:-150px;width:500px"><div style="padding-left:2px;padding-right:3px">{{html Content}}.</div></div><div id="transbox" style="margin-top:-123px;margin-left:165px;width:530px;height:165px"></div></div>';
var mc_wartungsupport = '<img src="${BackgroundImg}" style="height:374px;width:695px" /><div id="maincontent"><div style="z-index: 2;position:relative;width:165px;height:80px;background-color:#FFCC00;margin-top:-135px;filter:alpha(opacity=60);-moz-opacity:0.6;-khtml-opacity: 0.6;opacity:0.6;"></div><div style="z-index: 3;position:relative;font: 10px/10px Verdana; color:#FFFFFF;margin-left:175px;margin-top:-40px;width:500px"><div style="padding-left:2px;padding-right:3px">${Title}</div></div><div style="z-index: 4;position:relative;font: 17px/20px Verdana; color:#FFFFFF;margin-left:175px;margin-top:-105px;width:500px"><div style="padding-left:2px;padding-right:3px">{{html Content}}</div></div><div id="transbox" style="margin-top:-85px;margin-left:165px;width:530px;height:120px"></div></div>';
var mc_referenzen = '<img src="${BackgroundImg}" style="height:374px;width:695px" /><div id="maincontent">	<div style="z-index: 3;position:relative;font: 29px/29px Verdana; color:#FFCC00;margin-left:470px;margin-top:-205px;width:500px"><div style="padding-left:2px;padding-right:3px">${Title}</div></div><div style="z-index: 4;position:relative;font: 17px/20px Verdana; color:#FFFFFF;margin-left:470px;margin-top:15px;width:500px"><div style="padding-left:2px;padding-right:3px">{{html Content}}</div></div><div id="transbox" style="margin-top:-336px;margin-left:460px;width:235px;height:374px"></div></div>';
var mc_news = '<img src="${BackgroundImg}" style="height:374px;width:695px" /><div id="maincontent"><div style="z-index: 2;position:relative;width:165px;height:80px;background-color:#FFCC00;margin-top:-155px;filter:alpha(opacity=60);-moz-opacity:0.6;-khtml-opacity: 0.6;opacity:0.6;"></div><div style="z-index: 3;position:relative;font: 24px/28px Verdana; color:#FFCC00;margin-left:175px;margin-top:-65px;width:500px"><div style="padding-left:2px;padding-right:3px">${Title}</div></div><div style="z-index: 4;position:relative;font: 17px/20px Verdana; color:#FFFFFF;margin-left:175px;margin-top:-80px;width:500px"><div style="padding-left:2px;padding-right:3px">{{html Content}}</div></div><div id="transbox" style="margin-top:-45px;margin-left:165px;width:530px;height:95px"></div></div>';
var mc_mondayblog = '<img src="${BackgroundImg}" style="height:374px;width:695px" /><div id="maincontent"><div style="z-index: 2;position:relative;width:165px;height:80px;background-color:#FFCC00;margin-top:-145px;filter:alpha(opacity=60);-moz-opacity:0.6;-khtml-opacity: 0.6;opacity:0.6;"></div><div style="z-index: 3;position:relative;font: 24px/28px Verdana; color:#FFCC00;margin-left:175px;margin-top:-70px;width:500px"><div style="padding-left:2px;padding-right:3px">${Title}</div></div><div style="z-index: 4;position:relative;font: 24px/28px Verdana; color:#FFFFFF;margin-left:175px;margin-top:-90px;width:500px"><div style="padding-left:2px;padding-right:3px">{{html Content}}</div></div><div id="transbox" style="margin-top:-60px;margin-left:165px;width:530px;height:100px"></div></div>';
var mc_name = '<img src="${BackgroundImg}" style="height:374px;width:695px" /><div id="maincontent"><div style="z-index: 2;position:relative;width:165px;height:80px;background-color:#FFCC00;margin-top:-120px;filter:alpha(opacity=60);-moz-opacity:0.6;-khtml-opacity: 0.6;opacity:0.6;"></div><div style="z-index: 3;position:relative;font: 24px/28px Verdana; color:#FFCC00;margin-left:175px;margin-top:10px;width:500px"><div style="padding-left:2px;padding-right:3px">${Title}</div></div><div style="z-index: 4;position:relative;font: 17px/20px Verdana; color:#FFFFFF;margin-left:175px;margin-top:-245px;width:500px"><div style="padding-left:2px;padding-right:3px">{{html Content}}</div></div><div id="transbox" style="margin-top:-185px;margin-left:165px;width:530px;height:258px"></div></div>';
var mc_management = '<img src="${BackgroundImg}" style="height:374px;width:695px"; /><div id="maincontent"><div style="z-index: 4;position:relative;font: 17px/20px Verdana; color:#FFFFFF;margin-left:178px;margin-top:-15px;width:500px"><div style="padding-left:2px;padding-right:3px">{{html Content}}</div></div></div>';
var mc_jobs = '<img src="${BackgroundImg}" style="height:374px;width:695px" /><div id="maincontent"><div style="z-index: 2;position:relative;width:165px;height:80px;background-color:#FFCC00;margin-top:-210px;filter:alpha(opacity=60);-moz-opacity:0.6;-khtml-opacity: 0.6;opacity:0.6;"></div><div style="z-index: 3;position:relative;font: 29px/29px Verdana; color:#FFCC00;margin-left:175px;margin-top:-95px;width:500px"><div style="padding-left:2px;padding-right:3px">${Title}</div></div><div style="z-index: 4;position:relative;font: 17px/20px Verdana; color:#FFFFFF;margin-left:175px;margin-top:-5px;width:500px"><div style="padding-left:2px;padding-right:3px">{{html Content}}</div></div><div id="transbox" style="margin-top:-160px;margin-left:165px;width:530px;height:170px"></div></div>';
var mc_kontakt = '<img src="${BackgroundImg}" style="height:374px;width:695px" /><div id="maincontent"><div style="z-index: 3;position:relative;font: 29px/29px Verdana; color:#FFCC00;margin-left:450px;margin-top:-205px;width:500px"><div style="padding-left:2px;padding-right:3px">${Title}</div></div><div style="z-index: 4;position:relative;font: 17px/20px Verdana; color:#FFFFFF;margin-left:450px;margin-top:10px;width:215px"><div style="padding-left:2px;padding-right:3px">{{html Content}}</div></div><div id="transbox" style="margin-top:-342.5px;margin-left:440px;width:255px;height:374px"></div></div>';
var mc_image = '<img src="${BackgroundImg}" style="height:374px;width:695px" />';


/*Templates for IE7 */
var ie7_mcTopTmpl = '<div style="height:377px;width:695px;"><img src="${BackgroundImg}" style="width:695px;height:374px" /></div><div id="maincontent"><div id="transboxtitle">${Title}</div><div id="transboxcontent"><div>{{html Content}}</div></div><div id="transbox"></div></div>';
var ie7_mc_erfolgsfaktor = '<div style="height:377px;width:695px;"><img src="${BackgroundImg}" style="height:374px;width:695px" /></div><div id="maincontent"><div style="z-index: 2;position:relative;width:165px;height:80px;background-color:#FFCC00;margin-top:-20px;filter:alpha(opacity=60);-moz-opacity:0.6;-khtml-opacity: 0.6;opacity:0.6;"></div><div style="z-index: 3;position:relative;font: 24px/28px Verdana; color:#FFCC00;margin-left:175px;margin-top:5px">${Title}</div><div style="z-index: 4;position:relative;font: 17px/20px Verdana; color:#FFFFFF;margin-left:175px;margin-top:-120px;width:498px"><div style="padding-left:2px;padding-right:3px">{{html Content}}</div></div><div id="transbox" style="margin-top:-85px;margin-left:165px;width:530px;height:135px">	</div></div>';
var ie7_mc_herausforderung = '<div style="height:377px;width:695px;"><img src="${BackgroundImg}" style="height:374px;width:695px" /></div><div id="maincontent"><div style="z-index:2;position:relative; width:165px;height:80px;background-color:#FFCC00;margin-top:-30px;filter:alpha(opacity=60);-moz-opacity:0.6;-khtml-opacity: 0.6;opacity:0.6;"></div><div style="z-index: 3;position:relative;font: 24px/28px Verdana; color:#FFCC00;margin-left:180px;margin-top:0px">${Title}</div><div style="z-index: 4;position:relative;font: 17px/20px Verdana; color:#FFFFFF;margin-left:175px;margin-top:-160px;width:500px"><div style="padding-left:2px;padding-right:3px">{{html Content}}</div></div><div id="transbox" style="margin-top:-125px;margin-left:165px;width:530px;height:175px"></div></div>';
var ie7_mc_losung = '<div style="height:377px;width:695px;"><img src="${BackgroundImg}" style="height:374px;width:695px" /></div><div id="maincontent"><div style="z-index: 2;position:relative;width:165px;height:80px;background-color:#FFCC00;margin-top:-70px;filter:alpha(opacity=60);-moz-opacity:0.6;-khtml-opacity: 0.6;opacity:0.6;"></div><div style="z-index: 3;position:relative;font: 24px/28px Verdana; color:#FFCC00;margin-left:175px;margin-top:-15px;width:500px"><div style="padding-left:2px;padding-right:3px">${Title}</div></div><div style="z-index: 4;position:relative;font: 17px/20px Verdana; color:#FFFFFF;margin-left:175px;margin-top:-190px;width:500px"><div style="padding-left:2px;padding-right:3px">{{html Content}}.</div></div><div id="transbox" style="margin-top:-130px;margin-left:165px;width:530px;height:210px"></div></div>';
var ie7_mc_crm = '<div style="height:377px;width:695px;"><img src="${BackgroundImg}" style="height:374px;width:695px" /></div><div id="maincontent"><div style="z-index: 2;position:relative;width:165px;height:80px;background-color:#FFCC00;margin-top:-90px;filter:alpha(opacity=60);-moz-opacity:0.6;-khtml-opacity: 0.6;opacity:0.6;"></div><div style="z-index: 4;position:relative;font: 17px/20px Verdana; color:#FFFFFF;margin-left:175px;margin-top:-60px;width:500px"><div style="padding-left:2px;padding-right:3px">{{html Content}}</div></div><div id="transbox" style="margin-top:-105px;margin-left:165px;width:530px;height:110px"></div></div>';
var ie7_mc_businessItel = '<div style="height:377px;width:695px;"><img src="${BackgroundImg}" style="height:374px;width:695px" /></div><div id="maincontent"><div style="z-index: 2;position:relative;width:165px;height:80px;background-color:#FFCC00;margin-top:-75px;filter:alpha(opacity=60);-moz-opacity:0.6;-khtml-opacity: 0.6;opacity:0.6;"></div><div style="z-index: 4;position:relative;font: 17px/20px Verdana; color:#FFFFFF;margin-left:175px;margin-top:-54px;width:500px"><div style="padding-left:2px;padding-right:3px">{{html Content}}</div></div><div id="transbox" style="margin-top:-105px;margin-left:165px;width:530px;height:112px"></div></div>';
var ie7_mc_traditionell = '<div style="height:377px;width:695px;"><img src="${BackgroundImg}" style="height:374px;width:695px" /></div><div id="maincontent">	<div style="z-index: 2;position:relative;width:165px;height:80px;background-color:#FFCC00;margin-top:-50px;filter:alpha(opacity=60);-moz-opacity:0.6;-khtml-opacity: 0.6;opacity:0.6;"></div><div style="z-index: 4;position:relative;font: 17px/20px Verdana; color:#FFFFFF;margin-left:175px;margin-top:-54px;width:500px"><div style="padding-left:2px;padding-right:3px">{{html Content}}</div></div><div id="transbox" style="margin-top:-105px;margin-left:165px;width:530px;height:112px"></div></div>';
var ie7_mc_cloudcomputing = '<div style="height:377px;width:695px;"><img src="${BackgroundImg}" style="height:374px;width:695px" /></div><div id="maincontent"><div style="z-index: 2;position:relative;width:165px;height:80px;background-color:#FFCC00;margin-top:-30px;filter:alpha(opacity=60);-moz-opacity:0.6;-khtml-opacity: 0.6;opacity:0.6;"></div><div style="z-index: 4;position:relative;font: 17px/20px Verdana; color:#FFFFFF;margin-left:175px;margin-top:-135px;width:500px"><div style="padding-left:2px;padding-right:3px">{{html Content}}</div></div><div id="transbox" style="margin-top:-105px;margin-left:165px;width:530px;height:112px"></div></div>';
var ie7_mc_partnerschaft = '<div style="height:377px;width:695px;"><img src="${BackgroundImg}" style="height:374px;width:695px" /></div><div id="maincontent"><div style="z-index: 2;position:relative;width:165px;height:80px;background-color:#FFCC00;margin-top:-185px;filter:alpha(opacity=60);-moz-opacity:0.6;-khtml-opacity: 0.6;opacity:0.6;"></div><div style="z-index: 3;position:relative;font: 29px/29px Verdana; color:#FFCC00;margin-left:175px;margin-top:-45px">${Title}</div><div style="z-index: 4;position:relative;font: 17px/20px Verdana; color:#FFFFFF;margin-left:175px;margin-top:5px;width:500px"><div style="padding-left:2px;padding-right:3px">{{html Content}}</div></div><div id="transbox" style="margin-top:-105px;margin-left:165px;width:530px;height:112px"></div></div>';
var ie7_mc_office365 = '<div style="height:377px;width:695px;"><img src="${BackgroundImg}" style="height:374px;width:695px" /></div><div id="maincontent"><div style="z-index: 2;position:relative;width:165px;height:80px;background-color:#FFCC00;margin-top:-55px;filter:alpha(opacity=60);-moz-opacity:0.6;-khtml-opacity: 0.6;opacity:0.6;"></div><div style="z-index: 3;position:relative;font: 24px/28px Verdana; color:#FFCC00;margin-left:175px;margin-top:-40px;width:500px"><div style="padding-left:2px;padding-right:3px">${Title}</div></div><div style="z-index: 4;position:relative;font: 17px/20px Verdana; color:#FFFFFF;margin-left:175px;margin-top:-200px;width:500px"><div style="padding-left:2px;padding-right:3px">{{html Content}}</div></div><div id="transbox" style="margin-top:-125px;margin-left:165px;width:530px;height:220px"></div></div>';
var ie7_mc_dynamiccrm = '<div style="height:377px;width:695px;"><img src="${BackgroundImg}" style="height:374px;width:695px" /></div><div id="maincontent"><div style="z-index: 2;position:relative;width:165px;height:80px;background-color:#FFCC00;margin-top:-65px;filter:alpha(opacity=60);-moz-opacity:0.6;-khtml-opacity: 0.6;opacity:0.6;"></div><div style="z-index: 3;position:relative;font: 24px/28px Verdana; color:#FFCC00;margin-left:175px;margin-top:-45px;width:500px"><div style="padding-left:2px;padding-right:3px">${Title}</div></div><div style="z-index: 4;position:relative;font: 17px/20px Verdana; color:#FFFFFF;margin-left:175px;margin-top:-165px;width:500px"><div style="padding-left:2px;padding-right:3px">{{html Content}}</div></div><div id="transbox" style="margin-top:-105px;margin-left:165px;width:530px;height:180px"></div></div>';
var ie7_mc_colsulting = '<div style="height:377px;width:695px;"><img src="${BackgroundImg}" style="height:374px;width:695px" /></div><div id="maincontent"><div style="z-index: 2;position:relative;width:165px;height:80px;background-color:#FFCC00;margin-top:-90px;filter:alpha(opacity=60);-moz-opacity:0.6;-khtml-opacity: 0.6;opacity:0.6;"></div><div style="z-index: 3;position:relative;font: 10px/10px Verdana; color:#FFFFFF;margin-left:175px;margin-top:65px;width:500px"><div style="padding-left:2px;padding-right:3px">${Title}</div></div><div style="z-index: 4;position:relative;font: 17px/20px Verdana; color:#FFFFFF;margin-left:175px;margin-top:-130px;width:500px"><div style="padding-left:2px;padding-right:3px">{{html Content}}</div></div><div id="transbox" style="margin-top:-105px;margin-left:165px;width:530px;height:145px"></div></div>';
var ie7_mc_engineering = '<div style="height:377px;width:695px;"><img src="${BackgroundImg}" style="height:374px;width:695px" /></div><div id="maincontent"><div style="z-index: 2;position:relative;width:165px;height:80px;background-color:#FFCC00;margin-top:-210px;filter:alpha(opacity=60);-moz-opacity:0.6;-khtml-opacity: 0.6;opacity:0.6;"></div><div style="z-index: 3;position:relative;font: 10px/10px Verdana; color:#FFFFFF;margin-left:175px;margin-top:45px;width:500px"><div style="padding-left:2px;padding-right:3px">${Title}</div></div><div style="z-index: 4;position:relative;font: 17px/20px Verdana; color:#FFFFFF;margin-left:175px;margin-top:-150px;width:500px"><div style="padding-left:2px;padding-right:3px">{{html Content}}.</div></div><div id="transbox" style="margin-top:-123px;margin-left:165px;width:530px;height:165px"></div></div>';
var ie7_mc_wartungsupport = '<div style="height:377px;width:695px;"><img src="${BackgroundImg}" style="height:374px;width:695px" /></div><div id="maincontent"><div style="z-index: 2;position:relative;width:165px;height:80px;background-color:#FFCC00;margin-top:-135px;filter:alpha(opacity=60);-moz-opacity:0.6;-khtml-opacity: 0.6;opacity:0.6;"></div><div style="z-index: 3;position:relative;font: 10px/10px Verdana; color:#FFFFFF;margin-left:175px;margin-top:-40px;width:500px"><div style="padding-left:2px;padding-right:3px">${Title}</div></div><div style="z-index: 4;position:relative;font: 17px/20px Verdana; color:#FFFFFF;margin-left:175px;margin-top:-105px;width:500px"><div style="padding-left:2px;padding-right:3px">{{html Content}}</div></div><div id="transbox" style="margin-top:-85px;margin-left:165px;width:530px;height:120px"></div></div>';
var ie7_mc_referenzen = '<div style="height:377px;width:695px;"><img src="${BackgroundImg}" style="height:374px;width:695px" /></div><div id="maincontent">	<div style="z-index: 3;position:relative;font: 29px/29px Verdana; color:#FFCC00;margin-left:470px;margin-top:-205px;width:500px"><div style="padding-left:2px;padding-right:3px">${Title}</div></div><div style="z-index: 4;position:relative;font: 17px/20px Verdana; color:#FFFFFF;margin-left:470px;margin-top:15px;width:500px"><div style="padding-left:2px;padding-right:3px">{{html Content}}</div></div><div id="transbox" style="margin-top:-336px;margin-left:460px;width:235px;height:374px"></div></div>';
var ie7_mc_news = '<div style="height:377px;width:695px;"><img src="${BackgroundImg}" style="height:374px;width:695px" /></div><div id="maincontent"><div style="z-index: 2;position:relative;width:165px;height:80px;background-color:#FFCC00;margin-top:-155px;filter:alpha(opacity=60);-moz-opacity:0.6;-khtml-opacity: 0.6;opacity:0.6;"></div><div style="z-index: 3;position:relative;font: 24px/28px Verdana; color:#FFCC00;margin-left:175px;margin-top:-65px;width:500px"><div style="padding-left:2px;padding-right:3px">${Title}</div></div><div style="z-index: 4;position:relative;font: 17px/20px Verdana; color:#FFFFFF;margin-left:175px;margin-top:-80px;width:500px"><div style="padding-left:2px;padding-right:3px">{{html Content}}</div></div><div id="transbox" style="margin-top:-45px;margin-left:165px;width:530px;height:95px"></div></div>';
var ie7_mc_mondayblog = '<div style="height:377px;width:695px;"><img src="${BackgroundImg}" style="height:374px;width:695px" /></div><div id="maincontent"><div style="z-index: 2;position:relative;width:165px;height:80px;background-color:#FFCC00;margin-top:-145px;filter:alpha(opacity=60);-moz-opacity:0.6;-khtml-opacity: 0.6;opacity:0.6;"></div><div style="z-index: 3;position:relative;font: 24px/28px Verdana; color:#FFCC00;margin-left:175px;margin-top:-70px;width:500px"><div style="padding-left:2px;padding-right:3px">${Title}</div></div><div style="z-index: 4;position:relative;font: 24px/28px Verdana; color:#FFFFFF;margin-left:175px;margin-top:-90px;width:500px"><div style="padding-left:2px;padding-right:3px">{{html Content}}</div></div><div id="transbox" style="margin-top:-60px;margin-left:165px;width:530px;height:100px"></div></div>';
var ie7_mc_name = '<div style="height:377px;width:695px;"><img src="${BackgroundImg}" style="height:374px;width:695px" /></div><div id="maincontent"><div style="z-index: 2;position:relative;width:165px;height:80px;background-color:#FFCC00;margin-top:-120px;filter:alpha(opacity=60);-moz-opacity:0.6;-khtml-opacity: 0.6;opacity:0.6;"></div><div style="z-index: 3;position:relative;font: 24px/28px Verdana; color:#FFCC00;margin-left:175px;margin-top:10px;width:500px"><div style="padding-left:2px;padding-right:3px">${Title}</div></div><div style="z-index: 4;position:relative;font: 17px/20px Verdana; color:#FFFFFF;margin-left:175px;margin-top:-245px;width:500px"><div style="padding-left:2px;padding-right:3px">{{html Content}}</div></div><div id="transbox" style="margin-top:-185px;margin-left:165px;width:530px;height:258px"></div></div>';
var ie7_mc_management = '<div style="height:377px;width:695px;"><img src="${BackgroundImg}" style="height:374px;width:695px"; /></div><div id="maincontent"><div style="z-index: 4;position:relative;font: 17px/20px Verdana; color:#FFFFFF;margin-left:178px;margin-top:-15px;width:500px"><div style="padding-left:2px;padding-right:3px">{{html Content}}</div></div></div>';
var ie7_mc_jobs = '<div style="height:377px;width:695px;"><img src="${BackgroundImg}" style="height:374px;width:695px" /></div><div id="maincontent"><div style="z-index: 2;position:relative;width:165px;height:80px;background-color:#FFCC00;margin-top:-210px;filter:alpha(opacity=60);-moz-opacity:0.6;-khtml-opacity: 0.6;opacity:0.6;"></div><div style="z-index: 3;position:relative;font: 29px/29px Verdana; color:#FFCC00;margin-left:175px;margin-top:-95px;width:500px"><div style="padding-left:2px;padding-right:3px">${Title}</div></div><div style="z-index: 4;position:relative;font: 17px/20px Verdana; color:#FFFFFF;margin-left:175px;margin-top:-5px;width:500px"><div style="padding-left:2px;padding-right:3px">{{html Content}}</div></div><div id="transbox" style="margin-top:-160px;margin-left:165px;width:530px;height:170px"></div></div>';
var ie7_mc_kontakt = '<div style="height:377px;width:695px;"><img src="${BackgroundImg}" style="height:374px;width:695px" /></div><div id="maincontent"><div style="z-index: 3;position:relative;font: 29px/29px Verdana; color:#FFCC00;margin-left:450px;margin-top:-205px;width:500px"><div style="padding-left:2px;padding-right:3px">${Title}</div></div><div style="z-index: 4;position:relative;font: 17px/20px Verdana; color:#FFFFFF;margin-left:450px;margin-top:10px;width:215px"><div style="padding-left:2px;padding-right:3px">{{html Content}}</div></div><div id="transbox" style="margin-top:-342.5px;margin-left:440px;width:255px;height:374px"></div></div>';
var ie7_mc_image = '<div style="height:377px;width:695px;"><img src="${BackgroundImg}" width="695px" height="374px"/></div>';
/*End of Templates for IE7 */

var Cache = {
    stack: {}, //Cache stack
    load: function (id) { //Load cache if found
        return (typeof (this.stack[id]) != 'undefined') ? this.stack[id] : false;
    },
    save: function (data, id) { //Cache data with unique id
        this.stack[id] = data;
    },
    remove: function (id) {//Remove cache for identifier
        if (typeof (this.stack[id]) != 'undefined')
            delete this.stack[id];
    }
};

var Browser = {
    Version: function () {
        var version = 999; // we assume a sane browser
        if (navigator.appVersion.indexOf("MSIE") != -1)
        // bah, IE again, lets downgrade version number
            version = parseFloat(navigator.appVersion.split("MSIE")[1]);
        return version;
    }
};


function ChangeContent(id, defaultBg) {

    var navContent = Cache.load(id);

    //If cache is empty, it will return false.
    if (navContent == false) {

        //Query data from SP Server
        navContent = GetNavigationContent(id);
        //Add data to cache
        Cache.save(navContent, id);
    }

    //Template for data
    var tmplType;

    var bg = navContent.BackgroundImg;
    if (bg != "" && bg != undefined) {
        var pos = bg.indexOf(",")
        if (pos != -1) {
            bg = bg.substring(pos + 1);
        }
        else {
            bg = defaultBg;
        }
    }
    else {
        bg = defaultBg;
    }
    navContent.BackgroundImg = bg;

    var ieVersion = Browser.Version();

    if (ieVersion > 7) {

        switch (id) {
            case "1":
            case "2":
            case "6":
            case "9":
            case "12":
            case "17":
            case "22":
            case "25":
                tmplType = mcTopTmpl;
                break;
            case "3":
                tmplType = mc_erfolgsfaktor;
                break;
            case "4":
                tmplType = mc_herausforderung;
                break;
            case "5":
                tmplType = mc_losung;
                break;
            case "7":
                tmplType = mc_crm;
                break;
            case "8":
                tmplType = mc_businessItel;
                break;
            case "10":
                tmplType = mc_traditionell;
                break;
            case "11":
                tmplType = mc_cloudcomputing;
                break;
            case "13":
                tmplType = mc_partnerschaft;
                break;
            case "15":
                tmplType = mc_office365;
                break;
            case "16":
                tmplType = mc_dynamiccrm;
                break;
            case "18":
                tmplType = mc_colsulting;
                break;
            case "19":
                tmplType = mc_engineering;
                break;
            case "20":
                tmplType = mc_wartungsupport;
                break;
            case "21":
                tmplType = mc_referenzen;
                break;
            case "23":
                tmplType = mc_news;
                break;
            case "24":
                tmplType = mc_mondayblog;
                break;
            case "26":
                tmplType = mc_name;
                break;
            case "29":
                tmplType = mc_jobs;
                break;
            case "30":
                tmplType = mc_kontakt;
                break;
            case "28":
                tmplType = mc_management;
                break;
            default:
                tmplType = mc_image;
                break;
        };

    }

    else if (ieVersion <= 7) //if the current browser is IE7
    {
        switch (id) {
            case "1":
            case "2":
            case "6":
            case "9":
            case "12":
            case "17":
            case "22":
            case "25":
                tmplType = ie7_mcTopTmpl;
                break;
            case "3":
                tmplType = ie7_mc_erfolgsfaktor;
                break;
            case "4":
                tmplType = ie7_mc_herausforderung;
                break;
            case "5":
                tmplType = ie7_mc_losung;
                break;
            case "7":
                tmplType = ie7_mc_crm;
                break;
            case "8":
                tmplType = ie7_mc_businessItel;
                break;
            case "10":
                tmplType = ie7_mc_traditionell;
                break;
            case "11":
                tmplType = ie7_mc_cloudcomputing;
                break;
            case "13":
                tmplType = ie7_mc_partnerschaft;
                break;
            case "15":
                tmplType = ie7_mc_office365;
                break;
            case "16":
                tmplType = ie7_mc_dynamiccrm;
                break;
            case "18":
                tmplType = ie7_mc_colsulting;
                break;
            case "19":
                tmplType = ie7_mc_engineering;
                break;
            case "20":
                tmplType = ie7_mc_wartungsupport;
                break;
            case "21":
                tmplType = ie7_mc_referenzen;
                break;
            case "23":
                tmplType = ie7_mc_news;
                break;
            case "24":
                tmplType = ie7_mc_mondayblog;
                break;
            case "26":
                tmplType = ie7_mc_name;
                break;
            case "29":
                tmplType = ie7_mc_jobs;
                break;
            case "30":
                tmplType = ie7_mc_kontakt;
                break;
            case "28":
                tmplType = ie7_mc_management;
                break;
            default:
                tmplType = ie7_mc_image;
                break;
        };

    }

    if (navContent.SubTitle != undefined) {
        var nStr = navContent.SubTitle.length;
        if (nStr > 0) {
            navContent.Title = navContent.SubTitle;
        }
    }

    //Binding data to template
    ApplyTemplate(tmplType, navContent);

};


function ChangeContentStatic(leftImgUrl) {
    var ieVersion = Browser.Version();
    var maincontent = $("#mccontent");
    maincontent.empty();
    var imgHtml;
    if (ieVersion > 7) {
        imgHtml = "<img id='mainpic' src ='" + leftImgUrl + "' style='height:374px;width:695px' />";
    }
    if (ieVersion <= 7) {
        imgHtml = "<div style='height:377px;width:695px;'><img id='mainpic' src ='" + leftImgUrl + "' style='height:374px;width:695px' /></div>";
    }

    maincontent.append(imgHtml);
};


function DisplayNews(divId) {
	var maincontent = $("#mccontent");
	var news = GetNews(divId);
	var data = PrepareNews(news.Title, news.Content, news.BackgroundImg);
	maincontent.empty();
	maincontent.append(data);
};

function ApplyTemplate(tmplType, data) {
	var maincontent = $("#mccontent");

	maincontent.empty();
	$.tmpl(tmplType, data).appendTo(maincontent);
};

function PrepareNews(title, content, bg) {
	if (bg != "" && bg != undefined) {
		var pos = bg.indexOf(",")
		if (pos != -1) {
			bg = bg.substring(pos + 1);
		}
		else {
			bg = "images/bgnewsdefault.jpg";
		}
	}
	else {
		bg = "images/bgnewsdefault.jpg";
	}

	var table = "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"width: 695px; height: 374px;\">";
	table += "<tr>";
	table += "<td style=\"width: 695px; height: 374px;\" class=\"td-detailnews\"><img src='" + bg + "' style=\"height:374px;width:695px\" /><div class=\"div-contentbody\" >" + content + "</div></td>";
	table += "</tr>";
	table += "</table>";

	return table;
};

/*START BOTTOM NAVIGATION */


function AddEventToMenuItem(menuItem) {

	//Get the first A link

	var firstA = $(menuItem).children(":first-child");

	var firstU = $(menuItem).children(":nth-child(2)");

	//Binding Event to Second Level

	var secondMenuItems = $(firstU).children();

	$(secondMenuItems).each(
			function () {
				BindingClickEventToTheSecondLevel(this);
			}
			);


	//Binding the click event

	$(firstA).click(
			function () {
				//Get the parent Node and update the font
				var parentNode = $(menuItem).parent();
				var childrenNodes = $(parentNode).children();
				$(childrenNodes).each(
					function () {
						var tmpFirstA = $(this).children(":first-child");
						var tmpfirstU = $(this).children(":nth-child(2)");
						
					<!--	if(($(tmpFirstA).get(0) != $(firstA).get(0))) -->
					<!--	{ -->
							RestoreDefaultStyleFirstLevel(tmpFirstA);
							HideThefirstUWhenOtherFirstAClick(tmpfirstU);

							var secondChildrenNodes = $(tmpfirstU).children();
							$(secondChildrenNodes).each
							(
								function () {
									var tmpSecondA = $(this).children(":first-child");
									var tmpSecondU = $(this).children(":nth-child(2)");
									
									RestoreDefaultStyleSubLevel(tmpSecondA);
								
									HideOtherSecondUWhenOtherSecondAClick(tmpSecondU);

									var thirdChildrenNodes = $(tmpSecondU).children();

									$(thirdChildrenNodes).each
									(
										function () {
											var tmpThirdA = $(this).children(":first-child");
											var tmpThirdU = $(this).children(":nth-child(2)");
											
											RestoreDefaultStyleSubLevel(tmpThirdA);
											
											HideOtherSecondUWhenOtherSecondAClick(tmpThirdU);
										}
									);
								}
							);
						<!-- } -->
					}
				);

				//Apply new style to the current Href
				SetupNewStyleFirstLevel(this);

				//Show the SubMenus of selected Href
				ShowFirstUWhenFirstAClick(firstU);

			}




			);

};


function BindingClickEventToTheSecondLevel(secondMenuItem) {

	var secondA = $(secondMenuItem).children(":first-child");

	var secondU = $(secondMenuItem).children(":nth-child(2)");


	//Binding Event to Third Level

	var thirdMenuItems = $(secondU).children();

	$(thirdMenuItems).each(
			function () {
				BindingClickEventToThirdLevel(this);
			}
			);


	//Binding the click event

	$(secondA).click(
			function () {
				var secondParentNode = $(secondMenuItem).parent();
				//Update for the First Level
				var parentNode = $(secondParentNode).parent().parent();
				var childrenNodes = $(parentNode).children();
				$(childrenNodes).each(
					function () {
						var tmpFirstA = $(this).children(":first-child");
						
						RestoreDefaultStyleFirstLevel(tmpFirstA);
						

					}
				);

				//Update for Second Level and Below
				var secondChildrenNodes = $(secondParentNode).children();
				$(secondChildrenNodes).each(
				function () {
					var tmpSecondA = $(this).children(":first-child");
					var tmpSecondU = $(this).children(":nth-child(2)");
					
					if ($(tmpSecondA).get(0) != $(secondA).get(0)) {
					
						RestoreDefaultStyleSubLevel(tmpSecondA);
					
						HideOtherSecondUWhenOtherSecondAClick(tmpSecondU);
					}

					var thirdChildrenNodes = $(tmpSecondU).children();

					$(thirdChildrenNodes).each
						(
							function () {
								var tmpThirdA = $(this).children(":first-child");
								var tmpThirdU = $(this).children(":nth-child(2)");
								RestoreDefaultStyleSubLevel(tmpThirdA);
								HideOtherSecondUWhenOtherSecondAClick(tmpThirdU);
							}
						);
				}
				);

				//Apply new style to the current Href
				SetupNewStyleForSubLevel(this);

				//Show the SubMenus of selected Href
				ShowSecondUWhenSecondAClick(secondU);
			}
			);

};


function BindingClickEventToThirdLevel(thirdMenuItem) {

	var thirdA = $(thirdMenuItem).children(":first-child");


	//Binding the click event

	$(thirdA).click(
			function () {
				var thirdParentNode = $(thirdMenuItem).parent();

				//Update for Second Level nodes
				var secondParentNode = $(thirdParentNode).parent().parent();
				var secondChildrenNodes = $(secondParentNode).children();
				$(secondChildrenNodes).each(
				function () {
					var tmpSecondA = $(this).children(":first-child");
					RestoreDefaultStyleSubLevel(tmpSecondA);
				}
				);

				var thirdChildrenNodes = $(thirdParentNode).children();
				$(thirdChildrenNodes).each(
					function () {
						var tmpThirdA = $(this).children(":first-child");


						if ($(tmpThirdA).get(0) != $(thirdA).get(0)) {
							RestoreDefaultStyleSubLevel(tmpThirdA);
						}
					}
				);

				//Apply new style to the current Href
				SetupNewStyleForSubLevel(this);
			}
			);


};

//Setup new Style when the the FirstA is clicked

function SetupNewStyleForSubLevel(secondA) {

    var cssObj = {

        'font-size': '22px',

        'position': 'relative',

        'selected': 'true'

    };

    $(secondA).css(cssObj);

};


//Show the Second Level when First Level is clicked

function ShowSecondUWhenSecondAClick(secondU) {

    var cssObj = {

        'visibility': 'visible',

        'position': 'relative'

    };

    $(secondU).css(cssObj);

};


//Restore the default style for Second Levels

function RestoreDefaultStyleSubLevel(secondA) {

    var cssObj = {

        'font-size': '16px',

        'position': 'relative',

        'selected': 'false'

    };

    $(secondA).css(cssObj);

};


//Hide the Second Level when another First Level is clicked

function HideOtherSecondUWhenOtherSecondAClick(secondU) {

    var cssObj = {

        'visibility': 'hidden',

        'position': 'absolute',

        'left': '0'

    };

    $(secondU).css(cssObj);

};



//Hide the Second Level when another First Level is clicked

function HideThefirstUWhenOtherFirstAClick(firstU) {

    var cssObj = {

        'visibility': 'hidden',

        'position': 'absolute',

        'left': '0'

    };

    $(firstU).css(cssObj);



};


//Show the Second Level when First Level is clicked

function ShowFirstUWhenFirstAClick(firstU) {

    var cssObj = {

        'visibility': 'visible',

        'position': 'relative'

    };

    $(firstU).css(cssObj);

};


//Setup new Style when the the FirstA is clicked

function SetupNewStyleFirstLevel(firstA) {

    var cssObj = {

        'font-size': '24px',

        'position': 'relative',

        'selected': 'true'

    };

    $(firstA).css(cssObj);


};


//Restore the default style for Fist Level

function RestoreDefaultStyleFirstLevel(firstA) {

    var cssObj = {

        'font-size': '19px',

        'position': 'relative',

        'selected': 'false'

    };

    $(firstA).css(cssObj);



};


//The Event when Mouse Entenr the First A

function OnMouseEnterEventFirstLevel(firstA) {

    $(firstA).mouseenter(
			function () {
			    var cssObj = {
			        'font-size': '24px',
			        'position': 'relative'
			    };
			    $(firstA).css(cssObj);
			}
			);

};


//The Event when Mouse Leave the First A

function OnMouseLeaveEventFirstLevel(firstA) {

    $(firstA).mouseleave(
			function () {
			    var cssObj = {
			        'font-size': '19px',
			        'position': 'relative'
			    };
			    $(firstA).css(cssObj);
			}
			);

};


/* END OF BOTTOM NAVIGATION */





/* START FUNCTIONS TO QUERY DATA FROM SHAREPOINT SERVICES */

function GetNews(id) {

	var news = {};

	var strCamlQuery = "<Query><Where><Eq><FieldRef Name='ID' /><Value Type='Counter'>" + id + "</Value></Eq></Where></Query>";

	$().SPServices({

		operation: "GetListItems",

		async: false,

		listName: "MCNews",

		CAMLQuery: strCamlQuery,

		CAMLViewFields: "<ViewFields><FieldRef Name='Title' /><FieldRef Name='Content' /><FieldRef Name='BackgroundImg' /></ViewFields>",

		CAMLRowLimit: 1,

		CAMLQueryOptions: "<QueryOptions><IncludeMandatoryColumns>FALSE</IncludeMandatoryColumns> <DateInUtc>TRUE</DateInUtc></QueryOptions>",

		completefunc: function (xData, Status) {

			$(xData.responseXML).find("[nodeName='z:row']").each(function () {

				news.Title = $(this).attr("ows_Title");

				news.Content = $(this).attr("ows_Content");

				news.BackgroundImg = $(this).attr("ows_BackgroundImg");

			});

		}

	});

	return news;

};


function GetNavigationContent(id) {

	var navContent = {};

	var strCamlQuery = "<Query><Where><Eq><FieldRef Name='ID' /><Value Type='Counter'>" + id + "</Value></Eq></Where></Query>";

	$().SPServices({

		operation: "GetListItems",

		async: false,

		listName: "MCNavigation",

		CAMLQuery: strCamlQuery,

		CAMLViewFields: "<ViewFields><FieldRef Name='Title' /><FieldRef Name='SubTitle' /><FieldRef Name='Content' /><FieldRef Name='BackgroundImg' /></ViewFields>",

		CAMLRowLimit: 1,

		CAMLQueryOptions: "<QueryOptions><IncludeMandatoryColumns>FALSE</IncludeMandatoryColumns> <DateInUtc>TRUE</DateInUtc></QueryOptions>",

		completefunc: function (xData, Status) {

			$(xData.responseXML).find("[nodeName='z:row']").each(function () {


				navContent.Title = $(this).attr("ows_Title");

				navContent.SubTitle = $(this).attr("ows_SubTitle");


				navContent.Content = $(this).attr("ows_Content");

				navContent.BackgroundImg = $(this).attr("ows_BackgroundImg");

			});

		}

	});

	return navContent;

};
/* END FUNCTIONS TO QUERY DATA FROM SHAREPOINT SERVICES */


