
function cdmCarousel_initCallback(carousel){$('.jcarousel-control a').bind('click',function(){$('.jcarousel-control a').each(function(){$(this).css("border","0px solid #FF0000");});$('.jcarousel-item img').each(function(){$(this).css("border","0px solid #FF0000");});carousel.scroll($.jcarousel.intval($(this).attr("idx")));$(this).css("border","1px solid #FF0000");idx=$(this).attr("idx");$(".jcarousel-item-"+idx+" img").css("border","1px solid #FF0000");return false;});$('#cdmCarousel-next').bind('click',function(){carousel.next();return false;});$('#cdmCarousel-prev').bind('click',function(){carousel.prev();return false;});}
$(document).ready(function(){if(cdm.gvars.internetExplorerVersion<IE_8_VERSION){$("#lpCdmContentFlowWrapper").hide();$("#lp_wrapper").css("width","1210px");$("#lp_col1_container").css("width","700px").css("margin-right","120px");$("#lp_col2_container").css("width","385px").css("position","static").css("float","left");$("#lp_column_1").css("width","700px");$("#lp_column_1a").css("width","30px");$("#lpCdmContentFlow").hide();$("#cdmCarousel").show();$("#cdmCarousel").jcarousel({scroll:1,visible:3,initCallback:cdmCarousel_initCallback,buttonNextHTML:null,buttonPrevHTML:null});}else{if($("#lpCdmContentFlow").exists()){var cdmContentFlow=new ContentFlow('lpCdmContentFlow',{reflectionHeight:0.0,maxItemHeight:160});$("#contentflowPrevBtn").mouseover(function(){this.src=$("#cdm_abs_path").val()+"js/contentflow/img/nav_prev_on.gif";}).mouseout(function(){this.src=$("#cdm_abs_path").val()+"js/contentflow/img/nav_prev_off.gif";});$("#contentflowNextBtn").mouseover(function(){this.src=$("#cdm_abs_path").val()+"js/contentflow/img/nav_next_on.gif";}).mouseout(function(){this.src=$("#cdm_abs_path").val()+"js/contentflow/img/nav_next_off.gif";});$('#lpCdmContentFlow').show();}}});