// JavaScript Document

$(document).ready(

        function()

        {

                $('#windowOpen').bind(

                        'click',

                        function() {

                                if($('#window').css('display') == 'none') {

                                        $(this).TransferTo(

                                                {

                                                        to:'window',

                                                        className:'transferer2', 

                                                        duration: 400,

                                                        complete: function()

                                                        {

                                                                $('#window').show();

                                                        }

                                                }

                                        );

                                }

                                this.blur();

                                return false;

                        }

                );

                $('#windowClose').bind(

                        'click',

                        function()

                        {

                                $('#window').TransferTo(

                                        {

                                                to:'windowOpen',

                                                className:'transferer2', 

                                                duration: 400

                                        }

                                ).hide();

                        }

                );

                $('#windowMin').bind(

                        'click',

                        function()

                        {

                                $('#windowContent').SlideToggleUp(300);

                                $('#windowBottom, #windowBottomContent').animate({height: 10}, 300);

                                $('#window').animate({height:40},300).get(0).isMinimized = true;

                                $(this).hide();

                                $('#windowResize').hide();

                                $('#windowMax').show();

                        }

                );

                $('#windowMax').bind(

                        'click',

                        function()

                        {

                                var windowSize = $.iUtil.getSize(document.getElementById('windowContent'));

                                $('#windowContent').SlideToggleUp(300);

                                $('#windowBottom, #windowBottomContent').animate({height: windowSize.hb + 13}, 300);

                                $('#window').animate({height:windowSize.hb+43}, 300).get(0).isMinimized = false;

                                $(this).hide();

                                $('#windowMin, #windowResize').show();

                        }

                );

                $('#window').Resizable(

                        {

                                minWidth: 200,

                                minHeight: 60,

                                maxWidth: 700,

                                maxHeight: 400,

                                dragHandle: '#windowTop',

                                handlers: {

                                        se: '#windowResize'

                                },

                                onResize : function(size, position) {

                                        $('#windowBottom, #windowBottomContent').css('height', size.height-33 + 'px');

                                        var windowContentEl = $('#windowContent').css('width', size.width - 25 + 'px');

                                        if (!document.getElementById('window').isMinimized) {

                                                windowContentEl.css('height', size.height - 48 + 'px');

                                        }

                                }

                        }

                );

        }

);



$(document).ready(

        function()

        {

                $('#windowOpen2').bind(

                        'click',

                        function() {

                                if($('#window2').css('display') == 'none') {

                                        $(this).TransferTo(

                                                {

                                                        to:'window2',

                                                        className:'transferer22', 

                                                        duration: 400,

                                                        complete: function()

                                                        {

                                                                $('#window2').show();

                                                        }

                                                }

                                        );

                                }

                                this.blur();

                                return false;

                        }

                );

                $('#windowClose2').bind(

                        'click',

                        function()

                        {

                                $('#window2').TransferTo(

                                        {

                                                to:'windowOpen2',

                                                className:'transferer22', 

                                                duration: 400

                                        }

                                ).hide();

                        }

                );

                $('#windowMin2').bind(

                        'click',

                        function()

                        {

                                $('#windowContent2').SlideToggleUp(300);

                                $('#windowBottom2, #windowBottomContent2').animate({height: 10}, 300);

                                $('#window2').animate({height:40},300).get(0).isMinimized = true;

                                $(this).hide();

                                $('#windowResize2').hide();

                                $('#windowMax2').show();

                        }

                );

                $('#windowMax2').bind(

                        'click',

                        function()

                        {

                                var windowSize = $.iUtil.getSize(document.getElementById('windowContent2'));

                                $('#windowContent2').SlideToggleUp(300);

                                $('#windowBottom2, #windowBottomContent2').animate({height: windowSize.hb + 13}, 300);

                                $('#window2').animate({height:windowSize.hb+43}, 300).get(0).isMinimized = false;

                                $(this).hide();

                                $('#windowMin2, #windowResize2').show();

                        }

                );

                $('#window2').Resizable(

                        {

                                minWidth: 200,

                                minHeight: 60,

                                maxWidth: 850,

                                maxHeight: 750,

                                dragHandle: '#windowTop2',

                                handlers: {

                                        se: '#windowResize2'

                                },

                                onResize : function(size, position) {

                                        $('#windowBottom2, #windowBottomContent2').css('height', size.height-33 + 'px');

                                        var windowContentEl = $('#windowContent2').css('width', size.width - 25 + 'px');

                                        if (!document.getElementById('window2').isMinimized) {

                                                windowContentEl.css('height', size.height - 48 + 'px');

                                        }

                                }

                        }

                );

        }

);



$(document).ready(

        function()

        {

                $('#windowOpen3').bind(

                        'click',

                        function() {

                                if($('#window3').css('display') == 'none') {

                                        $(this).TransferTo(

                                                {

                                                        to:'window3',

                                                        className:'transferer33', 

                                                        duration: 400,

                                                        complete: function()

                                                        {

                                                                $('#window3').show();

                                                        }

                                                }

                                        );

                                }

                                this.blur();

                                return false;

                        }

                );

                $('#windowClose3').bind(

                        'click',

                        function()

                        {

                                $('#window3').TransferTo(

                                        {

                                                to:'windowOpen3',

                                                className:'transferer33', 

                                                duration: 400

                                        }

                                ).hide();

                        }

                );

                $('#windowMin3').bind(

                        'click',

                        function()

                        {

                                $('#windowContent3').SlideToggleUp(300);

                                $('#windowBottom3, #windowBottomContent3').animate({height: 10}, 300);

                                $('#window3').animate({height:40},300).get(0).isMinimized = true;

                                $(this).hide();

                                $('#windowResize3').hide();

                                $('#windowMax3').show();

                        }

                );

                $('#windowMax3').bind(

                        'click',

                        function()

                        {

                                var windowSize = $.iUtil.getSize(document.getElementById('windowContent3'));

                                $('#windowContent3').SlideToggleUp(300);

                                $('#windowBottom3, #windowBottomContent3').animate({height: windowSize.hb + 13}, 300);

                                $('#window3').animate({height:windowSize.hb+43}, 300).get(0).isMinimized = false;

                                $(this).hide();

                                $('#windowMin3, #windowResize3').show();

                        }

                );

                $('#window3').Resizable(

                        {

                                minWidth: 200,

                                minHeight: 60,

                                maxWidth: 850,

                                maxHeight: 750,

                                dragHandle: '#windowTop3',

                                handlers: {

                                        se: '#windowResize3'

                                },

                                onResize : function(size, position) {

                                        $('#windowBottom3, #windowBottomContent3').css('height', size.height-33 + 'px');

                                        var windowContentEl = $('#windowContent3').css('width', size.width - 25 + 'px');

                                        if (!document.getElementById('window3').isMinimized) {

                                                windowContentEl.css('height', size.height - 48 + 'px');

                                        }

                                }

                        }

                );

        }

);



$(document).ready(

        function()

        {

                $('#windowOpen4').bind(

                        'click',

                        function() {

                                if($('#window4').css('display') == 'none') {

                                        $(this).TransferTo(

                                                {

                                                        to:'window4',

                                                        className:'transferer44', 

                                                        duration: 400,

                                                        complete: function()

                                                        {

                                                                $('#window4').show();

                                                        }

                                                }

                                        );

                                }

                                this.blur();

                                return false;

                        }

                );

                $('#windowClose4').bind(

                        'click',

                        function()

                        {

                                $('#window4').TransferTo(

                                        {

                                                to:'windowOpen4',

                                                className:'transferer44', 

                                                duration: 400

                                        }

                                ).hide();

                        }

                );

                $('#windowMin4').bind(

                        'click',

                        function()

                        {

                                $('#windowContent4').SlideToggleUp(300);

                                $('#windowBottom4, #windowBottomContent4').animate({height: 10}, 300);

                                $('#window4').animate({height:40},300).get(0).isMinimized = true;

                                $(this).hide();

                                $('#windowResize4').hide();

                                $('#windowMax4').show();

                        }

                );

                $('#windowMax4').bind(

                        'click',

                        function()

                        {

                                var windowSize = $.iUtil.getSize(document.getElementById('windowContent4'));

                                $('#windowContent4').SlideToggleUp(300);

                                $('#windowBottom4, #windowBottomContent4').animate({height: windowSize.hb + 13}, 300);

                                $('#window4').animate({height:windowSize.hb+43}, 300).get(0).isMinimized = false;

                                $(this).hide();

                                $('#windowMin4, #windowResize4').show();

                        }

                );

                $('#window4').Resizable(

                        {

                                minWidth: 200,

                                minHeight: 60,

                                maxWidth: 850,

                                maxHeight: 750,

                                dragHandle: '#windowTop4',

                                handlers: {

                                        se: '#windowResize4'

                                },

                                onResize : function(size, position) {

                                        $('#windowBottom4, #windowBottomContent4').css('height', size.height-33 + 'px');

                                        var windowContentEl = $('#windowContent4').css('width', size.width - 25 + 'px');

                                        if (!document.getElementById('window4').isMinimized) {

                                                windowContentEl.css('height', size.height - 48 + 'px');

                                        }

                                }

                        }

                );

        }

);



$(document).ready(

        function()

        {

                $('#windowOpen5').bind(

                        'click',

                        function() {

                                if($('#window5').css('display') == 'none') {

                                        $(this).TransferTo(

                                                {

                                                        to:'window5',

                                                        className:'transferer55', 

                                                        duration: 400,

                                                        complete: function()

                                                        {

                                                                $('#window5').show();

                                                        }

                                                }

                                        );

                                }

                                this.blur();

                                return false;

                        }

                );

                $('#windowClose5').bind(

                        'click',

                        function()

                        {

                                $('#window5').TransferTo(

                                        {

                                                to:'windowOpen5',

                                                className:'transferer55', 

                                                duration: 400

                                        }

                                ).hide();

                        }

                );

                $('#windowMin5').bind(

                        'click',

                        function()

                        {

                                $('#windowContent5').SlideToggleUp(300);

                                $('#windowBottom5, #windowBottomContent5').animate({height: 10}, 300);

                                $('#window5').animate({height:40},300).get(0).isMinimized = true;

                                $(this).hide();

                                $('#windowResize5').hide();

                                $('#windowMax5').show();

                        }

                );

                $('#windowMax5').bind(

                        'click',

                        function()

                        {

                                var windowSize = $.iUtil.getSize(document.getElementById('windowContent5'));

                                $('#windowContent5').SlideToggleUp(300);

                                $('#windowBottom5, #windowBottomContent5').animate({height: windowSize.hb + 13}, 300);

                                $('#window5').animate({height:windowSize.hb+43}, 300).get(0).isMinimized = false;

                                $(this).hide();

                                $('#windowMin5, #windowResize5').show();

                        }

                );

                $('#window5').Resizable(

                        {

                                minWidth: 200,

                                minHeight: 60,

                                maxWidth: 850,

                                maxHeight: 750,

                                dragHandle: '#windowTop5',

                                handlers: {

                                        se: '#windowResize5'

                                },

                                onResize : function(size, position) {

                                        $('#windowBottom5, #windowBottomContent5').css('height', size.height-33 + 'px');

                                        var windowContentEl = $('#windowContent5').css('width', size.width - 25 + 'px');

                                        if (!document.getElementById('window5').isMinimized) {

                                                windowContentEl.css('height', size.height - 48 + 'px');

                                        }

                                }

                        }

                );

        }

);



$(document).ready(

        function()

        {

                $('#windowOpen6').bind(

                        'click',

                        function() {

                                if($('#window6').css('display') == 'none') {

                                        $(this).TransferTo(

                                                {

                                                        to:'window6',

                                                        className:'transferer66', 

                                                        duration: 400,

                                                        complete: function()

                                                        {

                                                                $('#window6').show();

                                                        }

                                                }

                                        );

                                }

                                this.blur();

                                return false;

                        }

                );

                $('#windowClose6').bind(

                        'click',

                        function()

                        {

                                $('#window6').TransferTo(

                                        {

                                                to:'windowOpen6',

                                                className:'transferer66', 

                                                duration: 400

                                        }

                                ).hide();

                        }

                );

                $('#windowMin6').bind(

                        'click',

                        function()

                        {

                                $('#windowContent6').SlideToggleUp(300);

                                $('#windowBottom6, #windowBottomContent6').animate({height: 10}, 300);

                                $('#window6').animate({height:40},300).get(0).isMinimized = true;

                                $(this).hide();

                                $('#windowResize6').hide();

                                $('#windowMax6').show();

                        }

                );

                $('#windowMax6').bind(

                        'click',

                        function()

                        {

                                var windowSize = $.iUtil.getSize(document.getElementById('windowContent6'));

                                $('#windowContent6').SlideToggleUp(300);

                                $('#windowBottom6, #windowBottomContent6').animate({height: windowSize.hb + 13}, 300);

                                $('#window6').animate({height:windowSize.hb+43}, 300).get(0).isMinimized = false;

                                $(this).hide();

                                $('#windowMin6, #windowResize6').show();

                        }

                );

                $('#window6').Resizable(

                        {

                                minWidth: 200,

                                minHeight: 60,

                                maxWidth: 850,

                                maxHeight: 750,

                                dragHandle: '#windowTop6',

                                handlers: {

                                        se: '#windowResize6'

                                },

                                onResize : function(size, position) {

                                        $('#windowBottom6, #windowBottomContent6').css('height', size.height-33 + 'px');

                                        var windowContentEl = $('#windowContent6').css('width', size.width - 25 + 'px');

                                        if (!document.getElementById('window6').isMinimized) {

                                                windowContentEl.css('height', size.height - 48 + 'px');

                                        }

                                }

                        }

                );

        }

);



$(document).ready(

        function()

        {

                $('#windowOpen7').bind(

                        'click',

                        function() {

                                if($('#window7').css('display') == 'none') {

                                        $(this).TransferTo(

                                                {

                                                        to:'window7',

                                                        className:'transferer77', 

                                                        duration: 400,

                                                        complete: function()

                                                        {

                                                                $('#window7').show();

                                                        }

                                                }

                                        );

                                }

                                this.blur();

                                return false;

                        }

                );

                $('#windowClose7').bind(

                        'click',

                        function()

                        {

                                $('#window7').TransferTo(

                                        {

                                                to:'windowOpen7',

                                                className:'transferer77', 

                                                duration: 400

                                        }

                                ).hide();

                        }

                );

                $('#windowMin7').bind(

                        'click',

                        function()

                        {

                                $('#windowContent7').SlideToggleUp(300);

                                $('#windowBottom7, #windowBottomContent7').animate({height: 10}, 300);

                                $('#window7').animate({height:40},300).get(0).isMinimized = true;

                                $(this).hide();

                                $('#windowResize7').hide();

                                $('#windowMax7').show();

                        }

                );

                $('#windowMax7').bind(

                        'click',

                        function()

                        {

                                var windowSize = $.iUtil.getSize(document.getElementById('windowContent7'));

                                $('#windowContent7').SlideToggleUp(300);

                                $('#windowBottom7, #windowBottomContent7').animate({height: windowSize.hb + 13}, 300);

                                $('#window7').animate({height:windowSize.hb+43}, 300).get(0).isMinimized = false;

                                $(this).hide();

                                $('#windowMin7, #windowResize7').show();

                        }

                );

                $('#window7').Resizable(

                        {

                                minWidth: 200,

                                minHeight: 60,

                                maxWidth: 850,

                                maxHeight: 750,

                                dragHandle: '#windowTop7',

                                handlers: {

                                        se: '#windowResize7'

                                },

                                onResize : function(size, position) {

                                        $('#windowBottom7, #windowBottomContent7').css('height', size.height-33 + 'px');

                                        var windowContentEl = $('#windowContent7').css('width', size.width - 25 + 'px');

                                        if (!document.getElementById('window7').isMinimized) {

                                                windowContentEl.css('height', size.height - 48 + 'px');

                                        }

                                }

                        }

                );

        }

);



$(document).ready(

        function()

        {

                $('#windowOpen8').bind(

                        'click',

                        function() {

                                if($('#window8').css('display') == 'none') {

                                        $(this).TransferTo(

                                                {

                                                        to:'window8',

                                                        className:'transferer88', 

                                                        duration: 400,

                                                        complete: function()

                                                        {

                                                                $('#window8').show();

                                                        }

                                                }

                                        );

                                }

                                this.blur();

                                return false;

                        }

                );

                $('#windowClose8').bind(

                        'click',

                        function()

                        {

                                $('#window8').TransferTo(

                                        {

                                                to:'windowOpen8',

                                                className:'transferer88', 

                                                duration: 400

                                        }

                                ).hide();

                        }

                );

                $('#windowMin8').bind(

                        'click',

                        function()

                        {

                                $('#windowContent8').SlideToggleUp(300);

                                $('#windowBottom8, #windowBottomContent8').animate({height: 10}, 300);

                                $('#window8').animate({height:40},300).get(0).isMinimized = true;

                                $(this).hide();

                                $('#windowResize8').hide();

                                $('#windowMax8').show();

                        }

                );

                $('#windowMax8').bind(

                        'click',

                        function()

                        {

                                var windowSize = $.iUtil.getSize(document.getElementById('windowContent8'));

                                $('#windowContent8').SlideToggleUp(300);

                                $('#windowBottom8, #windowBottomContent8').animate({height: windowSize.hb + 13}, 300);

                                $('#window8').animate({height:windowSize.hb+43}, 300).get(0).isMinimized = false;

                                $(this).hide();

                                $('#windowMin8, #windowResize8').show();

                        }

                );

                $('#window8').Resizable(

                        {

                                minWidth: 200,

                                minHeight: 60,

                                maxWidth: 850,

                                maxHeight: 850,

                                dragHandle: '#windowTop8',

                                handlers: {

                                        se: '#windowResize8'

                                },

                                onResize : function(size, position) {

                                        $('#windowBottom8, #windowBottomContent8').css('height', size.height-33 + 'px');

                                        var windowContentEl = $('#windowContent8').css('width', size.width - 25 + 'px');

                                        if (!document.getElementById('window8').isMinimized) {

                                                windowContentEl.css('height', size.height - 48 + 'px');

                                        }

                                }

                        }

                );

        }

);



$(document).ready(

        function()

        {

                $('#windowOpen9').bind(

                        'click',

                        function() {

                                if($('#window9').css('display') == 'none') {

                                        $(this).TransferTo(

                                                {

                                                        to:'window9',

                                                        className:'transferer99', 

                                                        duration: 400,

                                                        complete: function()

                                                        {

                                                                $('#window9').show();

                                                        }

                                                }

                                        );

                                }

                                this.blur();

                                return false;

                        }

                );

                $('#windowClose9').bind(

                        'click',

                        function()

                        {

                                $('#window9').TransferTo(

                                        {

                                                to:'windowOpen9',

                                                className:'transferer99', 

                                                duration: 400

                                        }

                                ).hide();

                        }

                );

                $('#windowMin9').bind(

                        'click',

                        function()

                        {

                                $('#windowContent9').SlideToggleUp(300);

                                $('#windowBottom9, #windowBottomContent9').animate({height: 10}, 300);

                                $('#window9').animate({height:40},300).get(0).isMinimized = true;

                                $(this).hide();

                                $('#windowResize9').hide();

                                $('#windowMax9').show();

                        }

                );

                $('#windowMax9').bind(

                        'click',

                        function()

                        {

                                var windowSize = $.iUtil.getSize(document.getElementById('windowContent9'));

                                $('#windowContent9').SlideToggleUp(300);

                                $('#windowBottom9, #windowBottomContent9').animate({height: windowSize.hb + 13}, 300);

                                $('#window9').animate({height:windowSize.hb+43}, 300).get(0).isMinimized = false;

                                $(this).hide();

                                $('#windowMin9, #windowResize9').show();

                        }

                );

                $('#window9').Resizable(

                        {

                                minWidth: 200,

                                minHeight: 60,

                                maxWidth: 850,

                                maxHeight: 750,

                                dragHandle: '#windowTop9',

                                handlers: {

                                        se: '#windowResize9'

                                },

                                onResize : function(size, position) {

                                        $('#windowBottom9, #windowBottomContent9').css('height', size.height-33 + 'px');

                                        var windowContentEl = $('#windowContent9').css('width', size.width - 25 + 'px');

                                        if (!document.getElementById('window9').isMinimized) {

                                                windowContentEl.css('height', size.height - 48 + 'px');

                                        }

                                }

                        }

                );

        }

);



$(document).ready(

        function()

        {

                $('#windowOpen10').bind(

                        'click',

                        function() {

                                if($('#window10').css('display') == 'none') {

                                        $(this).TransferTo(

                                                {

                                                        to:'window10',

                                                        className:'transferer1010', 

                                                        duration: 400,

                                                        complete: function()

                                                        {

                                                                $('#window10').show();

                                                        }

                                                }

                                        );

                                }

                                this.blur();

                                return false;

                        }

                );

                $('#windowClose10').bind(

                        'click',

                        function()

                        {

                                $('#window10').TransferTo(

                                        {

                                                to:'windowOpen10',

                                                className:'transferer1010', 

                                                duration: 400

                                        }

                                ).hide();

                        }

                );

                $('#windowMin10').bind(

                        'click',

                        function()

                        {

                                $('#windowContent10').SlideToggleUp(300);

                                $('#windowBottom10, #windowBottomContent10').animate({height: 10}, 300);

                                $('#window10').animate({height:40},300).get(0).isMinimized = true;

                                $(this).hide();

                                $('#windowResize10').hide();

                                $('#windowMax10').show();

                        }

                );

                $('#windowMax10').bind(

                        'click',

                        function()

                        {

                                var windowSize = $.iUtil.getSize(document.getElementById('windowContent10'));

                                $('#windowContent10').SlideToggleUp(300);

                                $('#windowBottom10, #windowBottomContent10').animate({height: windowSize.hb + 13}, 300);

                                $('#window10').animate({height:windowSize.hb+43}, 300).get(0).isMinimized = false;

                                $(this).hide();

                                $('#windowMin10, #windowResize10').show();

                        }

                );

                $('#window10').Resizable(

                        {

                                minWidth: 200,

                                minHeight: 60,

                                maxWidth: 850,

                                maxHeight: 750,

                                dragHandle: '#windowTop10',

                                handlers: {

                                        se: '#windowResize10'

                                },

                                onResize : function(size, position) {

                                        $('#windowBottom10, #windowBottomContent10').css('height', size.height-33 + 'px');

                                        var windowContentEl = $('#windowContent10').css('width', size.width - 25 + 'px');

                                        if (!document.getElementById('window10').isMinimized) {

                                                windowContentEl.css('height', size.height - 48 + 'px');

                                        }

                                }

                        }

                );

        }

);



$(document).ready(

        function()

        {

                $('#windowOpen11').bind(

                        'click',

                        function() {

                                if($('#window11').css('display') == 'none') {

                                        $(this).TransferTo(

                                                {

                                                        to:'window11',

                                                        className:'transferer1111', 

                                                        duration: 400,

                                                        complete: function()

                                                        {

                                                                $('#window11').show();

                                                        }

                                                }

                                        );

                                }

                                this.blur();

                                return false;

                        }

                );

                $('#windowClose11').bind(

                        'click',

                        function()

                        {

                                $('#window11').TransferTo(

                                        {

                                                to:'windowOpen11',

                                                className:'transferer1111', 

                                                duration: 400

                                        }

                                ).hide();

                        }

                );

                $('#windowMin11').bind(

                        'click',

                        function()

                        {

                                $('#windowContent11').SlideToggleUp(300);

                                $('#windowBottom11, #windowBottomContent11').animate({height: 10}, 300);

                                $('#window11').animate({height:40},300).get(0).isMinimized = true;

                                $(this).hide();

                                $('#windowResize11').hide();

                                $('#windowMax11').show();

                        }

                );

                $('#windowMax11').bind(

                        'click',

                        function()

                        {

                                var windowSize = $.iUtil.getSize(document.getElementById('windowContent11'));

                                $('#windowContent11').SlideToggleUp(300);

                                $('#windowBottom11, #windowBottomContent11').animate({height: windowSize.hb + 13}, 300);

                                $('#window11').animate({height:windowSize.hb+43}, 300).get(0).isMinimized = false;

                                $(this).hide();

                                $('#windowMin11, #windowResize11').show();

                        }

                );

                $('#window11').Resizable(

                        {

                                minWidth: 200,

                                minHeight: 60,

                                maxWidth: 850,

                                maxHeight: 750,

                                dragHandle: '#windowTop11',

                                handlers: {

                                        se: '#windowResize11'

                                },

                                onResize : function(size, position) {

                                        $('#windowBottom11, #windowBottomContent11').css('height', size.height-33 + 'px');

                                        var windowContentEl = $('#windowContent11').css('width', size.width - 25 + 'px');

                                        if (!document.getElementById('window11').isMinimized) {

                                                windowContentEl.css('height', size.height - 48 + 'px');

                                        }

                                }

                        }

                );

        }

);

