﻿window.addEvent('domready', function(){
  SexyLightbox = new SexyLightBox({
    color         : 'black',
    dir           : 'http://www.gamepotusa.com/include/sexyimages/',
    emergefrom    : 'top',
    OverlayStyles : {
      'background-color': '#000000',
      'opacity' : 0.8
    }

  });

});

function signupFunc(contentsID, returnType){
if ( returnType==null ) { returnType='index'; }
hrefstr = 'http://members.gamepotusa.com/Member/MemAccountJoin.aspx?c='+contentsID+'&t='+returnType+'&TB_iframe=true&height=340&width=640';
SexyLightbox.display(hrefstr, '', '');
}

function loginFunc(url, content){
	if ( url == undefined ) url = location.href;
	if ( content == undefined ) content = "";
	hrefstr = 'http://members.gamepotusa.com/Member/MemAccountLogin2.aspx?returnurl='+url+'&c='+content+'&TB_iframe=true&height=340&width=640';
	SexyLightbox.display(hrefstr, '', '');
}

function nicknameFunc(url){
	if ( url == undefined ) url = location.href;
	url = encodeURI(url);
	hrefstr = 'http://members.gamepotusa.com/Member/MemAccountNickName.aspx?u='+url+'&TB_iframe=true&height=340&width=640';
	SexyLightbox.display(hrefstr, '', '');
}

function logoutFunc(url){
	if ( url == undefined ) url = location.href;
	document.cookie = "userdata=;path=/;domain=.gamepotusa.com;expires=Thu, 01-Jan-1970 00:00:01 GMT";
        location.href = location.href;
}

