/* 1703111608: kompas2011-all-bundle_kanal.js */ function ddtabcontent(a){this.tabinterfaceid=a;this.tabs=document.getElementById(a).getElementsByTagName("a");this.enabletabpersistence=true;this.hottabspositions=[];this.subcontentids=[];this.revcontentids=[];this.selectedClassTarget="link"}ddtabcontent.getCookie=function(a){var b=new RegExp(a+"=[^;]+","i");if(document.cookie.match(b)){return document.cookie.match(b)[0].split("=")[1]}return""};ddtabcontent.setCookie=function(a,b){document.cookie=a+"="+b+";path=/"};ddtabcontent.prototype={expandit:function(a){this.cancelautorun();var b="";try{if(typeof a=="string"&&document.getElementById(a).getAttribute("rel")){b=document.getElementById(a)}else{if(parseInt(a)!=NaN&&this.tabs[a].getAttribute("rel")){b=this.tabs[a]}}}catch(c){alert("Invalid Tab ID or position entered!")}if(b!=""){this.expandtab(b)}},setpersist:function(a){this.enabletabpersistence=a},setfade:function(a){this.enablefade=a},setselectedClassTarget:function(a){this.selectedClassTarget=a||"link"},getselectedClassTarget:function(a){return(this.selectedClassTarget==("linkparent".toLowerCase()))?a.parentNode:a},expandtab:function(b){var c=b.getAttribute("rel");var d=(b.getAttribute("rev"))?","+b.getAttribute("rev").replace(/\s+/,"")+",":"";this.expandsubcontent(c);this.expandrevcontent(d);for(var a=0;a0)?0:1}}}if(d){this.expandtab(this.tabs[this.hottabspositions[0]])}if(parseInt(this.automodeperiod)>500&&this.hottabspositions.length>1){this.automode_currentTabIndex=this.automode_currentTabIndex||0;this.autoruntimer=setInterval(function(){b.autorun()},this.automodeperiod)}}};(function(a){a(function(){a.extend({articleNavigation:function(e,c,b){var d={container:"",next_text:"Artikel Selanjutnya",prev_text:"Artikel Sebelumnya",trigger:"a[rel=article_nav]"};b=a.extend(d,b);a.getJSON("http://api.kompas.com/data/get_next_prev_article/"+e+"/"+c+"/?jsoncallback=?",function(f){if(f.status==1&&a("a[rel=article_nav]").length){if(f.next!=""){a("a[rel=article_nav]:eq(1)").attr("href",f.next.UrlPath).text(b.next_text)}if(f.prev!=""){a("a[rel=article_nav]:eq(0)").attr("href",f.prev.UrlPath).text(b.prev_text)}}})},articleStatistic:function(c,b){var d={container:"#text_",overwrite:true,param:"",template:"| Dibaca %r kali | %c Komentar"};b=a.extend(d,b);if(c!=""){a.getJSON("http://api.kompas.com/data/read_comment/"+c+b.param+"/?jsoncallback=?",function(e){if(e.status==1){a.each(e.results,function(h,g){var j=b.template.replace("%r",g.ReadCount);j=j.replace("%c",g.CommentCount);(b.overwrite)?a(b.container+g.TextID).html(j):a(b.container+g.TextID).append(j)})}else{var f=c.split("-");a.each(f,function(g){a(b.container+f[g]).remove()})}})}},directoryStatisticRead:function(c,b){var d={container:"#read_",overwrite:true,template:"| Dibaca %r kali | %c Komentar"};b=a.extend(d,b);if(c!=""){a.getJSON("http://api.kompas.com/data/directory_read_comment/"+c+"/?jsoncallback=?",function(e){if(e.status==1){a.each(e.results,function(h,g){var j=b.template.replace("%r",g.ReadCount);j=j.replace("%c",g.CommentCount);(b.overwrite)?a(b.container+g.TextID).html(j):a(b.container+g.TextID).append(j)})}else{var f=c.split("-");a.each(f,function(g){a(b.container+f[g]).remove()})}})}},directoryStatisticComment:function(c,b){var d={container:"#comment_",overwrite:true,template:"| Dibaca %r kali | %c Komentar"};b=a.extend(d,b);if(c!=""){a.getJSON("http://api.kompas.com/data/directory_read_comment/"+c+"/?jsoncallback=?",function(e){if(e.status==1){a.each(e.results,function(h,g){var j=b.template.replace("%r",g.ReadCount);j=j.replace("%c",g.CommentCount);(b.overwrite)?a(b.container+g.TextID).html(j):a(b.container+g.TextID).append(j)})}else{var f=c.split("-");a.each(f,function(g){a(b.container+f[g]).remove()})}})}},channelCustom:function(c){var f={append:"a[rel*=kanal_append]",container:".box_rubrik",container_small:".box_rubrik_4",container_content:"li",remove:"a[rel*=kanal_remove]"};c=a.extend(f,c);var b=a(c.container+":eq(0) "+c.container_content).length;var d=a(c.container+":eq(0) "+c.container_content+":visible").length;var e=a(c.container_small+":eq(0) "+c.container_content+":visible").length;a(c.remove).css("opacity","0.25");if(b==d){a(c.append).css("opacity","0.25")}a(c.append).click(function(){if(a(this).parents("div:eq(2)").find("li:visible").length-1){if(a(this).parents("div:eq(2)").find("li:visible").length>e){var g=a(this).parents("div:eq(2)").find("li:visible").length;a(this).parents("div:eq(2)").find("li").eq(--g).slideUp("fast");a(this).css("opacity","1");a(this).parent().find(c.append).css("opacity","1");update_data(a(this).parents("div:eq(1)").find("strong").text(),"min")}if((a(this).parents("div:eq(2)").find("li:visible").length-1)==e){a(this).css("opacity","0.25")}}else{if(a(this).parents("div:eq(2)").find("li:visible").length>d){var g=a(this).parents("div:eq(2)").find("li:visible").length;a(this).parents("div:eq(2)").find("li").eq(--g).slideUp("fast");a(this).css("opacity","1");a(this).parent().find(c.append).css("opacity","1");update_data(a(this).parents("div:eq(1)").find("strong").text(),"min")}if((a(this).parents("div:eq(2)").find("li:visible").length-1)==d){a(this).css("opacity","0.25")}}})},latestCustom:function(b){var c={container:"#container_terkini",container_content:"li",container_id:"rubrik_",edit_button:"#mypaneltab",edit_container:"#mypanelcontent",input_checkbox:"#edit_terkini input",total:"#total_terkini",submit_button:"#terkini_submit"};b=a.extend(c,b);a(b.input_checkbox).click(function(){a(b.input_checkbox).attr("disabled",false);if(a(this).val()==0){a(b.input_checkbox+":not(:eq(0))").attr("checked",false)}else{a(b.input_checkbox+":eq(0)").attr("checked",false);if(a(b.input_checkbox+":checked").length>=3){a(b.input_checkbox+":not(:checked:eq(0))").attr("disabled",true)}}if(!a(b.input_checkbox+":checked").length){a(b.input_checkbox+":eq(0)").attr("checked",true)}});a(b.edit_button).live("click",function(){if(a(b.edit_container).css("height")!="0px"){a(b.input_checkbox).each(function(){a(this).attr("checked",false)});if(a(b.input_checkbox+":checked").length<3){a(b.input_checkbox).attr("disabled",false)}a(b.container+" "+b.container_content).each(function(){var e=a(this).attr("rel").split("_");a(b.input_checkbox).each(function(){(a(this).val()==e[1])?a(this).attr("checked",true):null})});if(a(b.input_checkbox+":checked").length>=3){a(b.input_checkbox+":not(:checked:eq(0))").attr("disabled",true)}}});a(b.submit_button).click(function(){var g=b.container+":";var e=a(b.input_checkbox+":checked").length;if(e){var f=a(b.total).val();f=(a(b.input_checkbox+":eq(0)").is(":checked"))?f:parseInt(f-1);if(e==2){f=parseInt((f-2)/2)}else{if(e==3){f=parseInt((f-3)/3)}}a(b.container+" "+b.container_content).each(function(){var i=a(this);var h=false;a(b.input_checkbox+":checked").each(function(){if(i.attr("rel")==b.container_id+a(this).val()+"_"+f){h=true}});if(!h){a(this).remove()}});a(b.input_checkbox+":checked").each(function(h){if(!a(b.container_content+"[rel*="+b.container_id+a(this).val()+"_"+f+"]").length){if(a(b.container+" "+b.container_content+":eq(0)").attr("rel")==undefined){a(b.container).prepend('
  • Loading data..
  • ')}g+=(h===0)?"":";";g+=a(this).val()+",";g+=f;a.getJSON("http://api.kompas.com/data/lattest_article/"+a(this).val()+"/"+f+"/?jsoncallback=?",function(i){if(i.status==1){if(a(b.container+" "+b.container_content+":eq(0)").attr("rel")==undefined){a(b.container+" "+b.container_content+":eq(0)").remove()}a(b.container).append(i.results)}else{}})}});savePreferences(g)}});function d(e){return e.replace(" ","")}},listComment:function(e,c){var d={container:"#comment_list",paging:"#comment_paging",paging_link:"a[rel*=page_comment]",total:"#comment_total"};c=a.extend(d,c);b();a(c.paging_link).live("click",function(f){if(f.button==0){b(parseInt(a(this).attr("id").substr(2,a(this).attr("id").length)))}return false});function b(){var f=arguments;var g=(f[0]==undefined)?1:f[0];a.getJSON("http://api.kompas.com/comments/get_article_comments2011/"+e+"/"+g+"/?jsoncallback=?",function(h){if(h.status==1){a(c.container).html(h.results.comments);a(c.total).html("Ada "+h.results.total_comment+" Komentar Untuk Artikel Ini.");a(c.paging).html(h.results.pagging);if(f[0]!=undefined){var i=a(".list_komentar").offset().top;a("html, body").animate({scrollTop:i+"px"})}}else{a(c.container).html(" ");a(c.total).empty()}})}},listCommentVideo:function(e,c){var d={container:"#comment_list",paging:"#comment_paging",paging_link:"a[rel*=page_comment]",total:"#comment_total"};c=a.extend(d,c);b();a(c.paging_link).live("click",function(f){if(f.button==0){b(parseInt(a(this).attr("id").substr(2,a(this).attr("id").length)))}return false});function b(){var f=arguments;var g=(f[0]==undefined)?1:f[0];a.getJSON("http://api.kompas.com/comments/get_video_comments/"+e+"/"+g+"/?jsoncallback=?",function(h){if(h.status==1){a(c.container).html(h.results.comments);a(c.total).html("Ada "+h.results.total_comment+" Komentar Untuk Video Ini.");a(c.paging).html(h.results.pagging);if(f[0]!=undefined){var i=a(".list_komentar").offset().top;a("html, body").animate({scrollTop:i+"px"})}}else{a(c.container).html(" ");a(c.total).empty()}})}},listCommentDirectory:function(e,c){var d={container:"#comment_list",paging:"#comment_paging",paging_link:"a[rel*=page_comment]",total:"#comment_total"};c=a.extend(d,c);b();a(c.paging_link).live("click",function(f){if(f.button==0){b(parseInt(a(this).attr("id").substr(2,a(this).attr("id").length)))}return false});function b(){var f=arguments;var g=(f[0]==undefined)?1:f[0];a.getJSON("http://api.kompas.com/comments/get_directory_comments/"+e+"/"+g+"/?jsoncallback=?",function(h){if(h.status==1){a(c.container).html(h.results.comments);a(c.total).html("Ada "+h.results.total_comment+" Komentar Untuk Direktori Ini.");a(c.paging).html(h.results.pagging);if(f[0]!=undefined){var i=a(".list_komentar").offset().top;a("html, body").animate({scrollTop:i+"px"})}}else{a(c.container).html(" ");a(c.total).empty()}})}},listCommentObituari:function(e,c){var d={container:"#comment_list",paging:"#comment_paging",paging_link:"a[rel*=page_comment]",total:"#comment_total"};c=a.extend(d,c);b();a(c.paging_link).live("click",function(f){if(f.button==0){b(parseInt(a(this).attr("id").substr(2,a(this).attr("id").length)))}return false});function b(){var f=arguments;var g=(f[0]==undefined)?1:f[0];a.getJSON("http://api.kompas.com/comments/get_obituari_comments/"+e+"/"+g+"/?jsoncallback=?",function(h){if(h.status==1){a(c.container).html(h.results.comments);a(c.total).html("Ada "+h.results.total_comment+" ucapan belasungkawa.");a(c.paging).html(h.results.pagging);if(f[0]!=undefined){var i=a(".list_komentar").offset().top;a("html, body").animate({scrollTop:i+"px"})}}else{a(c.container).html(" ");a(c.total).empty()}})}},mostPopularArticles:function(b){var c={trigger:"#most_popular"};b=a.extend(c,b);a(b.trigger).click(function(){var d=a(this).next().find("ul");if(d.find("li").length==1||!d.find("li").length){d.html("
  • Loading data...
  • ");a.getJSON("http://api.kompas.com/data/most_popular/?jsoncallback=?",function(e){if(e.status==1){d.html(e.results)}else{d.html("
  • Data belum tersedia.
  • ")}})}})},mostPopularArticles2:function(){var b=a("#most_popular").next().find("ul");if(b.find("li").length==1||!b.find("li").length){b.html("
  • Loading data...
  • ");a.getJSON("http://api.kompas.com/data/most_popular/?jsoncallback=?",function(c){if(c.status==1){b.html(c.results)}else{b.html("
  • Data belum tersedia.
  • ")}})}},mostCommentedArticles:function(b){var c={trigger:"#most_commented"};b=a.extend(c,b);a(b.trigger).click(function(){var d=a(this).next().find("ul");if(d.find("li").length==1||!d.find("li").length){d.html("
  • Loading data...
  • ");a.getJSON("http://api.kompas.com/comments/most_commented/?jsoncallback=?",function(e){if(e.status==1){d.html(e.results)}else{d.html("
  • Data belum tersedia.
  • ")}})}})},searchBox:function(c,b){var d={blur_text:"Kata kunci",css_blur_property:"",css_focus_property:"",focus_text:""};b=a.extend(d,b);a(c).val(b.blur_text);a(c).focus(function(){if(b.css_focus_property!=""){a(this).css(b.css_focus_property,b.css_focus_value)}(a(this).val()==b.blur_text)?a(this).val(b.focus_text):null});a(c).blur(function(){var e=a(this).val();if(e==""){if(b.css_blur_property!=""){a(this).css(b.css_blur_property,b.css_blur_value)}a(this).val(b.blur_text)}})},sso:function(b){var d={bypass:false,login_button:"#sso_login, #sso_login_comment",signup_button:"#sso_signup"};b=a.extend(d,b);var e='
    ';e+='').css(h.extend(b.o.iframeCss,{display:"none",opacity:0,position:"fixed",height:f[0],width:f[1],zIndex:b.o.zIndex,top:0,left:0})).appendTo(b.o.appendTo)}b.d.overlay=h("
    ").attr("id",b.o.overlayId).addClass("simplemodal-overlay").css(h.extend(b.o.overlayCss,{display:"none",opacity:b.o.opacity/100,height:f[0],width:f[1],position:"fixed",left:0,top:0,zIndex:b.o.zIndex+1})).appendTo(b.o.appendTo);b.d.container=h("
    ").attr("id",b.o.containerId).addClass("simplemodal-container").css(h.extend(b.o.containerCss,{display:"none",position:"fixed",zIndex:b.o.zIndex+2})).append(b.o.close&&b.o.closeHTML?h(b.o.closeHTML).addClass(b.o.closeClass):"").appendTo(b.o.appendTo);b.d.wrap=h("
    ").attr("tabIndex",-1).addClass("simplemodal-wrap").css({height:"100%",outline:0,width:"100%"}).appendTo(b.d.container);b.d.data=a.attr("id",a.attr("id")||b.o.dataId).addClass("simplemodal-data").css(h.extend(b.o.dataCss,{display:"none"})).appendTo("body");a=null;b.setContainerDimensions();b.d.data.appendTo(b.d.wrap);if(e||g){b.fixIE()}},bindEvents:function(){var a=this;h("."+a.o.closeClass).bind("click.simplemodal",function(b){b.preventDefault();a.close()});if(a.o.close&&a.o.overlayClose){a.d.overlay.bind("click.simplemodal",function(b){b.preventDefault();a.close()})}h(document).bind("keydown.simplemodal",function(b){if(a.o.focus&&b.keyCode==9){a.watchTab(b)}else{if((a.o.close&&a.o.escClose)&&b.keyCode==27){b.preventDefault();a.close()}}});h(window).bind("resize.simplemodal",function(){f=a.getDimensions();a.setContainerDimensions(true);if(e||g){a.fixIE()}else{a.d.iframe&&a.d.iframe.css({height:f[0],width:f[1]});a.d.overlay.css({height:f[0],width:f[1]})}})},unbindEvents:function(){h("."+this.o.closeClass).unbind("click.simplemodal");h(document).unbind("keydown.simplemodal");h(window).unbind("resize.simplemodal");this.d.overlay.unbind("click.simplemodal")},fixIE:function(){var b=this,a=b.o.position;h.each([b.d.iframe||null,b.d.overlay,b.d.container],function(c,C){if(C){var i="document.body.clientHeight",K="document.body.clientWidth",I="document.body.scrollHeight",L="document.body.scrollLeft",z="document.body.scrollTop",D="document.body.scrollWidth",E="document.documentElement.clientHeight",d="document.documentElement.clientWidth",s="document.documentElement.scrollLeft",H="document.documentElement.scrollTop",G=C[0].style;G.position="absolute";if(c<2){G.removeExpression("height");G.removeExpression("width");G.setExpression("height",""+I+" > "+i+" ? "+I+" : "+i+' + "px"');G.setExpression("width",""+D+" > "+K+" ? "+D+" : "+K+' + "px"')}else{var A,F;if(a&&a.constructor==Array){var J=a[0]?typeof a[0]=="number"?a[0].toString():a[0].replace(/px/,""):C.css("top").replace(/px/,"");A=J.indexOf("%")==-1?J+" + (t = "+H+" ? "+H+" : "+z+') + "px"':parseInt(J.replace(/%/,""))+" * (("+E+" || "+i+") / 100) + (t = "+H+" ? "+H+" : "+z+') + "px"';if(a[1]){var B=typeof a[1]=="number"?a[1].toString():a[1].replace(/px/,"");F=B.indexOf("%")==-1?B+" + (t = "+s+" ? "+s+" : "+L+') + "px"':parseInt(B.replace(/%/,""))+" * (("+d+" || "+K+") / 100) + (t = "+s+" ? "+s+" : "+L+') + "px"'}}else{A="("+E+" || "+i+") / 2 - (this.offsetHeight / 2) + (t = "+H+" ? "+H+" : "+z+') + "px"';F="("+d+" || "+K+") / 2 - (this.offsetWidth / 2) + (t = "+s+" ? "+s+" : "+L+') + "px"'}G.removeExpression("top");G.removeExpression("left");G.setExpression("top",A);G.setExpression("left",F)}}})},focus:function(a){var c=this,b=a||"first";var d=h(":input:enabled:visible:"+b,c.d.wrap);d.length>0?d.focus():c.d.wrap.focus()},getDimensions:function(){var a=h(window);var b=h.browser.opera&&h.browser.version>"9.5"&&h.fn.jquery<="1.2.6"?document.documentElement.clientHeight:h.browser.opera&&h.browser.version<"9.5"&&h.fn.jquery>"1.2.6"?window.innerHeight:a.height();return[b,a.width()]},getVal:function(a){return a=="auto"?0:a.indexOf("%")>0?a:parseInt(a.replace(/px/,""))},setContainerDimensions:function(m){var c=this;if(!m||(m&&c.o.autoResize)){var d=c.getVal(c.d.container.css("height")),p=c.getVal(c.d.container.css("width")),b=c.d.data.outerHeight(true),n=c.d.data.outerWidth(true);var o=c.o.maxHeight&&c.o.maxHeighto){d=o}else{if(bo?o:d}if(!p){if(!n){p=c.o.minWidth}else{if(n>a){p=a}else{if(na?a:p}c.d.container.css({height:d,width:p});if(b>d||n>p){c.d.wrap.css({overflow:"auto"})}}if(c.o.autoPosition){c.setPosition()}},setPosition:function(){var d=this,b,c,a=(f[0]/2)-(d.d.container.outerHeight(true)/2),j=(f[1]/2)-(d.d.container.outerWidth(true)/2);if(d.o.position&&Object.prototype.toString.call(d.o.position)==="[object Array]"){b=d.o.position[0]||a;c=d.o.position[1]||j}else{b=a;c=j}d.d.container.css({left:c,top:b})},watchTab:function(b){var c=this;if(h(b.target).parents(".simplemodal-container").length>0){c.inputs=h(":input:enabled:visible:first, :input:enabled:visible:last",c.d.data[0]);if((!b.shiftKey&&b.target==c.inputs[c.inputs.length-1])||(b.shiftKey&&b.target==c.inputs[0])||c.inputs.length==0){b.preventDefault();var a=b.shiftKey?"last":"first";setTimeout(function(){c.focus(a)},10)}}else{b.preventDefault();setTimeout(function(){c.focus()},10)}},open:function(){var a=this;a.d.iframe&&a.d.iframe.show();if(h.isFunction(a.o.onOpen)){a.o.onOpen.apply(a,[a.d])}else{a.d.overlay.show();a.d.container.show();a.d.data.show()}a.focus();a.bindEvents()},close:function(){var a=this;if(!a.d.data){return false}a.unbindEvents();if(h.isFunction(a.o.onClose)&&!a.occb){a.occb=true;a.o.onClose.apply(a,[a.d])}else{if(a.d.parentNode){if(a.o.persist){a.d.data.hide().appendTo(a.d.parentNode)}else{a.d.data.hide().remove();a.d.orig.appendTo(a.d.parentNode)}}else{a.d.data.hide().remove()}a.d.container.hide().remove();a.d.overlay.hide().remove();a.d.iframe&&a.d.iframe.hide().remove();a.d={}}}}})(jQuery);(function(aI){var az,au,ar,aF,al,aD,ap,ao,an,ax=0,aG={},aw=[],ay=0,aH={},aC=[],ak=null,av=new Image,ai=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,w=/[^\.]\.(swf)\s*$/i,ah,ag=1,aB,aA,aE=false,aq=aI.extend(aI("
    ")[0],{prop:0}),at=0,aa=!aI.support.opacity&&!window.XMLHttpRequest,af=function(){au.hide();av.onerror=av.onload=null;ak&&ak.abort();az.empty()},Z=function(){aI.fancybox('

    The requested content cannot be loaded.
    Please try again later.

    ',{scrolling:"no",padding:20,transitionIn:"none",transitionOut:"none"})},ae=function(){return[aI(window).width(),aI(window).height(),aI(document).scrollLeft(),aI(document).scrollTop()]},t=function(){var c=ae(),j={},i=aH.margin,e=aH.autoScale,g=(20+i)*2,b=(20+i)*2,h=aH.padding*2;if(aH.width.toString().indexOf("%")>-1){j.width=c[0]*parseFloat(aH.width)/100-40;e=false}else{j.width=aH.width+h}if(aH.height.toString().indexOf("%")>-1){j.height=c[1]*parseFloat(aH.height)/100-40;e=false}else{j.height=aH.height+h}if(e&&(j.width>c[0]-g||j.height>c[1]-b)){if(aG.type=="image"||aG.type=="swf"){g+=h;b+=h;e=Math.min(Math.min(c[0]-g,aH.width)/aH.width,Math.min(c[1]-b,aH.height)/aH.height);j.width=Math.round(e*(j.width-h))+h;j.height=Math.round(e*(j.height-h))+h}else{j.width=Math.min(j.width,c[0]-g);j.height=Math.min(j.height,c[1]-b)}}j.top=c[3]+(c[1]-(j.height+40))*0.5;j.left=c[2]+(c[0]-(j.width+40))*0.5;if(aH.autoScale===false){j.top=Math.max(c[3]+i,j.top);j.left=Math.max(c[2]+i,j.left)}return j},r=function(b){if(b&&b.length){switch(aH.titlePosition){case"inside":return b;case"over":return''+b+"";default:return''+b+''}}return false},k=function(){var b=aH.title,e=aA.width-aH.padding*2,c="fancybox-title-"+aH.titlePosition;aI("#fancybox-title").remove();at=0;if(aH.titleShow!==false){b=aI.isFunction(aH.titleFormat)?aH.titleFormat(b,aC,ay,aH):r(b);if(!(!b||b==="")){aI('
    ').css({width:e,paddingLeft:aH.padding,paddingRight:aH.padding}).html(b).appendTo("body");switch(aH.titlePosition){case"inside":at=aI("#fancybox-title").outerHeight(true)-aH.padding;aA.height+=at;break;case"over":aI("#fancybox-title").css("bottom",aH.padding);break;default:aI("#fancybox-title").css("bottom",aI("#fancybox-title").outerHeight(true)*-1)}aI("#fancybox-title").appendTo(al).hide()}}},f=function(){aI(document).unbind("keydown.fb").bind("keydown.fb",function(b){if(b.keyCode==27&&aH.enableEscapeButton){b.preventDefault();aI.fancybox.close()}else{if(b.keyCode==37){b.preventDefault();aI.fancybox.prev()}else{if(b.keyCode==39){b.preventDefault();aI.fancybox.next()}}}});if(aI.fn.mousewheel){aF.unbind("mousewheel.fb");aC.length>1&&aF.bind("mousewheel.fb",function(b,c){b.preventDefault();aE||c===0||(c>0?aI.fancybox.prev():aI.fancybox.next())})}if(aH.showNavArrows){if(aH.cyclic&&aC.length>1||ay!==0){ao.show()}if(aH.cyclic&&aC.length>1||ay!=aC.length-1){an.show()}}},ad=function(){aD.css("overflow",aH.scrolling=="auto"?aH.type=="image"||aH.type=="iframe"||aH.type=="swf"?"hidden":"auto":aH.scrolling=="yes"?"auto":"visible");if(!aI.support.opacity){aD.get(0).style.removeAttribute("filter");aF.get(0).style.removeAttribute("filter")}aI("#fancybox-title").show();aH.hideOnContentClick&&aD.one("click",aI.fancybox.close);aH.hideOnOverlayClick&&ar.one("click",aI.fancybox.close);aH.showCloseButton&&ap.show();f();aI(window).bind("resize.fb",aI.fancybox.center);aH.centerOnScroll?aI(window).bind("scroll.fb",aI.fancybox.center):aI(window).unbind("scroll.fb");aI.isFunction(aH.onComplete)&&aH.onComplete(aC,ay,aH);aE=false;var b,c;if(aC.length-1>ay){b=aC[ay+1].href;if(typeof b!=="undefined"&&b.match(ai)){c=new Image;c.src=b}}if(ay>0){b=aC[ay-1].href;if(typeof b!=="undefined"&&b.match(ai)){c=new Image;c.src=b}}},ac=function(b){var e=Math.round(aB.width+(aA.width-aB.width)*b),c=Math.round(aB.height+(aA.height-aB.height)*b);aF.css({width:e+"px",height:c+"px",top:Math.round(aB.top+(aA.top-aB.top)*b)+"px",left:Math.round(aB.left+(aA.left-aB.left)*b)+"px"});e=Math.max(e-aH.padding*2,0);c=Math.max(c-(aH.padding*2+at*b),0);aD.css({width:e+"px",height:c+"px"});if(typeof aA.opacity!=="undefined"){aF.css("opacity",b<0.5?0.5:b)}},R=function(){var b=aG.orig?aI(aG.orig):false,c={};if(b&&b.length){c=b.offset();c.top+=parseFloat(b.css("paddingTop"))||0;c.left+=parseFloat(b.css("paddingLeft"))||0;c.top+=parseFloat(b.css("border-top-width"))||0;c.left+=parseFloat(b.css("border-left-width"))||0;c.width=b.width();c.height=b.height();c={width:c.width+aH.padding*2,height:c.height+aH.padding*2,top:c.top-aH.padding-20,left:c.left-aH.padding-20}}else{b=ae();c={width:1,height:1,top:b[3]+b[1]*0.5,left:b[2]+b[0]*0.5}}return c},ab=function(){au.hide();if(aF.is(":visible")&&aI.isFunction(aH.onCleanup)){if(aH.onCleanup(aC,ay,aH)===false){aI.event.trigger("fancybox-cancel");aE=false;return}}aC=aw;ay=ax;aH=aG;aD.get(0).scrollTop=0;aD.get(0).scrollLeft=0;if(aH.overlayShow){aa&&aI("select:not(#fancybox-tmp select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"});ar.css({"background-color":aH.overlayColor,opacity:aH.overlayOpacity}).unbind().show()}aA=t();k();if(aF.is(":visible")){aI(ap.add(ao).add(an)).hide();var b=aF.position(),c;aB={top:b.top,left:b.left,width:aF.width(),height:aF.height()};c=aB.width==aA.width&&aB.height==aA.height;aD.fadeOut(aH.changeFade,function(){var e=function(){aD.html(az.contents()).fadeIn(aH.changeFade,ad)};aI.event.trigger("fancybox-change");aD.empty().css("overflow","hidden");if(c){aD.css({top:aH.padding,left:aH.padding,width:Math.max(aA.width-aH.padding*2,1),height:Math.max(aA.height-aH.padding*2-at,1)});e()}else{aD.css({top:aH.padding,left:aH.padding,width:Math.max(aB.width-aH.padding*2,1),height:Math.max(aB.height-aH.padding*2,1)});aq.prop=0;aI(aq).animate({prop:1},{duration:aH.changeSpeed,easing:aH.easingChange,step:ac,complete:e})}})}else{aF.css("opacity",1);if(aH.transitionIn=="elastic"){aB=R();aD.css({top:aH.padding,left:aH.padding,width:Math.max(aB.width-aH.padding*2,1),height:Math.max(aB.height-aH.padding*2,1)}).html(az.contents());aF.css(aB).show();if(aH.opacity){aA.opacity=0}aq.prop=0;aI(aq).animate({prop:1},{duration:aH.speedIn,easing:aH.easingIn,step:ac,complete:ad})}else{aD.css({top:aH.padding,left:aH.padding,width:Math.max(aA.width-aH.padding*2,1),height:Math.max(aA.height-aH.padding*2-at,1)}).html(az.contents());aF.css(aA).fadeIn(aH.transitionIn=="none"?0:aH.speedIn,ad)}}},aj=function(){az.width(aG.width);az.height(aG.height);if(aG.width=="auto"){aG.width=az.width()}if(aG.height=="auto"){aG.height=az.height()}ab()},am=function(){af();var c=aw[ax],i,h,e,g,b;aG=aI.extend({},aI.fn.fancybox.defaults,typeof aI(c).data("fancybox")=="undefined"?aG:aI(c).data("fancybox"));e=c.title||aI(c).title||aG.title||"";if(c.nodeName&&!aG.orig){aG.orig=aI(c).children("img:first").length?aI(c).children("img:first"):aI(c)}if(e===""&&aG.orig){e=aG.orig.attr("alt")}i=c.nodeName&&/^(?:javascript|#)/i.test(c.href)?aG.href||null:aG.href||c.href||null;if(aG.type){h=aG.type;if(!i){i=aG.content}}else{if(aG.content){h="html"}else{if(i){if(i.match(ai)){h="image"}else{if(i.match(w)){h="swf"}else{if(aI(c).hasClass("iframe")){h="iframe"}else{if(i.match(/#/)){c=i.substr(i.indexOf("#"));h=aI(c).length>0?"inline":"ajax"}else{h="ajax"}}}}}else{h="inline"}}}aG.type=h;aG.href=i;aG.title=e;if(aG.autoDimensions&&aG.type!=="iframe"&&aG.type!=="swf"){aG.width="auto";aG.height="auto"}if(aG.modal){aG.overlayShow=true;aG.hideOnOverlayClick=false;aG.hideOnContentClick=false;aG.enableEscapeButton=false;aG.showCloseButton=false}if(aI.isFunction(aG.onStart)){if(aG.onStart(aw,ax,aG)===false){aE=false;return}}az.css("padding",20+aG.padding+aG.margin);aI(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){aI(this).replaceWith(aD.children())});switch(h){case"html":az.html(aG.content);aj();break;case"inline":aI('
    ').hide().insertBefore(aI(c)).bind("fancybox-cleanup",function(){aI(this).replaceWith(aD.children())}).bind("fancybox-cancel",function(){aI(this).replaceWith(az.children())});aI(c).appendTo(az);aj();break;case"image":aE=false;aI.fancybox.showActivity();av=new Image;av.onerror=function(){Z()};av.onload=function(){av.onerror=null;av.onload=null;aE=true;aG.width=av.width;aG.height=av.height;aI("").attr({id:"fancybox-img",src:av.src,alt:aG.title}).appendTo(az);ab()};av.src=i;break;case"swf":g='';b="";aI.each(aG.swf,function(l,j){g+='';b+=" "+l+'="'+j+'"'});g+='";az.html(g);aj();break;case"ajax":c=i.split("#",2);h=aG.ajax.data||{};if(c.length>1){i=c[0];if(typeof h=="string"){h+="&selector="+c[1]}else{h.selector=c[1]}}aE=false;aI.fancybox.showActivity();ak=aI.ajax(aI.extend(aG.ajax,{url:i,data:h,error:Z,success:function(j){if(ak.status==200){az.html(j);aj()}}}));break;case"iframe":aI('').appendTo(az);ab()}},d=function(){if(au.is(":visible")){aI("div",au).css("top",ag*-40+"px");ag=(ag+1)%12}else{clearInterval(ah)}},a=function(){if(!aI("#fancybox-wrap").length){aI("body").append(az=aI('
    '),au=aI('
    '),ar=aI('
    '),aF=aI('
    '));if(!aI.support.opacity){aF.addClass("fancybox-ie");au.addClass("fancybox-ie")}al=aI('
    ').append('
    ').appendTo(aF);al.append(aD=aI('
    '),ap=aI(''),ao=aI(''),an=aI(''));ap.click(aI.fancybox.close);au.click(aI.fancybox.cancel);ao.click(function(b){b.preventDefault();aI.fancybox.prev()});an.click(function(b){b.preventDefault();aI.fancybox.next()});if(aa){ar.get(0).style.setExpression("height","document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px'");au.get(0).style.setExpression("top","(-20 + (document.documentElement.clientHeight ? document.documentElement.clientHeight/2 : document.body.clientHeight/2 ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop )) + 'px'");al.prepend('')}}};aI.fn.fancybox=function(b){aI(this).data("fancybox",aI.extend({},b,aI.metadata?aI(this).metadata():{})).unbind("click.fb").bind("click.fb",function(c){c.preventDefault();if(!aE){aE=true;aI(this).blur();aw=[];ax=0;c=aI(this).attr("rel")||"";if(!c||c==""||c==="nofollow"){aw.push(this)}else{aw=aI("a[rel="+c+"], area[rel="+c+"]");ax=aw.index(this)}am();return false}});return this};aI.fancybox=function(b,h){if(!aE){aE=true;var g=typeof h!=="undefined"?h:{};aw=[];ax=g.index||0;if(aI.isArray(b)){for(var c=0,e=b.length;caw.length||ax<0){ax=0}am()}};aI.fancybox.showActivity=function(){clearInterval(ah);au.show();ah=setInterval(d,66)};aI.fancybox.hideActivity=function(){au.hide()};aI.fancybox.next=function(){return aI.fancybox.pos(ay+1)};aI.fancybox.prev=function(){return aI.fancybox.pos(ay-1)};aI.fancybox.pos=function(b){if(!aE){b=parseInt(b,10);if(b>-1&&aC.length>b){ax=b;am()}if(aH.cyclic&&aC.length>1&&b<0){ax=aC.length-1;am()}if(aH.cyclic&&aC.length>1&&b>=aC.length){ax=0;am()}}};aI.fancybox.cancel=function(){if(!aE){aE=true;aI.event.trigger("fancybox-cancel");af();aG&&aI.isFunction(aG.onCancel)&&aG.onCancel(aw,ax,aG);aE=false}};aI.fancybox.close=function(){function b(){ar.fadeOut("fast");aF.hide();aI.event.trigger("fancybox-cleanup");aD.empty();aI.isFunction(aH.onClosed)&&aH.onClosed(aC,ay,aH);aC=aG=[];ay=ax=0;aH=aG={};aE=false}if(!(aE||aF.is(":hidden"))){aE=true;if(aH&&aI.isFunction(aH.onCleanup)){if(aH.onCleanup(aC,ay,aH)===false){aE=false;return}}af();aI(ap.add(ao).add(an)).hide();aI("#fancybox-title").remove();aF.add(aD).add(ar).unbind();aI(window).unbind("resize.fb scroll.fb");aI(document).unbind("keydown.fb");aD.css("overflow","hidden");if(aH.transitionOut=="elastic"){aB=R();var c=aF.position();aA={top:c.top,left:c.left,width:aF.width(),height:aF.height()};if(aH.opacity){aA.opacity=1}aq.prop=1;aI(aq).animate({prop:0},{duration:aH.speedOut,easing:aH.easingOut,step:ac,complete:b})}else{aF.fadeOut(aH.transitionOut=="none"?0:aH.speedOut,b)}}};aI.fancybox.resize=function(){var b,c;if(!(aE||aF.is(":hidden"))){aE=true;b=aD.wrapInner("
    ").children();c=b.height();aF.css({height:c+aH.padding*2+at});aD.css({height:c});b.replaceWith(b.children());aI.fancybox.center()}};aI.fancybox.center=function(){aE=true;var b=ae(),e=aH.margin,c={};c.top=b[3]+(b[1]-(aF.height()-at+40))*0.5;c.left=b[2]+(b[0]-(aF.width()+40))*0.5;c.top=Math.max(b[3]+e,c.top);c.left=Math.max(b[2]+e,c.left);aF.css(c);aE=false};aI.fn.fancybox.defaults={padding:10,margin:20,opacity:false,modal:false,cyclic:false,scrolling:"auto",width:560,height:340,autoScale:true,autoDimensions:true,centerOnScroll:false,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:true,hideOnContentClick:false,overlayShow:true,overlayOpacity:0.3,overlayColor:"#666",titleShow:true,titlePosition:"outside",titleFormat:null,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",easingOut:"swing",showCloseButton:true,showNavArrows:true,enableEscapeButton:true,onStart:null,onCancel:null,onComplete:null,onCleanup:null,onClosed:null};aI(document).ready(function(){a()})})(jQuery); /* 1507101626: otomotif-global.js */ jQuery.noConflict();jQuery(function(h){h("ul.subnav").parent().append("");h("ul.topnav li span").click(function(){h(this).parent().find("ul.subnav").slideDown("fast").show();h(this).parent().hover(function(){},function(){h(this).parent().find("ul.subnav").slideUp("slow")})}).hover(function(){h(this).addClass("subhover")},function(){h(this).removeClass("subhover")});if(h("#iklanbaris_container").length){h("#iklanbaris_container").html("Loading data..");h.getJSON("http://api.kompas.com/index.php/otomotif/iklanbaris_preview/?jsoncallback=?",function(j){if(j.status==1){var i="";h(j.results).each(function(l,k){i+='
    ';i+=''+k.kategori+"";i+='';i+='
    ';i+=""+k.content+"";i+=""+k.tanggal+""});h("#iklanbaris_container").html(i)}else{h("#iklanbaris_container").html(" ")}})}var b=500;var e=0;var a=0;function d(){c();f();a=h(this).find("ul").css("visibility","visible")}function f(){if(a){a.css("visibility","hidden")}}function g(){e=window.setTimeout(f,b)}function c(){if(e){window.clearTimeout(e);e=null}}h(document).ready(function(){h("#jsddm > li").bind("mouseover",d);h("#jsddm > li").bind("mouseout",g)});document.onclick=f}); jQuery.noConflict();jQuery(document).ready(function(){jQuery("div.panel_button").click(function(){jQuery("div#droppanel").animate({height:"0px"},200);jQuery("div.panel_button").toggle()});jQuery("div#hide_button").click(function(){jQuery("div#droppanel").animate({height:"380px"},200)});jQuery("div.panel_buttontopbar").click(function(){if(parseInt(jQuery("div#panelnotification").css("height"))>0){jQuery("div.panel_buttonnotification").toggle();jQuery("div#panelnotification").animate({height:"0px"},200)}jQuery("div#paneltopbar").animate({height:"200px"},200);jQuery("div.panel_buttontopbar").toggle()});jQuery("div#hide_buttontopbar").click(function(){jQuery("div#paneltopbar").animate({height:"0px"},200)});jQuery("div.panel_buttonnotification").click(function(){if(parseInt(jQuery("div#paneltopbar").css("height"))>0){jQuery("div#paneltopbar").animate({height:"0px"},200);jQuery("div.panel_buttontopbar").toggle()}jQuery("div#panelnotification").animate({height:"200px"},200);jQuery("div.panel_buttonnotification").toggle()});jQuery("div#hide_buttonnotification").click(function(){jQuery("div#panelnotification").animate({height:"0px"},200)});jQuery("div.panel_menu").mouseenter(function(){jQuery("div#panelmenu").animate({height:"30px"},200);jQuery("span.more").hide()});jQuery("div#panelout").mouseleave(function(){jQuery("div#panelmenu").animate({height:"0px"},200);jQuery("span.more").show()});jQuery("div.panel_menu").mouseenter(function(){jQuery("div#panelmenuc").animate({height:"30px"},200);jQuery("span.more").hide()});jQuery("div#panelout").mouseleave(function(){jQuery("div#panelmenuc").animate({height:"0px"},200);jQuery("span.more").show()})}); /* 1507101626: otomotif-wp.js */ jQuery.noConflict();jQuery(function(a){a("#latest_pagination a").live("click",function(){var b="page="+a(this).attr("rel").replace("latest_","");a.ajax({data:b,type:"POST",url:"http://"+document.domain+"/latest",success:function(c){a("#latest_list").html(c)}});return false})});var tabs=[];var ind=0;var inter;function change(a){jQuery(".tab:not(#"+a+")").hide();if(jQuery.browser.msie&&jQuery.browser.version.substr(0,3)=="6.0"){jQuery(".tab#"+a).show()}else{jQuery(".tab#"+a).show()}jQuery(".htabs a:not(#"+a+"t)").removeClass("select");jQuery(".htabs a[href=#"+a+"]").addClass("select")}function next(){change(tabs[ind++]);if(ind>=tabs.length){ind=0}}jQuery(".tab").map(function(){tabs[ind++]=jQuery(this).attr("id")});ind=1;jQuery(".tab:not(:first)").hide();jQuery(".tab:first").show();jQuery("#"+tabs[0]+"t").addClass("select");jQuery(".htabs a").click(function(){clearInterval(inter);stringref=jQuery(this).attr("href").split("#")[1];change(stringref);return false});inter=setInterval("next()",6000);