ODN.thickbox={tb_pathToImage:"/img/loadingAnimation.gif",tb_toggleList:new Array(),imgLoader:null,TB_WIDTH:0,TB_HEIGHT:0,ajaxContentW:0,ajaxContentH:0,hiddenObjs:"",TB_launch:function(){this.imgLoader=new Image();
this.imgLoader.src=this.tb_pathToImage;this.hiddenObjs=(ODN.sect_L3!=""&&ODN.priority!="")?"#superIframe, #adsCTN object, #adsCTN embed, #newsInfoCTN object, #newsInfoCTN embed":"object, embed";$("a.thickbox").click(function(){with(ODN.thickbox){var t=this.title||this.innerHTML||this.href;
TB_show(t,$(this).attr("href"));this.blur();return false}})},TB_show:function(caption,url){try{with(ODN.thickbox){if(typeof document.body.style.maxHeight==="undefined"){if(document.getElementById("TB_HideSelect")===null){$("body").append('<iframe id="TB_HideSelect"></iframe><div id="TB_overlay"></div><div id="TB_shadow"></div><div id="TB_window"></div>')
}}else{if(document.getElementById("TB_overlay")===null){$("body").append('<div id="TB_overlay"></div><div id="TB_shadow"></div><div id="TB_window"></div>')}}if(tb_detectMacXFF()){$("#TB_overlay").addClass("TB_overlayMacFFBGHack")
}else{$("#TB_overlay").addClass("TB_overlayBG")}if(caption===null){caption=""}$(hiddenObjs).each(function(){$(this).css({visibility:"hidden"})});var queryString=url.replace(/^[^\?]+\??/,"");var params=tb_parseQuery(queryString);
TB_WIDTH=980;TB_HEIGHT=600;if(screen.width<=800){TB_WIDTH=650;TB_HEIGHT=400}else{if(screen.width<=1024){TB_WIDTH=934;TB_HEIGHT=586}}ajaxContentW=TB_WIDTH;ajaxContentH=TB_HEIGHT;$("#TB_iframeContent").remove();
$("#TB_window").append("<iframe frameborder='0' hspace='0' src='/cnt/"+ODN.sect+"/imageGallery_"+ODN.getSectCode()+".html?pId="+url+"' id='TB_iframeContent' scrolling='no' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;' > </iframe>");
$("#TB_window").css({display:"block"});tb_position();if($.browser.safari){$("#TB_window").css({display:"block"})}document.onkeyup=function(e){if(e==null){keycode=event.keyCode}else{keycode=e.which}if(keycode==27){tb_remove()
}}}}catch(e){alert(e)}},tb_showIframe:function(){$("#TB_load").remove();$("#TB_window").css({display:"block"})},tb_showshadow:function(){$("#TB_shadow").css({display:"block"})},tb_remove:function(){with(ODN.thickbox){$("#TB_window").css({display:"none"});
$("#TB_window,#TB_overlay,#TB_shadow,#TB_HideSelect").trigger("unload").unbind().remove();$(hiddenObjs).each(function(){$(this).css({visibility:"visible"})});document.onkeydown="";document.onkeyup="";return false
}},tb_position:function(){var scTop=$(document).scrollTop();var adjTop=$(window).height()-this.TB_HEIGHT;if(adjTop<0){adjTop=scTop}else{adjTop=scTop+Math.round(adjTop/2)}with(ODN.thickbox){if($(window).width()>TB_WIDTH){$("#TB_window").css({left:"50%",marginLeft:"-"+parseInt((TB_WIDTH/2),10)+"px",width:TB_WIDTH+"px"})
}else{$("#TB_window").css({left:"0px",marginLeft:"0px"})}$("#TB_window").css({marginTop:adjTop+"px"})}},tb_parseQuery:function(d){var e={};if(!d){return e}var a=d.split(/[;&]/);for(var c=0;c<a.length;c++){var g=a[c].split("=");
if(!g||g.length!=2){continue}var b=unescape(g[0]);var f=unescape(g[1]);f=f.replace(/\+/g," ");e[b]=f}return e},tb_getPageSize:function(){var d=document.documentElement;var a=window.innerWidth||self.innerWidth||(d&&d.clientWidth)||document.body.clientWidth;
var c=window.innerHeight||self.innerHeight||(d&&d.clientHeight)||document.body.clientHeight;var b=[a,c];return b},tb_detectMacXFF:function(){var a=navigator.userAgent.toLowerCase();if(a.indexOf("mac")!=-1&&a.indexOf("firefox")!=-1){return true
}}};ODN.videobox={vb_pathToImage:"/img/loadingAnimation.gif",vb_toggleList:new Array(),imgLoader:null,VB_WIDTH:0,VB_HEIGHT:0,ajaxContentW:0,ajaxContentH:0,hiddenObjs:"",VB_launch:function(){this.imgLoader=new Image();
this.imgLoader.src=this.vb_pathToImage;this.hiddenObjs=(ODN.sect_L3!=""&&ODN.priority!="")?"#superIframe, #adsCTN object, #adsCTN embed, #newsInfoCTN object, #newsInfoCTN embed":"object, embed";$("a.videobox").click(function(){with(ODN.videobox){var t=this.title||this.innerHTML||this.href;
VB_show(t,this.href);this.blur();return false}});with(ODN.videobox){$(hiddenObjs).each(function(){vb_toggleList.push($(this))})}},VB_show:function(caption,url){try{with(ODN.videobox){if(typeof document.body.style.maxHeight==="undefined"){$("body","html").css({height:"100%",width:"100%"});
$("html").css("overflow","hidden");if(document.getElementById("VB_HideSelect")===null){$("body").append('<iframe id="VB_HideSelect"></iframe><div id="VB_overlay"></div><div id="VB_shadow"></div><div id="VB_window"></div>')
}}else{if(document.getElementById("VB_overlay")===null){$("body").append('<div id="VB_overlay"></div><div id="VB_shadow"></div><div id="VB_window"></div>')}}if(vb_detectMacXFF()){$("#VB_overlay").addClass("VB_overlayMacFFBGHack")
}else{$("#VB_overlay").addClass("VB_overlayBG")}if(caption===null){caption=""}$("body").append('<div id="VB_load"><img src="'+imgLoader.src+'" /></div>');$(hiddenObjs).each(function(){$(this).css({visibility:"hidden"})
});$("#VB_load").show();var queryString=url.replace(/^[^\?]+\??/,"");var params=vb_parseQuery(queryString);VB_WIDTH=(params.width*1)||630;VB_HEIGHT=(params.height*1)||440;VB_WIDTH=905;VB_HEIGHT=395;if(screen.width<=800){VB_WIDTH=760;
VB_HEIGHT=340}else{if(screen.width<=1024){VB_WIDTH=874;VB_HEIGHT=401}}ajaxContentW=VB_WIDTH;ajaxContentH=VB_HEIGHT;var urlNoQuery=url.split("VB_");$("#VB_iframeContent").remove();$("#VB_window").append("<iframe frameborder='0' hspace='0' src='/cnt/"+ODN.sect+"/videoPlayer_"+ODN.getSectCode()+".html' id='VB_iframeContent' scrolling='no' name='VB_iframeContent"+Math.round(Math.random()*1000)+"' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;' onload='ODN.videobox.vb_showIframe()'> </iframe>");
$("#VB_closeWindowButton").click(vb_remove);vb_position();if($.browser.safari){$("#VB_load").remove();$("#VB_window").css({display:"block"})}document.onkeyup=function(e){if(e==null){keycode=event.keyCode
}else{keycode=e.which}if(keycode==27){vb_remove()}}}}catch(e){alert(e)}},vb_showIframe:function(){$("#VB_load").remove();$("#VB_window").css({display:"block"})},vb_showshadow:function(){$("#VB_shadow").css({display:"block"})
},vb_remove:function(){with(ODN.videobox){$("#VB_imageOff").unbind("click");$("#VB_closeWindowButton").unbind("click");$("#VB_window").css({display:"none"});$("#VB_shadow").css({display:"none"});$("#VB_window,#VB_overlay,#TB_shadow,#VB_HideSelect").trigger("unload").unbind().remove();
$(hiddenObjs).each(function(){$(this).css({visibility:"visible"})});$("#VB_load").remove();if(typeof document.body.style.maxHeight=="undefined"){$("body","html").css({height:"auto",width:"auto"});$("html").css("overflow","")
}document.onkeydown="";document.onkeyup="";return false}},vb_position:function(){var scTop=$(document).scrollTop();var adjTop=$(window).height()-this.VB_HEIGHT;with(ODN.videobox){$("#VB_window").css({marginLeft:"-"+parseInt((VB_WIDTH/2),10)+"px",width:VB_WIDTH+"px"});
$("#VB_shadow").css({marginLeft:"-"+parseInt((VB_WIDTH/2),10)+"px",width:VB_WIDTH+"px"});if(!(jQuery.browser.msie&&jQuery.browser.version<7)){$("#VB_window").css({marginTop:((adjTop<0)?0-Math.round($(window).height()/2):0-Math.round(this.VB_HEIGHT/2))+"px"})
}else{$("#VB_window").css({marginTop:((adjTop<0)?scTop-Math.round($(window).height()/2):scTop-Math.round(this.VB_HEIGHT/2))+"px"})}}},vb_parseQuery:function(d){var e={};if(!d){return e}var a=d.split(/[;&]/);
for(var c=0;c<a.length;c++){var g=a[c].split("=");if(!g||g.length!=2){continue}var b=unescape(g[0]);var f=unescape(g[1]);f=f.replace(/\+/g," ");e[b]=f}return e},vb_getPageSize:function(){var d=document.documentElement;
var a=window.innerWidth||self.innerWidth||(d&&d.clientWidth)||document.body.clientWidth;var c=window.innerHeight||self.innerHeight||(d&&d.clientHeight)||document.body.clientHeight;var b=[a,c];return b},vb_detectMacXFF:function(){var a=navigator.userAgent.toLowerCase();
if(a.indexOf("mac")!=-1&&a.indexOf("firefox")!=-1){return true}}};
