function idx2cate(idx) { switch(idx) { case 0: return('T'); case 1: return('G'); case 2: return('E'); } return false; } function cate2idx(cate) { switch(cate) { case 'T': return(0); case 'G': return(1); case 'E': return(2); } return false; } function to2digits(num) { if (num < 10) { return '0' + num; } else { return num; } } //±âº» À̺¥Æ®µé µî·Ï jQuery.noConflict(); jQuery(document).ready( function(){ //ÇöÀç¸Þ´º on jQuery('#gnb img').each( function(i) { if (jQuery(this).attr('id') == current_gnb) { jQuery(this).attr('src', template + '/img/' + jQuery(this).attr('id') + '_on.gif'); } }); //¸Þ´º ¿À¹öÀ̺¥Æ®½Ã À̹ÌÁö º¯°æ µî·Ï //ÁÖ¸Þ´º jQuery('#gnb img').hover( function () { jQuery(this).attr('src', template + '/img/' + jQuery(this).attr('id') + '_over.gif'); }, function () { if (jQuery(this).attr('id') == current_gnb) { jQuery(this).attr('src', template + '/img/' + jQuery(this).attr('id') + '_on.gif'); } else { jQuery(this).attr('src', template + '/img/' + jQuery(this).attr('id') + '.gif'); } } ); jQuery('#gnb_03').hover( function () { jQuery('#gnb_sub').show(); }, function () { jQuery('#gnb_sub').hide(); } ); //¼­ºê¸Þ´º jQuery('#gnb_sub').hover( function () { jQuery('#gnb_sub').show(); }, function () { jQuery('#gnb_sub').hide(); } ); jQuery('#gnb_sub img').hover( function () { jQuery(this).attr('src', template + '/img/' + jQuery(this).attr('id') + '_over.gif'); }, function () { jQuery(this).attr('src', template + '/img/' + jQuery(this).attr('id') + '.gif'); } ); //À§·Î°¡±â À̺¥Æ® µî·Ï jQuery('#to_top').hover( function () { jQuery(this).css('cursor', 'pointer'); }, function () { jQuery(this).css('cursor', 'default'); } ); jQuery('#to_top').click( function () { jQuery('html').scrollTop(0); } ); jQuery('#recent_notice').replaceWith('' + jQuery('.bd_out1').html() + ''); } );