
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

jQuery(function(){
				
	$('.js_ShowDeckPlans').click(function(){
		$('a[rel*=lightboxDeckPlans]:first').trigger('click');
	});	
		
	/** load lightbox **/
	  var lightbox_object =  $('a[rel="lightboxDeckPlans"]').lightBox({
		imageBlank: '/resources/images/lightbox-blank.gif',
		imageLoading: '/resources/images/lightbox-ico-loading.gif',
		imageBtnClose: '/resources/images/lightbox-btn-close.gif',
		imageBtnPrev: '/resources/images/lightbox-btn-prev.gif',
		imageBtnNext: '/resources/images/lightbox-btn-next.gif',
		fixedNavigation:true
	   });  
		  
				
	/**
	 * Initialize highslide for sign in button
	 *
	 * Author: waldemarm
	 */		 
     $('#btnSignIn').click(function(e){
        e.preventDefault();
        e.stopPropagation();
		
        /** create highslide object **/
        hs.htmlExpand(this, {
			preserveContent: false, //disable iframe content caching					  
            objectType: 'iframe',
            width: 645,
            objectHeight: 510,
            objectLoadTime: 'after',
            allowWidthReduction: 1,
            showCredits: false,
            dimmingOpacity: 0.70,
            align: 'center'
        }
        );
    }); 
	 
	 
	/**
	 * Open the brochure list if there is more than one brochure 
	 *
	 * Author: waldemarm
	 */	
     $('.js_BrochureList').click(function(e){
        e.preventDefault();
        e.stopPropagation();
		
        /** create highslide object **/
        hs.htmlExpand(this, {
			preserveContent: false, //disable iframe content caching					  
            objectType: 'iframe',
            width: 645,
            objectHeight: 510,
            objectLoadTime: 'after',
            allowWidthReduction: 1,
            showCredits: false,
            dimmingOpacity: 0.70,
            align: 'center'
        }
        );
    }); 
	 
	 

 });
