var listNum = 0; var popNum = 0; var currentTxt; jQuery(document).ready(function(){ //scrollTop°ª ¾ò¾î¿À±â //jQuery('html, body').animate({scrollTop:jQuery(document).height()}, 0); //var scrollHeight = jQuery(window).scrollTop(); //jQuery('html, body').animate({scrollTop:0}, 0); //scrollTop°ª ¾ò¾î¿À±â //jQuery('html, body').animate({scrollTop:jQuery(document).height()}, 0); //var scrollHeight = jQuery(window).scrollTop(); var scrollHeight = jQuery(document).height() - jQuery(window).height(); //jQuery('html, body').animate({scrollTop:0}, 0); currentTxt = jQuery(".techList").find("td").index(this); var curNum; var bigImage = jQuery(".imgBig").children("img"); var imgsrc = jQuery(bigImage).attr("src"); var oldImgNum = 1; jQuery(".popupWrap").css("height", jQuery(document).height()); jQuery(".popupWrap").stop().hide(0); jQuery(".popup").stop().slideUp(0); jQuery(".techList").find("td").find(".pop").slideUp(0); jQuery(".details").children("li").click(function(e){ //jQuery(".popupWrap").stop().show(0); //jQuery(".popup").eq(jQuery(".details").children("li").index(this)).stop().slideDown(0); }); var curPopNum; var curPopNum2; jQuery(window).scroll(function(){ jQuery(".popup").eq(curPopNum).stop().css("top", ((jQuery("#subBody").height() - 580)-0)/(scrollHeight-0)*(jQuery(window).scrollTop()-0)+0); jQuery(".popup").eq(curPopNum2).stop().css("top", ((jQuery("#subBody").height() - 0)-0)/(scrollHeight-0)*(jQuery(window).scrollTop()-0)+0); }); jQuery(".details").children("li").each(function(q){ jQuery(this).click(function(){ curNum = jQuery(this).find(".txt").text().substr(jQuery(this).find(".txt").text().length-3, 3); curTxt = jQuery(this).find(".txt").text().substr(jQuery(this).find(".txt").text().substr(0, 1)).toLowerCase(); jQuery(".popupWrap").stop().show(0); curPopNum = q; jQuery(".popup").eq(curPopNum).stop().css("top", ((jQuery("#subBody").height() - 580)-0)/(scrollHeight-0)*(jQuery(window).scrollTop()-0)+0); jQuery(".popup").eq(q).stop().slideDown(0); oldImgNum= 1; jQuery(".popup").eq(q).find(".imgBig").find("img").attr("src", "/common/images/icon/"+curTxt+"_1.jpg"); }) }) jQuery(".resultSwan03 ul").children("li").each(function(q){ jQuery(this).click(function(){ jQuery(".popupWrap").stop().show(0); curPopNum2 = q; jQuery(".popup").eq(curPopNum2).stop().css("top", ((jQuery("#subBody").height() - 0)-0)/(scrollHeight-0)*(jQuery(window).scrollTop()-0)+0); jQuery(".popup").eq(q).stop().slideDown(0); }) }) jQuery(".certifi").children("li").each(function(q){ jQuery(this).click(function(){ jQuery(".popupWrap").stop().show(0); //jQuery(".popup").eq(q).stop().css("top", jQuery(window).scrollTop()); jQuery(".popup").eq(q).stop().slideDown(0); oldImgNum= 1; }) }) jQuery(".popup").each(function(q){ jQuery(this).find(".picList").children("li").each(function(k){ jQuery(this).click(function(){ if(jQuery(this).find("a").is(":visible")) { jQuery(this).parent().parent().find(".imgBig").find("img").attr("src", jQuery(this).parent().parent().find(".imgBig").find("img").attr("src").replace("_"+oldImgNum+".jpg", "_"+(k+1)+".jpg")); oldImgNum = (k+1); } }) }) }) jQuery(".popup").find(".closeBt").each(function(){ jQuery(this).click(function(){ jQuery(".popupWrap").stop().hide(0); jQuery(this).parents(".popup").stop().slideUp(0); }); }); jQuery(".popupWrap").click(function(){ jQuery(".popupWrap").stop().hide(0); jQuery(".popup").stop().slideUp(0); }) var tooltipNum = -1; jQuery(".tooltip").each(function(q){ jQuery(this).click(function(){ if(tooltipNum != -1) jQuery(".tooltip").eq(tooltipNum).next().stop(true).slideUp(200); if(jQuery(this).next().is(":hidden")) { jQuery(this).next().stop(true).slideDown(200); tooltipNum = q; } else { jQuery(this).next().stop(true).slideUp(200); tooltipNum = -1; } }) }) //ÅÇ var tabNum = 0; jQuery(".tabMenu").find("li").each(function(q){ jQuery(this).click(function(){ if(tabNum != q){ jQuery(".tabMenu").find("li").eq(tabNum).removeClass("on"); jQuery(".historySwan0"+(tabNum+1)).css("display", "none"); jQuery(".resultSwan0"+(tabNum+1)).css("display", "none"); jQuery(".mapSwan0"+(tabNum+1)).css("display", "none"); tabNum = q; jQuery(".tabMenu").find("li").eq(tabNum).addClass("on"); jQuery(".historySwan0"+(tabNum+1)).css("display", "block"); jQuery(".resultSwan0"+(tabNum+1)).css("display", "block"); jQuery(".mapSwan0"+(tabNum+1)).css("display", "block"); } }); }); }); function SwitchImageSrcList(obj, str) { var src = jQuery(obj).attr("src"); if(typeof src != "undefined" && jQuery(obj).length > 0) { if(src.indexOf("_on.") >= 0) { jQuery(obj).attr("src", src.replace("_on", str)); } else if(src.indexOf("_off.") >= 0) { jQuery(obj).attr("src", src.replace("_off", str)); } else { jQuery(obj).attr("src", src.replace(".", str + ".")); } } }