$(document).ready(function(){ $("#teaser_panel1").click(function(){ $(this).hide().next().show(); /* Fixes height/absolute position issue in IE6 */ $("#ar_pageturner").css("position","relative").css("position","absolute"); return false; }); $("#teaser_panel1_content .header").click(function(){ $(this).parent().hide(); $("#teaser_panel1").show(); /* Fixes height/absolute position issue in IE6 */ $("#ar_pageturner").css("position","relative").css("position","absolute"); return false; }); $("#teaser_panel2").click(function(){ $(this).hide().next().show(); /* Fixes height/absolute position issue in IE6 */ $("#ar_pageturner").css("position","relative").css("position","absolute"); return false; }); $("#teaser_panel2_content .header").click(function(){ $(this).parent().hide(); $("#teaser_panel2").show(); /* Fixes height/absolute position issue in IE6 */ $("#ar_pageturner").css("position","relative").css("position","absolute"); return false; }); $("#teaser_panel3 .panel_link").click(function(){ $(this).parent().hide().next().show(); return false; }); $("#teaser_panel3 .more").click(function(){ $(this).parent().parent().parent().hide().next().show(); return false; }); $("#teaser_panel3_content .header").click(function(){ $(this).parent().hide(); $("#teaser_panel3").show(); return false; }); $("#teaser_panel4 .panel_link").click(function(){ $(this).parent().hide().next().show(); return false; }); $("#teaser_panel4_content .header").click(function(){ $(this).parent().hide(); $("#teaser_panel4").show(); return false; }); //hide the all of the element with class msg_body $(".panel_body").hide(0, function(){ /* Fixes height/absolute position issue in IE6 & 7 with the page turner */ $("#ar_pageturner").css("position","relative").css("position","absolute"); }); //toggle the componenet with class msg_body $(".panel_head").click(function() { $(this).toggleClass("opened").next(".panel_body").slideToggle(600, function(){ /* Fixes height/absolute position issue in IE6 & 7 with the page turner */ $("#ar_pageturner").css("position","relative").css("position","absolute"); }); }); $("#view_all").click(function() { $(".panel_head", "#ar_contentcolumn_inner").toggleClass("opened"); $(".panel_body", "#ar_contentcolumn_inner").slideToggle(600, function(){ /* Fixes height/absolute position issue in IE6 & 7 with the page turner */ $("#ar_pageturner").css("position","relative").css("position","absolute"); }); $(this).children("span").toggle(); }); });