//
// $Id: BargeWalkContactUs.js,v 1.1.1.1 2010/02/26 08:30:04 steve Exp $
//
var BargeWalkContactUs = function() {

    this.contactUs = new ContactUs()
    this.thickbox  = new ThickBoxGeneric()
    this.url       = new Url()

    this.init = function() {

        var self = this

        self.id   = self.url.clickedUrlArg('Id')
        self.type = self.url.clickedUrlArg('Type')

        self.thickbox.init()

        self.setTitle()
        self.setIntro()

        $('#contactUsSubmit').click( function() { self.contactUs.submitContactUs(self.type, self.id) })

        self.showTable()
    }

    this.showTable = function() {

        $('#contactDiv').fadeIn()
    }

    this.setIntro = function(type) {

        var str = 'more information'

        $('#contactusIntro').html(str)
    }

    this.setTitle = function(type) {

        var str = 'Contact Barge Walk'

        $('#contactUsTitle').html(str)
    }
}
