﻿//hit

function EventHit(Id) {
    $.post("/Event.aspx", { 'Id': Id }, function(data) {
        eval('var result = ' + data);

        if (result.err == 1) {
            //alert("진행중인 이벤트가 아닙니다.");
        }
    })
}

//종료된 이벤트
function EndEvent() {
    alert("이벤트가 종료되었습니다.");
}


//MyMusicStory
function OpenMusicStory() {

    if (!confirm("MY MUSIC STORY VOL.1 이벤트는 종료된 이벤트입니다.\n진행되었던 이벤트 내용을 확인하시겠습니까?")) {
        return;
    }
    
    EventHit(4);
    window.open("/Campaign/MusicStory", "event_popup", "width=1000,height=610").focus();
}


//정보수정 이벤트
function EventMyInfo(s) {



    location.href = "/NoticeView.aspx?Id=7";
    
    return;
    



    EventHit(2);

    if (!s) {
        location.href = "https://secure.cocacola.co.kr/Member/MemberModify.aspx";
        return;
    }

    if (s == '1') {
        location.href = "https://secure.cocacola.co.kr/Member/MemberModify.aspx";

    }
    else {
        if (confirm('로그인 후 이용하실 수 있습니다.\n로그인 하시겠습니까?'))
            $('#btnLogin').trigger('click');

    }
}

function OpenBeautySecret() {
    EventHit(1);
    window.open("http://www.ezday.co.kr/ezqr/view.html?ad=502&q_mode=preview");

}

//열어봐짜릿한 행복을
function OpenHappiness() {
    EventHit(6);
    location.href = "/Cocacola/?e=2PMAD";

}

//위싱투게더

function WeSingTogether() {
    EventHit(5);
    window.open("http://www.youtube.com/openhappinesskorea");

}

//에메랄드 마운틴

function EBlend() {
    EventHit(3);
    location.href = "/Georgia/?e=LOUNGE";

}



//스프라이트 이벤트 바로가기
function SpriteEvent() {
    EventHit(7);
    window.open("http://cocacola.r-c.co.kr/sprite/main.asp");
}


function SpritePopup() {

    if (getCookie("popup_7") != "done") {
        window.open('/PopupMS/Sprite_201104.htm', 'popup_7', 'left=0, top=0, width=720,height=550').focus();
    }

}



//탭소닉 이벤트
function TabSonic() {
    EventHit(8);
    window.open("http://blog.naver.com/cokecast/140128348230");
}

function TabSonicPopup() {
    
	 if (getCookie("popup_8") != "done") {
        window.open('/PopupMS/Tabsonic_201104.htm', 'popup_8', 'left=0, top=0, width=720,height=550').focus();
    }
}

//미닛메이드 이벤트 바로가기
function MaidEvent() {
	EventHit(9);
	window.open("http://www.azoomma.org/?fromurl=minitorigin");
}

function MaidPopup() {
	window.open('/PopupMS/Maid_201104.html', 'popup_9', 'left=0, top=0, width=720,height=550').focus();
}


//환타 이벤트 바로가기
function FantaEvent() {
	EventHit(10);
	window.open("http://jamtalk.buddybuddy.co.kr/FantaZone/Step3.asp");
}

function FantaPopup() {
	window.open('/PopupMS/Fanta_201105.html', 'popup_10', 'left=0, top=0, width=700,height=550').focus();
}


//파워에이드 이벤트 바로가기
function PowerEvent() {
	EventHit(11);
	window.open("/Power");
}


// 125주년 이벤트 바로가기
function The125thEvent1() {
	EventHit(12);
	window.open("http://blog.naver.com/cokecast");
}
function The125thEvent2() {
	EventHit(12);
	window.open("http://www.twitter.com/CokeCaster");
}


//미닛메이드 2차 이벤트 바로가기
function MaidEvent2() {
	EventHit(13);
	window.open("http://www.azoomma.com/AzoommaAnniversary/2011/sub_event_list.html");
}

function MaidPopup2() {
	if (getCookie("popup_13") != "done") {
		window.open('/PopupMS/Maid_201105.html', 'popup_13', 'left=0, top=0, width=720,height=550').focus();
	}
}


// 코크제로 이벤트
function CokeZeroEvent() {
	EventHit(15);
	window.open("http://cocacola.r-c.co.kr/cokezerochallenge/main.asp");
}

function CokeZeroPopup() {
	window.open('/PopupMS/CokeZero_201106.html', 'popup_14', 'left=0, top=0, width=720,height=550').focus();
}


// 비타민워터 이벤트
function VitaminEvent() {
	EventHit(14);
	window.open("http://glaceauvitaminwater.joinsmsn.com");
}

function VitaminPopup() {
	window.open('/PopupMS/Vitamin_201106.html', 'popup_15', 'left=0, top=0, width=720,height=550').focus();
}


// 번인텐스 바로가기
function BurnGo() {
	window.open("/Burnintense");
}


//환타 이벤트2 바로가기
function FantaEvent2() {
	EventHit(16);
	window.open("http://jamtalk.buddybuddy.co.kr/FantaZone/Step4.asp");
}

function FantaPopup2() {
	window.open('/PopupMS/Fanta_201106.html', 'popup_16', 'left=0, top=0, width=700,height=550').focus();
}


// 환타 바로가기
function FantaGo() {
	window.open("/Fanta");
}


// 미닛메이드 바로가기
function MaidGo() {
	window.open("/Maid");
}


//네스티 이벤트 바로가기
function NesteaEvent() {
	EventHit(17);
	window.open("http://cocacola.r-c.co.kr/nesteaquiz/main.asp");
}

function NesteaPopup() {
	window.open('/PopupMS/Nestea_201107.html', 'popup_17', 'left=0, top=0, width=720,height=550').focus();
}


//코카콜라 이벤트 바로가기
function CocacolaEvent() {
	EventHit(18);
	window.open("http://blog.naver.com/cokecast/140133078491");
}

function CocacolaPopup() {
	window.open('/PopupMS/Cocacola_201107.html', 'popup_18', 'left=720, top=0, width=720,height=550').focus();
}

//오픈 해피니스 바로가기
function HappinessEvent() {
	EventHit(19);
	window.open("http://blog.naver.com/cokecast/140133078308");
}


function HappinessPopup() {
	window.open('/PopupMS/Happiness_201107.html', 'popup_19', 'left=0, top=0, width=720,height=550').focus();
}

// 코크제로 바로가기
function CokeZeroCf() {
	window.open("/CokeZero");
}

//코카콜라 이벤트 바로가기
function popup_photo() {
	EventHit(20);
	window.open("http://blog.naver.com/cokecast/140134469934");
}

// 파워에이드 바로가기
function powerAde() {
	window.open("/Power");
}


//코카콜라 트위터 이벤트 바로가기
function cokeTwitterEvent() {
	EventHit(21);
	window.open("http://twitter.com/CokeCaster");
}


//스프라이트 이벤트2 바로가기
function SpriteEvent2() {
	EventHit(22);
	window.open("http://cocacola.r-c.co.kr/sprite/event2_new.asp");
}
function SpritePopup2() {
	if (getCookie("popup_22") != "done") {
		window.open('/PopupMS/Sprite_201108.html', 'popup_22', 'left=0, top=0, width=720,height=550').focus();
	}
}


//코카콜라 포토제닉 어워드 2ST 이벤트 바로가기
function popup_photo2() {
	EventHit(23);
	window.open("http://blog.naver.com/cokecast/140135734258");
}


//네스티 CGV 이벤트 바로가기
function NesteaCgvEvent() {
	EventHit(24);
	window.open("http://www.cgv.co.kr/event/running/detail.aspx?idx=8458&templettypecode=501&templetsubtypecode=0");
}

//슈스케3 생방송 방청권
function SuperKEvent() {
	EventHit(25);
	window.open("http://blog.naver.com/cokecast/140138174955");
}
//메인 트위터 팝업
function TwitterPopup() {
	window.open('/PopupMS/Main_201108.html', 'popup_main', 'left=0, top=0, width=490,height=427').focus();
}

//코크 로또
function popup_lotto() {
	EventHit(26);
	window.open('/Campaign/Lotto/','event_lotto','width=740, height=710').focus();
}

// 아쿠아리스 바로가기
function Aquarius() {
	window.open("/Aquarius");
}

// 스마트워터이벤트 바로가기
function SmartWater() {
	EventHit(28);
	window.open("http://shop.beautyfactory.co.kr/main/event/event_decube.asp");
}

// 아쿠아리우스 이벤트 바로가기 웹
function AquariusEvent1() {
	EventHit(30);
	window.open("/Aquarius");
}

// 아쿠아리우스 이벤트 바로가기 모바일
function AquariusEvent2() {
	EventHit(29);
	window.open(" http://event.1472.me/aquarius/");
}

// 11월 개봉영화이벤트
function event9Movie() {
	window.open("http://blog.naver.com/cokecast/140143434102");
}


// 슈퍼스타k 인증샷 이벤트
function SuperKEvent2() {
	EventHit(31);
	window.open("http://blog.naver.com/cokecast/140139401771");
}

function SuperKEvent2_popup() {
	window.open('/PopupMS/Cocacola_201109.html', 'popup_31', 'left=0, top=0, width=720,height=550').focus();
}

// 소켄비차 바로가기
function Soken() {
	window.open("/Soken");
}

//코크 로또 당첨자확인
function popup_lotto2() {
	window.open("http://www.cocacola.co.kr/Notice.aspx");
}

// 12번째 슈퍼스타
function SuperKEvent3() {
	window.open("http://blog.naver.com/cokecast/140140680113");
}

// 퀴즈이벤트
function SuperKEvent4() {
	window.open("http://blog.naver.com/cokecast/140140732884");
}

// 네스티 서든어택 이벤트
function NesteaSa() {
	EventHit(32);
	window.open("http://cocacola.r-c.co.kr/nestea-sa.quiz/main.asp");
}


//개인정보 변경 이벤트
function MembershipEvent() {
    EventHit(33);
    EventLogin();
}

// 환타 고3 안아주기 프로젝트
function Fantaboom() {
	EventHit(34);
	window.open("http://wizard2.sbs.co.kr/w3/template/tpl_iframetype.jsp?vVodId=V0000352536&vProgId=1000723&vMenuId=1015700");
}
// 코크 트로피 응원이벤트
function SuperKEvent5() {
	EventHit(35);
	window.open("http://blog.naver.com/cokecast/140142762111");
}

// 오픈 해피니스송 뮤직비디오
function MusicVideo() {
	window.open("http://blog.naver.com/cokecast/140141212047");
}

// yg family 
function YgConcert() {
	EventHit(36);
	window.open("http://www.sunny10.kr/event/20111114001/event.jsp");
}

// 글라소 비타민워터 만들고 뉴욕 가자
function NewYork() {
	EventHit(37);
	window.open("http://glaceauvitaminwaterblog.co.kr/141652702");
}

// 코크 산타에세 소원을 말해봐
function SantaEvent() {
	EventHit(38);
	window.open("http://blog.naver.com/cokecast/140145988621");
}

// 크리스마스에 가장 듣고 싶은 노래는?
function eventSong() {
	window.open("http://blog.naver.com/cokecast/140146223924");
}

//조지아 새로운 TV CF 보러가기 
function Georgia() {
	window.open("http://www.cocacola.co.kr/Georgia/");
}

// 2012년 나의 새해 소망은?
function NewYear() {
	window.open("http://blog.naver.com/cokecast/140148268000");
}


// 파워에이드  마시고 맨유투어 가자
function PoweradeTour() {
	EventHit(39);
	window.open("http://fifaonline.pmang.com/event/20120101/index.nwz");
}

// 네스티 서든어택 이벤트
function NesteaSa2() {
	EventHit(40);
	window.open("http://cocacola.r-c.co.kr/nestea-sa.quiz_2nd/main.asp");
}

// 새해 카드 보내기
function NewCard() {
	EventHit(41);
	window.open("http://www.facebook.com/cocacola#!/cocacola?sk=app_339058256110002");
}

// 도전 코카콜라 광고
function CokeCf() {
	EventHit(42);
	window.open("http://www.youtube.com/OPENHAPPINESSKOREA");
}

// 블로그이벤트 (발렌타인데이에 보고싶은 영화는?)
function Valentain() {
	window.open("http://blog.naver.com/cokecast/140151011359");
}
