$(document).ready(function(){ start_mover(); fn_famliylogo_auto(); }); var peRe = 0; var pe; var pestop = true; var intv = 3700; var speed = 550; function makeTic(){ var now = new Date(); return now.getTime() } function stop_mover() { pestop = true; } function start_mover() { if (pestop == true) { pestop = false; banner_next(); } } function show_flip(){ if( $("li.mainnav-btn-image01").css("display") == "none" ){ $("li.mainnav-btn-image01").css({"display":"block"}); pestop = true; } if( $("li.mainnav-btn-image02").css("display") == "none" ){ $("li.mainnav-btn-image02").css({"display":"block"}); pestop = true; } } function style_btn(next, prev, stop, play){ $("li.btn_next img").attr("src","/images/main/btn04.gif"); $("li.btn_prev img").attr("src","/images/main/btn03.gif"); $("li.btn_stop img").attr("src","/images/main/btn01.gif"); $("li.btn_play img").attr("src","/images/main/btn02.gif"); } function banner_btn_play(){ start_mover(); style_btn("off","off","off",""); } function banner_btn_stop(){ clearTimeout(pe); stop_mover(); style_btn("off","off","","off"); } function banner_btn_next(){ if( ( makeTic() - peRe ) >= speed || peRe == 0 ){ peRe = makeTic(); clearTimeout(pe); pestop = true; banner_next(); style_btn("","off","","off"); $("li.mainnav-btn-image01").css({"display":"none"}); setTimeout("show_flip()",speed+200); }else{ } } function banner_btn_prev(){ if( ( makeTic() - peRe ) >= speed || peRe == 0 ){ peRe = makeTic(); clearTimeout(pe); pestop = true; banner_prev(); style_btn("off","","","off"); $("div.mainnav-btn-image02").css({"display":"none"}); setTimeout("show_flip()",speed+200); }else{ } } function banner_next(){ peRe = makeTic(); var container = $("ul.moving_container"); var first = $("ul.moving_container li:nth-child(1)"); var second = $("ul.moving_container li:nth-child(2)"); container.animate( { "left": ( - parseInt(first.css("width"),10) ) + "px" }, speed , function(){ container.css( { "left":"0px" } ); first.remove(); container.append(first); } ); if (pestop == false) { pe = setTimeout("banner_next()",intv); } } function banner_prev(){ peRe = makeTic(); var container = $("ul.moving_container"); var first = $("ul.moving_container li:nth-child(1)"); var second = $("ul.moving_container li:nth-child(2)"); var last = $("ul.moving_container li:last-child"); container.animate( { "left": ( - parseInt(first.css("width"),10) ) + "px" }, 0 , function(){ last.remove(); first.before(last); container.animate({"left":0},speed); } ); } var arr_logo = new Array(); var arr_idx = new Array(); var arr_company = new Array(); arr_logo[1]="/files/WIZ_FAMILY/1/skc_cilicone.jpg"; arr_idx[1]="1"; arr_company[1]="SKC Silicone"; arr_logo[2]="/files/WIZ_FAMILY/2/청도바이오텍(1).jpg"; arr_idx[2]="2"; arr_company[2]="청도바이오텍"; arr_logo[3]="/files/WIZ_FAMILY/3/진성.jpg"; arr_idx[3]="3"; arr_company[3]="진성 CAD/CAM"; arr_logo[4]="/files/WIZ_FAMILY/4/이비즈라인.jpg"; arr_idx[4]="4"; arr_company[4]="이비즈라인㈜"; arr_logo[5]="/files/WIZ_FAMILY/5/㈜mk테크.jpg"; arr_idx[5]="5"; arr_company[5]="㈜MK테크"; arr_logo[6]="/files/WIZ_FAMILY/6/(재)경북여성정책개발원.jpg"; arr_idx[6]="6"; arr_company[6]="(재)경북여성정책개발원"; arr_logo[7]="/files/WIZ_FAMILY/7/경북디스플레이.jpg"; arr_idx[7]="7"; arr_company[7]="경북디스플레이협력단, 인력양성사업단"; arr_logo[8]="/files/WIZ_FAMILY/8/㈜머스트.jpg"; arr_idx[8]="8"; arr_company[8]="㈜머스트"; arr_logo[9]="/files/WIZ_FAMILY/9/㈜글로벌웹.jpg"; arr_idx[9]="9"; arr_company[9]="㈜글로벌웹"; arr_logo[10]="/files/WIZ_FAMILY/10/엔아이티.jpg"; arr_idx[10]="10"; arr_company[10]="㈜엔아이티"; arr_logo[11]="/files/WIZ_FAMILY/11/포스소프트.jpg"; arr_idx[11]="11"; arr_company[11]="포스소프트"; arr_logo[12]="/files/WIZ_FAMILY/12/계림금속.jpg"; arr_idx[12]="12"; arr_company[12]="계림금속㈜ 산학연 기술소"; arr_logo[13]="/files/WIZ_FAMILY/13/이오공감(1).jpg"; arr_idx[13]="13"; arr_company[13]="이오공감"; arr_logo[14]="/files/WIZ_FAMILY/14/항공우주.jpg"; arr_idx[14]="14"; arr_company[14]="항공우주기술혁신센터"; arr_logo[15]="/files/WIZ_FAMILY/15/㈜미래경영연구소.jpg"; arr_idx[15]="15"; arr_company[15]="㈜미래경영연구소"; arr_logo[16]="/files/WIZ_FAMILY/16/아카데미정보통신㈜.jpg"; arr_idx[16]="16"; arr_company[16]="아카데미정보통신㈜"; arr_logo[17]="/files/WIZ_FAMILY/17/㈜정도유아이티.jpg"; arr_idx[17]="17"; arr_company[17]="㈜정도유아이티"; arr_logo[18]="/files/WIZ_FAMILY/18/한국메디큐브(1).jpg"; arr_idx[18]="18"; arr_company[18]="한국메디큐브"; arr_logo[19]="/files/WIZ_FAMILY/19/㈜소프트파워(구,kpec혁신_사관학교).jpg"; arr_idx[19]="19"; arr_company[19]="㈜소프트파워(구,KPEC혁신 사관학교)"; arr_logo[20]="/files/WIZ_FAMILY/20/㈜태경하이텍(1).jpg"; arr_idx[20]="20"; arr_company[20]="㈜태경하이텍"; arr_logo[21]="/files/WIZ_FAMILY/21/㈜지비테크.jpg"; arr_idx[21]="21"; arr_company[21]="㈜지비테크"; arr_logo[22]="/files/WIZ_FAMILY/22/㈜참품한우.jpg"; arr_idx[22]="22"; arr_company[22]="㈜참품한우"; arr_logo[23]="/files/WIZ_FAMILY/23/엔바이런.jpg"; arr_idx[23]="23"; arr_company[23]="(주)엔바이런멘탈에너지스"; arr_logo[24]="/files/WIZ_FAMILY/24/(사)대한임베디드공학회.jpg"; arr_idx[24]="24"; arr_company[24]="(사)대한임베디드공학회"; arr_logo[25]="/files/WIZ_FAMILY/25/한스킨.jpg"; arr_idx[25]="25"; arr_company[25]="한스킨"; arr_logo[26]="/files/WIZ_FAMILY/26/㈜지오씨엔아이.jpg"; arr_idx[26]="26"; arr_company[26]="㈜지오씨엔아이"; arr_logo[27]="/files/WIZ_FAMILY/27/경북it융합산업.jpg"; arr_idx[27]="27"; arr_company[27]="(재)경북IT융합산업기술원"; arr_logo[28]="/files/WIZ_FAMILY/28/대경태양전지.jpg"; arr_idx[28]="28"; arr_company[28]="대경 태양전지/모듈 소재공정 지역혁신센터"; arr_logo[29]="/files/WIZ_FAMILY/29/그린에너바이오.jpg"; arr_idx[29]="29"; arr_company[29]="㈜그린에너바이오"; arr_logo[30]="/files/WIZ_FAMILY/30/지본.jpg"; arr_idx[30]="30"; arr_company[30]="㈜지본"; arr_logo[31]="/files/WIZ_FAMILY/31/선앤셀.jpg"; arr_idx[31]="31"; arr_company[31]="(주)선앤셀"; arr_logo[32]="/files/WIZ_FAMILY/32/시솔.jpg"; arr_idx[32]="32"; arr_company[32]="(주)시솔"; arr_logo[33]="/files/WIZ_FAMILY/33/근우테크㈜.jpg"; arr_idx[33]="33"; arr_company[33]="근우테크㈜"; arr_logo[34]="/files/WIZ_FAMILY/34/대경광역경제권.jpg"; arr_idx[34]="34"; arr_company[34]="대경광역경제권 선도산업 지원단"; arr_logo[35]="/files/WIZ_FAMILY/35/ledi융합산업화센터.jpg"; arr_idx[35]="35"; arr_company[35]="LEDIT 융합산업화 센터"; arr_logo[36]="/files/WIZ_FAMILY/36/코스메랩.jpg"; arr_idx[36]="36"; arr_company[36]="㈜코스메랩"; arr_logo[37]="/files/WIZ_FAMILY/37/주은테크.jpg"; arr_idx[37]="37"; arr_company[37]="㈜주은테크"; arr_logo[38]="/files/WIZ_FAMILY/38/포유덴트.jpg"; arr_idx[38]="38"; arr_company[38]="포유덴트"; arr_logo[39]="/files/WIZ_FAMILY/39/㈜유비테크.jpg"; arr_idx[39]="39"; arr_company[39]="㈜유비테크"; arr_logo[40]="/files/WIZ_FAMILY/40/솔라코리아.jpg"; arr_idx[40]="40"; arr_company[40]="㈜솔라코리아"; arr_logo[41]="/files/WIZ_FAMILY/41/(주)익스코어.jpg"; arr_idx[41]="41"; arr_company[41]="익스코어"; arr_logo[42]="/files/WIZ_FAMILY/42/선경화학.jpg"; arr_idx[42]="42"; arr_company[42]="선경화학(주)"; arr_logo[43]="/files/WIZ_FAMILY/43/㈜에타솔라.jpg"; arr_idx[43]="43"; arr_company[43]="㈜에타"; arr_logo[44]="/files/WIZ_FAMILY/44/하이센서앤로봇.jpg"; arr_idx[44]="44"; arr_company[44]="㈜하이센서앤로봇"; arr_logo[45]="/files/WIZ_FAMILY/45/(주)funt.jpg"; arr_idx[45]="45"; arr_company[45]="(주)FUNT"; arr_logo[46]="/files/WIZ_FAMILY/46/(주)세한에너지.jpg"; arr_idx[46]="46"; arr_company[46]="세한에너지㈜"; arr_logo[47]="/files/WIZ_FAMILY/47/(주)다시스(2).jpg"; arr_idx[47]="47"; arr_company[47]="㈜다시스"; arr_logo[48]="/files/WIZ_FAMILY/48/(주)지오선.jpg"; arr_idx[48]="48"; arr_company[48]="(주)지오선"; arr_logo[49]="/files/WIZ_FAMILY/49/㈜동의화장품.jpg"; arr_idx[49]="49"; arr_company[49]="㈜동의화장품"; arr_logo[50]="/files/WIZ_FAMILY/50/(주)한국니코.jpg"; arr_idx[50]="50"; arr_company[50]="㈜한국니코"; arr_logo[51]="/images/main/company_photo.gif"; arr_idx[51]="51"; arr_company[51]="(주)일심글로발"; arr_logo[52]="/images/main/company_photo.gif"; arr_idx[52]="52"; arr_company[52]="오스젠"; var tt; var logoidx = 1; function fn_famliylogo(val){ if( val == "next" ){ if( logoidx > arr_logo.length ){ logoidx = 1; } leftidx = logoidx; rightidx = logoidx+1; logoidx=logoidx+2; }else{ if( logoidx < 1 ){ logoidx = arr_logo.length; } leftidx = logoidx; rightidx = logoidx-1; logoidx=logoidx-2; } $("#l01 img").attr( { "src":arr_logo[leftidx], "alt": arr_company[leftidx] }); $("#l01 p").text( arr_company[leftidx]); $("#l01 a").attr( "href","http://g1.gbtp.or.kr/famliy/famliy_status/infor/?enter=v&idx="+ arr_idx[leftidx] +"&s=&k=&c=&t="); $("#l02 img").attr({ "src":arr_logo[rightidx], "alt": arr_company[rightidx] }); $("#l02 p").text( arr_company[rightidx]); $("#l02 a").attr( "href","http://g1.gbtp.or.kr/famliy/famliy_status/infor/?enter=v&idx="+ arr_idx[rightidx] +"&s=&k=&c=&t="); } function fn_famliylogo_auto(){ fn_famliylogo("next"); tt = setTimeout("fn_famliylogo_auto()",3800); } function fn_famliylogo_next(){ clearTimeout(tt); fn_famliylogo("next"); tt = setTimeout("fn_famliylogo_auto()",3800); } function fn_famliylogo_prev(){ clearTimeout(tt); fn_famliylogo("prev"); tt = setTimeout("fn_famliylogo_auto()",3800); }