var fluid = {
Cycle: function(){
	$('#ad_gal').cycle({
			fx:      'fade',
			speed:    600, 
			timeout:  28000,
			easing: 'easeInOutSine',
			random:  1 
		});
},
Cycle2: function(){
	$('#spons_gal').cycle({
			fx:      'fade',
			speed:    600, 
			timeout:  6000,
			easing: 'easeInOutSine'
		});
},
Cycle3: function(){
	$('#img_main').cycle({
			fx:      'fade',
			speed:    600, 
			timeout:  6000,
			easing: 'easeInOutSine'
		});
},
MegMen: function(){
	 $('#nav2445').qtip(
   {
      content: {text: $('#navfoot2445').children("ul") }, // Give it some content, in this case a simple string
	  position: {
      corner: {
         target: 'bottomLeft',
         tooltip: 'topLeft'
      		}
   		},
	  hide: {
            fixed: true,
			delay: 500 // Make it fixed so it can be hovered over
         },
	 style: { 
      width: 700,
      padding: 20,
      background: '#810100',
      textAlign: 'left'
	  }


   });	
},
MegMen2: function(){
	 $('#nav2447').qtip(
   {
      content: {text: $('#navfoot2447').children("ul") }, // Give it some content, in this case a simple string
	  position: {
      corner: {
         target: 'bottomLeft',
         tooltip: 'topLeft'
      		}
   		},
	  hide: {
            fixed: true,
			delay: 500 // Make it fixed so it can be hovered over
         },
	 style: { 
      width: 180,
      padding: 20,
      background: '#810100',
      textAlign: 'left'
	  }


   });	
},
Gallerypage: function(){
	$('#gallery a').lightBox(); // Select all links in object with gallery ID
},
flashban: function(){
	$('#flash_gal').flash(
        { 
          src: '/images/nativityskyscraper_MPU.swf',
          width: 160,
          height: 445
        },
        { version: 8 }
    );
}
}
jQuery(function ($) {
	if($("#ad_gal").length){fluid.Cycle();}
	if($("#spons_gal").length){fluid.Cycle2();}
	if($("#img_main").length){fluid.Cycle3();}
	if($("#nav2445").length){fluid.MegMen();}
	if($("#nav2447").length){fluid.MegMen2();}
	if($("#gallery").length){fluid.Gallerypage();}
	if($("#flash_gal").length){fluid.flashban();}

});