var doaminChannel = "http://catchon.cjmovies.co.kr";
var doaminChannelSub = "http://catchon.cjmovies.co.kr/catchon";
var doaminChannelSSL = "https://catchon.cjmovies.co.kr/catchon";

function channel_index() {
	location.href= doaminChannelSub;
}

function channel_login() {
	location.href= doaminChannelSSL + "/User/Login?redirectUrl="+encodeURIComponent(location.href) ;
}

function channel_member_logout() {
	location.href= doaminChannelSub + "/User/Member?type=logout&redirectUrl="+encodeURIComponent(location.href) ;
}

function channel_member_join() {
	window.open(doaminChannelSub+"/User/Member?type=join", "cjenm_member", "width=1000,height=700,scrollbars=yes").focus();
	void(0);
}

function channel_member_modify() {
	window.open(doaminChannelSub+"/User/Member?type=modify", "cjenm_member", "width=1000,height=700,scrollbars=yes").focus();
	void(0);
}

function channel_member_forgot() {
	window.open(doaminChannelSub+"/User/Member?type=forgot", "cjenm_member", "width=1000,height=700,scrollbars=yes").focus();
	void(0);
}

function channel_mypage() {
	location.href= doaminChannelSub + "/User/MyCash" ;
}

function channel_schedule_daily() {
	location.href= doaminChannelSub + "/Schedule/Daily";
}

function channel_schedule_weekly() {
	location.href= doaminChannelSub + "/Schedule/Weekly";
}

function channel_schedule_prime() {
	location.href= doaminChannelSub + "/Schedule/Prime";
}

function channel_series_index() {
	location.href= doaminChannelSub + "/Series";
}

function channel_series_onair() {
	location.href= doaminChannelSub + "/Series/Onair";
}

function channel_series_finish() {
	location.href= doaminChannelSub + "/Series/Finish";
}

function channel_series_poster() {
	location.href= doaminChannelSub + "/Series/Poster";
}

function channel_vod_clip() {
	location.href= doaminChannelSub + "/VOD/Clip";
}

function channel_vod_preview() {
	location.href= doaminChannelSub + "/VOD/Preview";
}

function channel_vod_channel() {
	location.href= doaminChannelSub + "/VOD/Channel";
}

function channel_vod_special() {
	location.href= doaminChannelSub + "/VOD/Special";
}

function channel_event_index() {
	location.href= doaminChannelSub + "/Event/Index";
}

function channel_event_winner() {
	location.href= doaminChannelSub + "/Event/WinnerList";
}

function channel_event_transfer() {
	location.href= doaminChannelSub + "/Event/TransferList";
}

function channel_customer_index() {
	location.href= doaminChannelSub + "/Customer/NoticeList";
}

function channel_customer_faq() {
	location.href= doaminChannelSub + "/Customer/FAQList";
}

function channel_customer_notice() {
	location.href= doaminChannelSub + "/Customer/NoticeList";
}

function channel_customer_qna() {
	location.href= doaminChannelSub + "/Customer/QNAWrite";
}

function channel_customer_myqna() {
	location.href= doaminChannelSub + "/Customer/QNAList";
}

function channel_customer_sochannel() {
	location.href= doaminChannelSub + "/Customer/SOChannel";
}

function channel_customer_ad() {
	location.href= doaminChannelSub + "/Customer/Advertise";
}

function channel_html_intro() {
	location.href= doaminChannelSub + "/Index/Intro";
}

function channel_html_join() {
	location.href= doaminChannelSub + "/Index/Join";
}

function catchon_schedule_prime_guide() {
	location.href= doaminChannelSub + "/Schedule/Prime/Guide";
}

function catchon_schedule_prime_erotic() {
	location.href= doaminChannelSub + "/Schedule/Prime/Erotic";
}

function catchon_schedule_prime_demand() {
	location.href= doaminChannelSub + "/Schedule/Prime/Demand";
}

function catchon_schedule_prime_special() {
	location.href= doaminChannelSub + "/Schedule/Prime/Special";
}

function catchon_schedule_demand() {
	location.href= doaminChannelSub + "/Schedule/Demand";
}

function catchonplus_schedule_prime() {
	location.href= doaminChannel + "/Catchonplus/Schedule/Prime";
}

function catchonplus_schedule_daily() {
	location.href= doaminChannel + "/Catchonplus/Schedule/Daily";
}

function catchonplus_schedule_weekly() {
	location.href= doaminChannel + "/Catchonplus/Schedule/Weekly";
}

function catchonplus_series_poster() {
	location.href= doaminChannel + "/Catchonplus/Series/Poster";
}

function catchonplus_series_index() {
	location.href= doaminChannel + "/Catchonplus/Series";
}

function catchon_series_spartacus() {
	location.href= "http://series.cjmovies.co.kr/program/388";
}

function channel_footer(type) {
	if ( type == "channel") {
		channel_html_intro();
	} else {
		window.open(doaminChannelSub+"/Index/Footer?type="+type, "cjenm_movie_footer", "width=960,height=550,scrollbars=no").focus();
		void(0);
	}
}

function channel_footer_quetone() {
	void(0);
}

function channel_social_facebook() {
	window.open("http://www.facebook.com/cjcatchon");
	void(0);
}

function channel_social_twitter() {
	window.open("http://www.twitter.com/catchon_twt");
	void(0);
}

function channel_social_blog() {
	window.open("http://blog.naver.com/catchonblog");
	void(0);
}
