﻿var _gaq = _gaq || [];

  _gaq.push(['_setAccount', 'UA-623278-11']);
  _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);

  })();

function closeError(){
	$('errorGenerellWrap').setStyle('display', 'none');
}


window.addEvent('domready', function() {
	
	if ($defined($('tt_address_form'))){

		document.forms['tt_address_form'].elements['FE[tt_address][module_sys_dmail_html]'].value = 1;
		document.forms['tt_address_form'].elements['FE[tt_address][name]'].value = 'Name';
	}
	
	if ($defined($('menu_2Wrap'))){
		$('contentWrap').setStyle('background', 'url(fileadmin/templates/images/bgrContentWrapSub.png)');
		$('content').setStyle('padding', '0 50px 30px 0');
		$('content').setStyle('width', 629);
	}
	
	if (window.getWidth()<=1280){
		var margin = (window.getWidth()-1280)/2;
		$('mainWrap').setStyle('margin-left', margin);
	}
   
 });
	
window.addEvent('resize', function() {
	
	if (window.getWidth()<=1280){
		var margin = (window.getWidth()-1280)/2;
		$('mainWrap').setStyle('margin-left', margin);
	}
   
 });



	

