var dev_client=false;
var dev_server=false;
$(document).ready(function(){
if(client.chk_is_smartphone_client(navigator.userAgent)){
var question=confirm('Möchten Sie die Smartphone-optimierte Version anschauen?');
if(question){
window.location='http://www.michel-consulting.de/de/mobile/switch_mobile_browsing/1';
}else{
window.location='http://www.michel-consulting.de/de/mobile/switch_mobile_browsing/0';
}
}
$('#navi_top li').prepend('<span class="hover"></span>').each(function(){
if(!$(this).hasClass('no_hover')){
var width=$(this).width();
var height=$(this).height();
var span=$('span.hover', this).css({'opacity':0, 'width':width+'px', 'height':height+'px'});
$(this).hover(function(){
span.stop().fadeTo(500, 1);
}, function(){
span.stop().fadeTo(500, 0);
});
}
});
$('#navi_main li').prepend('<span class="hover"></span>').each(function(){
if(!$(this).hasClass('no_hover')){
var width=$(this).width()-1;
var height=$(this).height();
var span=$('span.hover', this).css({'opacity':0, 'width':width+'px', 'height':height+'px'});
$(this).hover(function(){
span.stop().fadeTo(500, 1);
}, function(){
span.stop().fadeTo(500, 0);
});
}
});
});
