
var contentDyn='false';var gesamtHoehe=670;var gesamtBreite=1020;var randSeitlich=0;var randObenUnten=0;var borderWidth=0;var contentHeight=490;var footerShow='true';var footerHeight=30;var contentTop=180;var contentLeft=20;var contentWidth=1020;var srollBarWidth=20;var pbarShow='false';var menuHeight=26;var pbarTop=5;var pbarLeft=870;var pbarWidth=120;var pbarStart='false';var menuShow='true';var menuTop=136;var menuLeft=280;var menuWidth=720;var pbarHeight=10;var contentShow='true';var footerShImprint='true';var footerShContact='true';var footerShAgb='false';var footerShCounter='true';var introShow='false';var introMainWidth=600;var introMainHeight=100;var introInfoWidth=800;var introInfoHeight=100;var coretoolsShow='false';var coretoolsHeight=22;var coretoolsTop=560;var coretoolsLeft=740;var coretoolsWidth=58;var mtop;if(footerHeight<20)footerHeight=20;function getObj(name){if(document.getElementById){this.obj=document.getElementById(name);this.style=document.getElementById(name).style;}else if(document.all){this.obj=document.all[name];this.style=document.all[name].style;}else if(document.layers){this.obj=document.layers[name];this.style=document.layers[name];}}
function getLPosition(e){if(!e){var e=window.event;}
var x,y;if(self.innerHeight){x=self.innerWidth;y=self.innerHeight;}else if(document.documentElement&&document.documentElement.clientHeight){x=document.documentElement.clientWidth;y=document.documentElement.clientHeight;}else if(document.body){x=document.body.clientWidth;y=document.body.clientHeight;}
var mcontent=new getObj('div_main_content');var content=new getObj('content');var menu=new getObj('div_main_menu');var appWidth=gesamtBreite;var appLeft=(x-appWidth-randSeitlich)/2;if(menuShow=='true'){menu.style.visibility='visible';if(contentDyn=='true'){menu.style.top=randObenUnten+menuTop*1+'px';}else{menu.style.top=(y-gesamtHoehe-footerHeight)/2-borderWidth+menuTop*1+'px';}
menu.style.left=(appLeft+menuLeft)*1+'px';menu.style.height=menuHeight+'px';menu.style.width=menuWidth+'px';}else{menu.style.visibility='hidden';}
if(footerShow=='true'){var footer=new getObj('div_main_footer');var fooImprint=new getObj('fooImprint');var fooContact=new getObj('fooContact');var fooAgb=new getObj('fooAgb');var fooCounter=new getObj('fooCounter');footer.style.display='block';footer.style.width=appWidth+'px';footer.style.left=appLeft+'px';footer.style.height=footerHeight-(borderWidth*2)*1+'px';if(footerShImprint=='true')fooImprint.style.display='inline';if(footerShContact=='true')fooContact.style.display='inline';if(footerShAgb=='true')fooAgb.style.display='inline';if(footerShCounter=='true')fooCounter.style.display='inline';}else{footerHeight=0;}
if(contentDyn=='false'){mcontent.style.height=gesamtHoehe+'px';mtop=(y-gesamtHoehe-footerHeight)/2-borderWidth;mcontent.style.top=mtop+'px';content.style.height=contentHeight+'px';if(footerShow=='true')footer.style.top=mtop+gesamtHoehe*1+'px';}else{mcontent.style.height=(y-footerHeight-(borderWidth*2)-(randObenUnten*2))+'px';mcontent.style.top=randObenUnten+'px';content.style.height=y-footerHeight-(borderWidth*2)-(randObenUnten*2)-contentTop-1+'px';if(footerShow=='true')footer.style.top=(y-footerHeight-(borderWidth*2)-randObenUnten)*1+'px';}
content.style.width=contentWidth+'px';content.style.top=contentTop+'px';content.style.left=contentLeft+'px';content.style.padding='0px';mcontent.style.width=appWidth+'px';mcontent.style.left=appLeft+'px';if(pbarShow=='true'){var pbar=new getObj('progressBar');pbar.style.top=pbarTop+'px';pbar.style.left=pbarLeft+'px';pbar.style.height=pbarHeight+'px';pbar.style.width=pbarWidth+'px';}
if(pbarStart=='true')startProgressBar();if(coretoolsShow=='true'){var coretools=new getObj('coretools');coretools.style.top=coretoolsTop+'px';coretools.style.left=coretoolsLeft+'px';coretools.style.height=coretoolsHeight+'px';coretools.style.width=coretoolsWidth+'px';coretools.style.display='inline';}
var eventmanagement=new getObj('div_plugin_eventmanagement');eventmanagement.style.display='block';if(document.getElementById('bannertext')==null){alert('Diese Anwendung wurde mit dem\ni-VCD - Internet Visiting Card Designer erstellt.\nInformationen unter http://www.i-VCD.at');}else{var btxt=document.getElementById('bannertext');btxt.innerHTML='E-Mail: musikhauptschule.graz@stadt.graz.at&nbsp;|&nbsp;<span style="cursor:pointer;" onclick="window.open(\'http://www.i-VCD.at\'); return false;">i-VCD.at</span>';btxt.style.display='inline';btxt.style.visibility='visible';btxt.style.styleFloat='right';btxt.style.cssFloat='right';}}
function getEPosition(e){var ax,ay;if(!e)var e=window.event;if(self.innerHeight){ax=self.innerWidth;ay=self.innerHeight;}else if(document.documentElement&&document.documentElement.clientHeight){ax=document.documentElement.clientWidth;ay=document.documentElement.clientHeight;}else if(document.body){ax=document.body.clientWidth;ay=document.body.clientHeight;}
var main=new getObj('div_introMain');var info=new getObj('div_introInfo');var ah=(introMainHeight+introInfoHeight)*1;main.style.top=(ay-ah)/2+'px';main.style.left=(ax-introMainWidth)/2+'px';main.style.height=introMainHeight+'px';main.style.width=introMainWidth+'px';info.style.top=(introMainHeight)+((ay-ah)/2)*1+'px';info.style.left=(ax-introInfoWidth)/2+'px';info.style.height=introInfoHeight+'px';info.style.width=introInfoWidth+'px';}
