latest updates
[namibia] / public / templates / page / publichome.js
1 var template_publichome = function( static )
2 {
3         this.static = static;
4         this.elements = {};
5         this.construct = function()
6         {
7                 //alert('Hi there, we now do event registrations, etc');
8                 
9                 var windowWidth = $(window).width(); //retrieve current window width
10                 var windowHeight = $(window).height(); //retrieve current window height
11                 var documentWidth = $(document).width(); //retrieve current document width
12                 var documentHeight = $(document).height(); //retrieve current document height
13                 var vScrollPosition = $(document).scrollTop(); //retrieve the document scroll ToP position
14                 var hScrollPosition = $(document).scrollLeft(); //retrieve the document scroll Left position
15                 
16                 /*alert(
17                                 'windowWidth: ' + windowWidth + '\n' +
18                                 'windowHeight: ' + windowHeight + '\n' +
19                                 'documentWidth: ' + documentWidth + '\n' +
20                                 'documentHeight: ' + documentHeight + '\n' +
21                                 'vScrollPosition: ' + vScrollPosition + '\n' +
22                                 'hScrollPosition: ' + hScrollPosition + '\n' 
23                                                 
24                 );*/
25                 
26                 
27                 
28                 $('body').addClass("black");
29
30                 $('#dealerhome').click(function(){
31                         $('body').removeClass("black");
32                         $('#brochureMenu').show;
33                         $('#publicMenu').hide;
34                         
35                 });
36                 
37                 $('#publichome').click(function(){
38                         $('body').removeClass("black");
39                         $('#brochureMenu').hide;
40                         $('#publicMenu').show;
41                         
42                 });
43                 
44                 
45         };
46         this.destruct = function()
47         {
48                 //alert('Hi there, removing bindings, etc');
49         };
50 };