/*
 * Home page load functions
 */
var $container;


var isIE6 = $.browser.msie && $.browser.version < 7;
var isIEOnly = $.browser.msie;

$(document).ready(
        function() {
                    jQuery('ul.sf-menu li').css("overflow","visible");
                    jQuery('ul.sf-menu').superfish();
                    if ( $("#contentLayer").length > 0 )
                    {

                        if(document.getElementById('contentLayer').clientHeight < 190)
                        {
                             $('.scroll_buttons').hide();
                        }
                    }//if#1

                    
                    
                     $('a.lightbox').lightBox();
                       

		$container = $("#container");
			        $container.wtRotator({
                                width:954,
                                height:634,
                                button_width:24,
                                button_height:24,
                                button_margin:4,
                                auto_start:true,                                
                                transition:"random",
                                transition_speed:800,
                                block_size:100,
                                vert_size:50,
                                horz_size:50,
                                cpanel_align:"BR",
                                display_thumbs:false,
                                display_dbuttons:false,
                                display_playbutton:false,
                                display_tooltip:false,
                                display_numbers:false,
                                cpanel_mouseover:false,
                                text_mouseover:false
                        });
                            $(".room_shocase_tour").colorbox({width:"571", height:"456", iframe:true});
		            $(".room_shocase_quick_time").colorbox({width:"700", height:"600", iframe:true});
                           

			}
		);
