
		jQuery(document).ready(function(){
										
			jQuery(".gallery:first a[rel^='prettyPhoto']").prettyPhoto({animationSpeed:'slow',theme:'light_square',slideshow:2000, autoplay_slideshow: false});
			jQuery(".gallery:gt(0) a[rel^='prettyPhoto']").prettyPhoto({animationSpeed:'fast',slideshow:10000});
			
			jQuery("#custom_content a[rel^='prettyPhoto']:first").prettyPhoto({
				custom_markup: '<div id="map_canvas" style="width:260px; height:265px"></div>',
				changepicturecallback: function(){ initialize(); }
			});

			jQuery("#custom_content a[rel^='prettyPhoto']:last").prettyPhoto({
				custom_markup: '<div id="bsap_1237859" class="bsarocks bsap_d49a0984d0f377271ccbf01a33f2b6d6" style="height:260px"></div><div id="bsap_1251710" class="bsarocks bsap_d49a0984d0f377271ccbf01a33f2b6d6"></div>',
				changepicturecallback: function(){ _bsap.exec(); }
			});
		});
		
		
		jQuery(function(){
                
                // jQuery UI Dialog    
                        
                jQuery('#dialog').dialog({
                    autoOpen: false,
                    width: 400,
                    modal: true,
                    resizable: false
             });
                
              
                //Thickbox
                
               
                    
                   
               
                
                jQuery('input#TBcancel').click(function(){
                    tb_remove();
                });
                
                jQuery('input#TBsubmit').click(function(){
					var sbusername = document.getElementById('sbusername').value;
					var sbusernameconfirm = document.getElementById('sbusernameconfirm').value;
					var CustomerId = document.getElementById('CustomerId').value;
					var WebsiteId = document.getElementById('WebsiteId').value;
					var CustomerGroupId = document.getElementById('CustomerGroupId').value;
                    apiConnect(sbusername,sbusernameconfirm,CustomerId,WebsiteId,CustomerGroupId);
					tb_remove();
                });
            
                
            });
		
		
		

