import os, sys

VERSION="2.0.2"


def defaults():
    """Return default options"""
    # default values for options
    props = {
        "title" : None,
        "glink" : "<a href=\"http://kennison.name/photos\">Kennison.name</a>" ,
        "creator" :"Brian",
        "columns" : 4,
        "gui"     : 0,
        "fullsize" : 1,
        "size" : 800,
        "centerPicSize":400, # if precisely one picture in dir use this size
        "thumbsize" : 160,
        "padding" : "5",
        "stylesheet" :  "gallery.css",
        "xmlfile" :  "gallery.xml",
        "updateFromXML" : 0,
        "sourcedir" : os.getcwd(),
        "baseDestinationDir" : os.getcwd(),
        "fgColor" : "black",
        "bgColor" : "white",
        "lnColor" : "#C0C0C0",
        "lnVisitColor" : "#C0C0C0",
        "hoverColor" : "#D1D1D1",
        "faster" : 0,
        "renameFiles" : 1,
        "recurse" : 0,
        "forcecreate" : 0,
        "pictypes" : "jpg;jpeg;tiff;png;bmp",
        "major" : 2,
        "minor" : 2,
        "inputEncoding": 'utf-8'
        }

	
    if sys.platform == 'win32':
        props['inputEncoding'] = 'mbcs'    

    return props


def version():
    """Return version number"""
    return VERSION
