

/*
$(".base_home").click(function(){location.href='http://www.wassada.com/';return false;});

$(".docTop, .docTopB").click(function(){
 $('html, body').animate({scrollTop:0}, 'fast');
});
*/

/*
$(document).bind("contextmenu", function(e){
    return false;
 });
*/
/* drage
var omitformtags=["input", "textarea", "select"]

omitformtags=omitformtags.join("|")

function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}

function reEnable(){
return true
}

if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}
*/
var _MainHost = 'http://www.wassada.com';
var _Promotion = new Array();
var _PromotionTxt = new Array();
/*var _Promotion = new Array('shopping', 'event', 'vanpum', 'jangnal', '','jangnal_wed', 'oneday', 'special', 'record','promotion','auction'); */


_Promotion.push("shopping");
_Promotion.push("event");
_Promotion.push("vanpum");
_Promotion.push("jangnal");
_Promotion.push("");
_Promotion.push("jangnal_wed");
_Promotion.push("oneday");
_Promotion.push("special");
_Promotion.push("open");
_Promotion.push("promotion");
_Promotion.push("auction");


_PromotionTxt.push("¼îÇÎ¸ô");
_PromotionTxt.push("ÀÌº¥Æ®");
_PromotionTxt.push("¹ÝÇ°¸ô");
_PromotionTxt.push("Àå³¯");
_PromotionTxt.push("");
_PromotionTxt.push("¼ö¸ñÀå³¯");
_PromotionTxt.push("¿øµ¥ÀÌ");
_PromotionTxt.push("Æ¯»ê¹°");
_PromotionTxt.push("¿ÀÇÂ¸ô");
_PromotionTxt.push("±âÈ¹Àü");
_PromotionTxt.push("°æ¸Å");




function CommonDirectUrl(v_Obj) {
	var _CDUrl = new Array();
	var _CDUrl_Txt = new Array();

	var _TargetObj = new Array(_MainHost,_MainHost+'/member/login.asp',_MainHost+'/member/register.asp',_MainHost+'/shopping/cart.asp',_MainHost+'/member/order.asp',_MainHost+'/cscenter/',_MainHost+'/member/user.asp',_MainHost+'/member/logout.asp');
	
	if(v_Obj.length == 0) v_Obj = 0;
	
	_goLocation(_TargetObj[v_Obj],'blankForm');
	
}


function PromotionDirectUrl(v_Pg,v_Code) {
	var queryStr
	if(v_Pg.length == 0) v_Pg = 0;
	
	if(v_Code == '' || v_Code == undefined) queryStr = '';
	else queryStr = '?code='+v_Code+'&CategoryDepth=&part=&CategoryDisplayStep=';
	
	var TUrl = _MainHost+'/'+_Promotion[v_Pg]+queryStr;
	
	_goLocation(TUrl,'blankForm');
	
}

function ShopNavigationUrl(n_url, CategoryDiff) {
	
	if(n_url == '') n_url = _MainHost;
	
	var NewUrl = _MainHost+'/' + _Promotion[0] + '/?' + n_url + '&ShopCategoryPDepth=' + CategoryDiff;

	_goLocation(NewUrl,'blankForm');
	
}



function CheckOpt(obj,ovalue) {
	var tobj = document.getElementById(obj);

	if(ovalue.indexOf('Ç°Àý') != -1) {
		tobj.selectedIndex = 0;
		alert('¼±ÅÃÇÏ½Å Á¦Ç°Àº ÀÏ½ÃÇ°ÀýÀÔ´Ï´Ù!!');
	} else {
		var x = document.getElementById(obj);
		var splitValue = ovalue.split("|");
		//if(_Main_num == 160268) {
			if(splitValue[5]) {
				document.getElementById('disp_price').innerHTML=addComma(splitValue[5]);
			} else {
				var price = document.getElementById('prod_price').value;
				document.getElementById('disp_price').innerHTML=addComma(price);
			}
		//}
	}
}

function _goLocation(turl,tframe) {
	var actF = document.getElementById(tframe);
	actF.action = turl;
	actF.submit();
	
}


function expandCat(e) {
	var itemobj = document.getElementById(e);
	if(typeof itemobj!="undefined") {
		var mystat = itemobj.style.display;
			if(mystat=="none") {
				itemobj.style.display="";
				//document.all['content'].style.display = 'none';
			} else {
				itemobj.style.display="none";
				//document.all['content'].style.display = '';
			}

	}
}

function _goTop() {
	self.scrollTo(0, 0);
}


/*
function _tooltip()
{
	//var Lloc = $("#cardFree").height.val();
	//alert(Lloc);
	//var pop_status = $("tooltip").style.display;
	//$("#tooltip").style.display = 'block';

	//$("#tooltip").style.height = '65px';
	
	$("#tooltip").hover(
	function() {
		$(this).show();
	}, 
	function() {
		$(this).hide();
	}
	);
}
*/
