window.onload = function(){
	   				//console.log('here');
					init_menu(document.getElementById('main_menu'));
					init_menu(document.getElementById('products'));
					init_vac(document.getElementById('vacancy'));
					if(null != document.getElementById('paging'))
					{
						init_paging(document.getElementById('paging'));
					}
					if(null != document.getElementById('faq'))
					{				
						init_paging(document.getElementById('faq'));
					}
					if(null != document.getElementById('power')
					&& null != document.getElementById('model')
						&& null != document.getElementById('type')
						&& null != document.getElementById('plant')
						)
					{			
						init_paging(document.getElementById('type'));
						init_paging(document.getElementById('plant'));
					init_paging(document.getElementById('model'));
						init_paging(document.getElementById('power'));
						
						
					}
					if(null != document.getElementById('selector')){
						init_paging(document.getElementById('selector'));
					}
					if(null != document.getElementById('cr')){
						bild(document.getElementById('cr'));
					}
					if(null != document.getElementById('selected')){
						selected(document.getElementById('selected'));
					}
					if(null != document.getElementById('fversion')){
						init_paging(document.getElementById('fversion'));
						init_paging(document.getElementById('fstate'));
						init_paging(document.getElementById('ftype'));
						init_paging(document.getElementById('plant'));
						
					};
					
					/*_getDate();*/
					
					//loadBanner(88);
					if ($('body').hasClass('index')){
						loadBanner(88);
                        loadBanner(80);
					}

_getDate()
$("a.lightbox").attr('rel','pPhoto');
$("a[rel^='pPhoto']").prettyPhoto({theme:'facebook'});
/*
var garloy = $$('a.lightbox');
var lg = garloy.length;
for (var g = 0; g<lg; g++){
	garloy[g].rel = "lightbox";
}*/

$('div,p').attr({
	"unselectable":"on"
}).each(function(){
	this.oncontextmenu = function(){
		return false;
	}
	this.onselectstart = function(){
		return false;
	}
	this.oncopy = function(){
		return false;
	}
})
}
