var domainName = 'http://www.deckkr.jp';
if (location.host == 'nico.deckkr.jp') {
    domainName = 'http://nico.deckkr.jp';
}
var deckkrConst = {
    'classes'  : {'cardDroppable': 'deck-cards'},
    'urls'     : {'GET_DECKS'        : domainName + '/API/getDecks.php',
                  'GET_DECK'         : domainName + '/API/getDeck.php',
                  'GET_DECK_BY_TAG'  : domainName + '/API/getDeckByTag.php',
                  'GET_DECK_BY_SEARCH':domainName + '/API/getDeckBySearch.php',
                  'GET_ARCHIVE'      : domainName + '/API/getArchive.php',
                  'SET_DECK_ORDER'   : domainName + '/API/setDeckOrder.php',
                  'SET_DECK_ALIAS'   : domainName + '/API/setDeckAlias.php',
                  'GET_CARD_LARGE'   : domainName + '/API/getCard.php',
                  'SET_DECK_INFO'    : domainName + '/API/updateDeckInfo.php',
                  'SET_CARD_INFO'    : domainName + '/API/updateCardInfo.php',
                  'SET_CARD_REMOVE'  : domainName + '/API/removeCard.php',
                  'SET_DECK_REMOVE'  : domainName + '/API/removeDeck.php',
                  'SET_ALIAS_REMOVE' : domainName + '/API/removeAlias.php',
                  'SET_SEND_ITEMS'   : domainName + '/API/sendItems.php',
                  'GET_USER_PROFILE' : domainName + '/API/getUser.php',
                  'SET_USER_PROFILE' : domainName + '/API/setUser.php',
                  'GET_USER_SENT'    : domainName + '/API/getEmailTo.php',
                  'GET_URL_INFO'     : domainName + '/API/getURLInfo.php',
                  'GET_MAIL_SEND'    : domainName + '/API/getSentBox.php',
                  'GET_MAIL_RECEIVE' : domainName + '/API/getInBox.php',
                  'SET_CARD_ADD'     : domainName + '/API/addItem.php',
                  'SET_SIGN_IN'      : domainName + '/API/setSignin.php',
                  'SET_SIGN_UP'      : domainName + '/API/setSignup.php',
                  'PAGE_MYPAGE'      : domainName + '/my.php',
                  'PAGE_SIGNOUT'     : domainName + '/signout.php',
                  'PAGE_SCREEN'      : domainName + '/screen.php',
                  'SEND_REMAINDER'   : domainName + '/sendRemainder.php',
                  'CREATE_DONE'      : domainName + '/createUserDone.php',
                  'CREATE_STANDERD'  : domainName + '/createUserStanderd.php'},
    'types'    : {'PAGE': {'HOME': 0,
                           'MY'  : 1,
                           'USER': 2},
                  'DECK': {'ARCHIVE' : 0,
                           'MY'      : 1,
                           'ALIAS'   : 2,
                           'SEARCH'  : 3,
                           'SEND'    : 4,
                           'RECEIVE' : 5},
                  'CARD': {'URL'    : 0,
                           'USER'   : 1,
                           'MAIL'   : 2}
    },
    'position' : {'deck': {'top' : 100, 
                           'left': 100}
    },
	'images'   : {'deckicon': {'DEFAULT'  : domainName + '/images/common/deck_icon.png',
                               'PRIVATE'  : domainName + '/images/common/deck_icon_private.png',
                               'OTHERS'   : domainName + '/images/common/deck_icon_others.png',
                               'OTHERSPRIVATE'   : domainName + '/images/common/deck_icon_others_private.png',
                               'ALIAS'    : domainName + '/images/common/deck_icon_alias.png'},
				  'titleicon': {'ARCHIVE' : domainName + '/images/common/deck_icon_archive_24.png',
								'MY'      : domainName + '/images/common/deck_icon_24.png',
				 				'ALIAS'   : domainName + '/images/common/deck_icon_24.png',
				 				'OTHERS'  : domainName + '/images/common/deck_icon_24.png'},
				  'cardimage': {'MAIL'    : {'S' :domainName + '/images/common/ico_mail.png',
				  							 'L' :domainName + '/images/common/ico_mail.png'}},
				  'userInfo': {'NOIMAGE'  : domainName + '/images/common/userInfo_noimage.png'}
    },
    'urlType'  : {'none'     : 0,
                  'amazon'   : 1,
                  'flickr'   : 2,
                  'youtube'  : 3,
                  'blogs'    : 4,
                  'nicovideo': 5},
    'value' : {'sentUserAreaMax' : 5}
};

