//이미지 고정 jQuery(function() { jQuery.fn.supersized.options = { startwidth: 1950, startheight: 1250, vertical_center: 1, slideshow: 1, navigation: 1, transition: 0, //0-None, 1-Fade, 2-slide top, 3-slide right, 4-slide bottom, 5-slide left pause_hover: 0, slide_counter: 1, slide_captions: 1, slide_interval: 7500 }; jQuery('#supersize').supersized(); }); function home_slide(){ $('#main_slide_data').load("/home/slide.html").fadeIn("slow"); } //배경 화면 처리 function changeback(backname){ var newsrc = "/file/original/"+backname; $('#imager').fadeOut(2000, function(){ $(this).attr('src',newsrc).bind('onreadystatechange load', function(){ if (this.complete) $(this).fadeIn(2000); }); }); } //화면 이동 function scrolltop(img){ $('html,body').animate({ scrollTop: $("#top").offset().top }, 2000); changeback(img); ProjectlayerControl('1','Retail'); } function scrollhome(img){ $('html,body').animate({ scrollTop: $("#home").offset().top }, 2000); changeback(img); } function scrollbot(img){ $('html,body').animate({ scrollTop: $("#bot").offset().top }, 2000); changeback(img); } function scrollleft(img){ $('html,body').animate({ scrollLeft: $("#contactus").offset().left }, 2000); changeback(img); $('#contactus_data1').load("/ContactUs/ContactUs.html"); } function scrolllefthome(img){ $('html,body').animate({ scrollLeft: $("#home").offset().left }, 2000); changeback(img); } // 해상도 리사이즈시 값구해오기 // window.onresize = resize; function resize(){ var w =document.body.clientWidth; var h = document.body.clientHeight; LeftPosition=(w/2)-(1250/2); if(h < 849){ TopPosition=(h/2)-(848/2); }else{ TopPosition=0; } } $(function () { $("#slideScrollControlWrap1").slidescrollcontrol({ contentWidth: 504, duration: 500 }); }); if (typeof document.compatMode!='undefined'&&document.compatMode!='BackCompat') { cot_t1_DOCtp="_top:expression(document.documentElement.scrollTop+document.documentElement.clientHeight-this.clientHeight);_left:expression(document.documentElement.scrollLeft + document.documentElement.clientWidth - offsetWidth);}"; }else { cot_t1_DOCtp="_top:expression(document.body.scrollTop+document.body.clientHeight-this.clientHeight);_left:expression(document.body.scrollLeft + document.body.clientWidth - offsetWidth);}"; } var cot_tl_bodyCSS='* html {background:url(blank.gif) fixed;background-repeat: repeat;background-position: right bottom;}'; var cot_tl_fixedCSS='#cot_tl_fixed{position:fixed;'; var cot_tl_fixedCSS=cot_tl_fixedCSS+'_position:absolute;'; var cot_tl_fixedCSS=cot_tl_fixedCSS+'z-index:1;'; var cot_tl_fixedCSS=cot_tl_fixedCSS+'width:100%;'; var cot_tl_fixedCSS=cot_tl_fixedCSS+'text-align:center;'; var cot_tl_fixedCSS=cot_tl_fixedCSS+'bottom:0px;'; var cot_tl_fixedCSS=cot_tl_fixedCSS+'right:0px;'; var cot_tl_fixedCSS=cot_tl_fixedCSS+'clip:rect(0 100% 100% 0);'; var cot_tl_fixedCSS=cot_tl_fixedCSS+cot_t1_DOCtp; document.write(''); //홈 컨트롤 function HomelayerControl(num,pval){ for(i=1;i<4;i++){ changeback('../../images/all_bg/all_home_bg.jpg'); $("#home"+i).hide(1000); $('#home'+i+'_btn').attr('src',"/images/button_off.png"); } if(num){ if(num=="1"){ changeback('../../images/all_bg/all_location_bg.jpg'); } if(num=="2"){ changeback('../../images/all_bg/all_information_bg.jpg'); } $("#home"+num).show(1000); $('#home'+num+'_btn').attr('src',"/images/button_on.png"); $('#home_data'+num).load("/home/"+pval+".html").fadeIn("slow"); } if(num=="1"){ mapControl(1); } } //프로젝트 컨트롤 function ProjectlayerControl(num,pval){ for(i=1;i<5;i++){ $("#project"+i).hide(1000); $('#project'+i+'_btn').attr('src',"/images/button_off.png"); } if(num){ $("#project"+num).show(1000); $("#project_view").hide(1000); $('#project'+num+'_btn').attr('src',"/images/button_on.png"); $('#project_data'+num).load("/project/"+pval+".html").fadeIn("slow"); } } //프로젝트 컨트롤 function ProjectDataControl(num,position){ for(i=1;i<5;i++){ $("#project"+i).hide(1000); $('#project'+i+'_btn').attr('src',"/images/button_off.png"); } if(num){ $("#project_view").show(1000); $('#project_view').load("/project/"+position+"_view.html?idx="+num).fadeIn("slow"); }else{ $("#project_view").hide(1000); } } //컴파니 컨트롤 function CompanylayerControl(num,pval){ for(i=1;i<8;i++){ changeback('../../images/all_bg/all_company_bg.jpg'); $("#company"+i).hide(1000); $('#company'+i+'_btn').attr('src',"/images/button_off.png"); } if(num){ if(num=="1"){ changeback('../../images/all_bg/all_location_bg.jpg'); } if(num=="2"){ changeback('../../images/all_bg/all_contantus_bg.jpg'); } $("#company"+num).show(1000); $('#company'+num+'_btn').attr('src',"/images/button_on.png"); $('#company_data'+num).load("/company/"+pval+".html"); } if(num=="1"){ mapControl(5); } } //지도 컨트롤 function mapControl(num){ for(i=1;i<9;i++){ $("#map"+i).hide(1000); } $("#map"+num).show(1000); $('#location_map'+num).attr("src", $('#location_map'+num).attr("src")); }