////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// ¢Æ imgOver
//
//**************************************************************************************************************
//
// Example)
//
//
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function imgOver(imgEl,opt) {
var src = imgEl.getAttribute('src');
var ftype = src.substring(src.lastIndexOf('.'), src.length);
if (opt == 'out') imgEl.src = imgEl.src.replace("_on"+ftype, ftype);
else imgEl.src = imgEl.src.replace(ftype, "_on"+ftype);
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// ¢Æ setPng24
//
//**************************************************************************************************************
//
// Usage) IE 7 ÀÌÇÏ¿¡¼ png24 ÀÇ ¾ËÆÄä³Î Áö¿ø
//
// Example)
//
// - css ÆÄÀ϶Ǵ ¹®¼³»¿¡ .png24{tmp:expression(setPng24(this));} °¡ ÁöÁ¤µÇÀÖ¾î¾ß »ç¿ë°¡´É
//
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function setPng24(obj) {
var browser = navigator.appName;
var version = parseFloat(navigator.appVersion.replace (/^.*MSIE ([.0-9]+).*$/,"$1"));
if(browser.indexOf("Internet Explorer") && version < 7.0 ) { // IE6 ÀÌÇÏ¿¡¼¸¸ µ¿ÀÛ 2008-03-14 by zardsama
obj.width=obj.height=1;
obj.className=obj.className.replace(/\bpng24\b/i,'');
obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');"
obj.src='';
return '';
}
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// ¢Æ eaChg(
//
//**************************************************************************************************************
//
// Usage) input text ¼ýÀÚ up & down
//
// Example)
//
//
//
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function eaChg(f,pm){
if (pm == 1) {
f.buy_ea.value++;
}else {
if (f.buy_ea.value <= 1) return;
f.buy_ea.value--;
}
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// ¢Æ goFlash
//
//**************************************************************************************************************
//
// Usage) Ç÷¡½Ã ¸µÅ© ÀÚ¹Ù½ºÅ©¸³Æ® ¿¬µ¿
//
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
var flashLink=new Array();
flashLink[00]="/";
function goFlash(n){
if (flashLink[n]) location.href=flashLink[n];
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// ¢Æ backTop
//
//**************************************************************************************************************
//
// Usage) »ó´ÜÀ̵¿ top button
//
// Example)
//
//
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function backTop() {
x = document.body.scrollLeft;
y = document.body.scrollTop;
step = 2;
while ((x != 0) || (y != 0)) {
scroll (x, y);
step += (step * step / 1);
x -= step;
y -= step;
if (x < 0) x = 0;
if (y < 0) y = 0;
}
scroll (0, 0);
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// ¢Æ bookmarksite
//
//**************************************************************************************************************
//
// Usage) Áñ°Üã±â
//
// Example)
//
// - À§»ç¸ôÀÇ °æ¿ì
// °°ÀÌ phpº¯¼ö¿Í ÇÔ²² »ç¿ë°¡´É
//
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function addBookmark() {
var url = root_url;
var title = document.title;
if (window.sidebar) // firefox
window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print) { // opera
var elem = document.createElement('a');
elem.setAttribute('href',url);
elem.setAttribute('title',title);
elem.setAttribute('rel','sidebar');
elem.click();
}
else if(document.all) // IE
window.external.AddFavorite(url, title);
}
////////////////////////////////////////////////////////////////////////////////////////////
//
// ¢Æ R2Slider 1.0
//
// - 2008-03-20 by zardsama
//
//***************************************************************************************
//
// Usage)
// var º¯¼ö¸í = new R2Slider("·¹À̾î ID","º¯¼ö¸í", ¼Óµµ, »ó´Ü¸¶Áø, DTD);
// º¯¼ö¸í.slide();
// - ¼Óµµ, »ó´Ü¸¶ÁøÀº »ý·« °¡´É / ÃßÈÄ º¯°æ °¡´É
// - 'º¯¼ö¸í.limitTop' ȤÀº 'º¯¼ö¸í.limitBottom' À¸·Î »ó/ÇÏ´Ü ÇѰè ÁöÁ¡ ¼³Á¤°¡´É
//
// Example)
//