$(document).ready(function(){
// Country list for header
$("#header .metanav").append('
<\/div>');
var ol = $("#overlay");
ol.hide();
var hovered = false;
var disclaimer = '
' +
'
' +
'
Zu Risiken und Nebenwirkungen lesen Sie die Packungsbeilage
' +
'
und fragen Sie Ihren Arzt oder Apotheker.
' +
'
Copyright © null Boehringer Ingelheim Pharma GmbH & Co. KG, Deutschland, Alle Rechte vorbehalten.
Zu Risiken und Nebenwirkungen lesen Sie die Packungsbeilage und fragen Sie Ihren Arzt oder Apotheker
' +
'
Seite drucken' +
'
';
//$(".colleft a.round").corner();
if (jQuery.browser.msie) {
$(window).resize( function() { resizeIE(); } );
}
$("#recommend td div").hover(function(){
$(this).addClass("hover");
},function(){
$(this).removeClass("hover");
});
$("#recommend td div.h").hover(function(){
$(this).addClass("hover");
},function(){
$(this).removeClass("hover");
});
$("ul.mainnav").hover(
function(){
//ol.fadeIn("", function() { ol.css("opacity",0.75);});
ol.show();
hovered = true;
},
function(){
ol.hide();
hovered = false;
}
);
$("#mainnav>ul>li").each(function() {
var li = $(this);
var mc = $('>div.mc', li);
var a = $('a.main', li);
li.hover(
function(){
a.addClass('over');
if(hovered == false){
mc.fadeIn();
$("#header .metanav").css('z-index','500');
$('#countrylist').hide().removeShadow();
} else {
mc.show();
$("#header .metanav").css('z-index','500');
$('#countrylist').hide().removeShadow();
}
},
function(){
a.removeClass('over');
mc.hide();
$("#header .metanav").css('z-index','1001');
}
)
a.click( function() { return false; } );
});
$(".prod_overview td").hover(function(){
$(this).addClass("hover");
var oldimg = $(this).children('.illu').children('img').attr("src");
var newimg = oldimg.substring (0, oldimg.length-4) + "_hover.jpg";
$(this).children('.illu').children('.donotprint').attr({ src: newimg });
},function(){
$(this).removeClass("hover");
var oldimg = $(this).children('.illu').children('img').attr("src");
var newimg = oldimg.substring (0, oldimg.length-10) + ".jpg";
$(this).children('.illu').children('.donotprint').attr({ src: newimg });
});
$(".faqtabs dl a").click( function() {
$(".whitebg").removeShadow();
$(this).parent().parent().children('dt').removeClass('active');
$(this).parent().parent().children('dd').removeClass('active');
$(this).parent().addClass('active');
$(this).parent().next().addClass('active');
$(".whitebg").dropShadow({left: 2, top: 2, opacity: 0.3, blur: 2});
});
$('#tab>ul li a').click( function() {
$(this).blur();
$('#tab>ul li').removeClass("active");
$(this).parent().addClass('active');
$(".whitebg").removeShadow();
setTimeout('loadShadow()',400);
});
/*$('div.metanav a.home').click( function() {
$("#outer_wrapper").append('
<\/div>');
$("#disclaimer_overlay").html(disclaimer);
muc_disclaimer = window.open("http://ingwswcms01.eu.boehringer.com/wcms_chc/mucosolvan_com_edit/at/meta/popup_disclaimer.htm", "muc_disclaimer","width=533,height=255,menubar=no,toolbar=no,resizable=yes");
muc_disclaimer.focus();
});*/
$('a.flashTeaser').click( function() {
muc_disclaimer = window.open("/wcms_chc/mucosolvan_all_prod/de/teaser/popup_flash.htm", "Animated_illustration","width=650,height=800,menubar=no,toolbar=no,resizable=yes");
muc_disclaimer.focus();
return false;
});
$('a.press').click( function() {
biNewsCentre = window.open("http://www.boehringer-ingelheim.com/corporate/news/");
biNewsCentre.focus();
return false;
});
$('#header #searchfield').focus( function() { $(this).attr({ value: "" }); } );
$('#header #searchfield').blur( function() { $(this).attr({ value: "Search" }); } );
setTimeout('loadShadow()',500);
resizeIE();
});
function reloadShadow() {
setTimeout('loadShadow()',500);
}
function loadShadow() {
$(".btn.zwo").removeShadow();
$(".btn.eins").removeShadow();
$(".whitebg").removeShadow();
$(".bluebg").removeShadow();
$(".btn.zwo").dropShadow({left: 2, top: 2, opacity: 0.3, blur: 2});
$(".btn.eins").dropShadow({left: 2, top: 2, opacity: 0.3, blur: 2});
$(".whitebg").dropShadow({left: 2, top: 2, opacity: 0.3, blur: 2});
$(".prodbg").dropShadow({left: 2, top: 2, opacity: 0.3, blur: 2});
$(".bluebg").dropShadow({left: 2, top: 2, opacity: 0.3, blur: 2});
}
function resizeIE(){
if (jQuery.browser.msie) {
var ol = $("#overlay");
dWidth = ($(document).width()- 21);
dHeight = ($(document).height());
ol.css("width",dWidth);
ol.css("height",dHeight);
}
}