function loadGallery(){
		     	
		jQuery.imgpreload([temp_dir+'/wp-content/uploads/2011/04/large_img.gif',
					   temp_dir+'/wp-content/uploads/2011/04/large_img_8.jpg',
					   temp_dir+'/wp-content/uploads/2011/04/large_img_6.jpg',
					   temp_dir+'/wp-content/uploads/2011/04/large_img_10.jpg',
					   temp_dir+'/wp-content/uploads/2011/04/large_img_11.jpg',
					   temp_dir+'/wp-content/uploads/2011/04/large_img_3.jpg',
					   temp_dir+'/wp-content/uploads/2011/04/large_img_5.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/large_img_4.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/large_img_7.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/large_img_16.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/large_img_14.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/large_img_19.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/large_img_2.jpg', 
					   temp_dir+'/wp-content/uploads/2010/11/large_img_1.jpg',					   
					   temp_dir+'/wp-content/uploads/2010/11/large2.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/large_img_20.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/large_img_18.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/large_img_17.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/large_img_15.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/large_img_12.jpg',
     				   temp_dir+'/wp-content/uploads/2010/11/large_new.jpg',
					   
					   temp_dir+'/wp-content/uploads/2011/04/22.jpg',
					   temp_dir+'/wp-content/uploads/2011/04/21.jpg',
					   temp_dir+'/wp-content/uploads/2011/04/20.jpg',
					   temp_dir+'/wp-content/uploads/2011/04/19.jpg',
					   temp_dir+'/wp-content/uploads/2011/04/18.jpg',
					   temp_dir+'/wp-content/uploads/2011/04/17.jpg',
					   temp_dir+'/wp-content/uploads/2011/04/16.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/15.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/141.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/131.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/121.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/113.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/10.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/9.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/8.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/7.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/6.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/5.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/4.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/111.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/2.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/13.jpg'],
	{
		each: function()
		{
			// this = new image object
			// callback executes on every image load
		},
		all: function()
		{
			jQuery('.content div').hide();
			jQuery('.content div').eq(0).show();
			jQuery('span.screenshot img').eq(0).show();
			jQuery('span.shot img').eq(0).show();
			
			jQuery('.thumb_img li').bind('click',function(){
									 
				var CurImg=jQuery('a', jQuery(this)).attr('rel');	
				var CurLarge=jQuery('a', jQuery(this)).attr('name');	
				jQuery('span.screenshot img').attr({src:CurImg});		
				jQuery('span.screenshot img').hide();
				jQuery('span.screenshot img').fadeIn('slow');
				
				jQuery('span.shot img').attr({src:CurLarge});		
				jQuery('span.shot img').hide();
				jQuery('span.shot img').fadeIn('slow');
				
				jQuery('.content div').hide();
				var CurIndex=jQuery(this).attr('class');
				jQuery('.content div').eq(CurIndex).fadeIn('slow');
				return false;
							
						     });
		
			jQuery('.gallery_slider').cycle({
									
				fx      :'scrollHorz',
				timeout : 0,
				speed   : 1000,
				prev    :'#prev1',
				next    :'#next1'
						
			});
	
		}
	});
}

function loadSlider() {


	
	
	
	
	
	
	
	
	
	jQuery('.header_slider').after('<div><ul class="paging" id="thumbs">').cycle({
					 
		fx       : 'scrollHorz',		 
		timeout  : 10000,
		speed    : 1000,
		pager    : '#thumbs',
		activePagerClass: 'active',
		pagerAnchorBuilder: function(idx, slide) {
			var index=idx+1;
			return '<li><a href="#">'+index+'</a></li>';
		}
	});		

	jQuery('.blog_slider').after('<div class="paging"><ul id="paging">').cycle({
								 
		fx       : 'scrollHorz',		 
		timeout  : 5000,
		speed    : 1000,
		pager    : '#paging',
		activePagerClass: 'active',
		pagerAnchorBuilder: function(idx, slide) {
			var index=idx+1;
			return '<li><a href="#"></a></li>';
		}
	});		

	jQuery('#logo_slider').cycle({
							
		fx      :'scrollHorz',
		timeout : 0,
		speed   : 1000,
		prev    :'#prev',
		next    :'#next'
				
	});


	jQuery('ul.accordion .child').slideUp();
	
	jQuery("ul.accordion a.main_acco").click(function() {
												 
		if(false == jQuery(this).next().is(':visible')) {
			jQuery('ul.accordion .child').slideUp(300);
		}
		
		jQuery(this).next().slideToggle(300);
		return false;
	});
	
	jQuery(".popup").fancybox({
		'titlePosition'		: 'inside',
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'overlayColor'		: '#000',
		'overlayOpacity'	: 0.8
	});
	
		jQuery(".popupImg").fancybox({
		'titlePosition'		: 'inside',
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'overlayColor'		: '#000',
		'overlayOpacity'	: 0.8
						 });
	
}

function load(){
		     	
		jQuery.imgpreload([temp_dir+'/wp-content/uploads/2011/04/large_img.gif',
					   temp_dir+'/wp-content/uploads/2011/04/large_img_8.jpg',
					   temp_dir+'/wp-content/uploads/2011/04/large_img_6.jpg',
					   temp_dir+'/wp-content/uploads/2011/04/large_img_10.jpg',
					   temp_dir+'/wp-content/uploads/2011/04/large_img_11.jpg',
					   temp_dir+'/wp-content/uploads/2011/04/large_img_3.jpg',
					   temp_dir+'/wp-content/uploads/2011/04/large_img_5.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/large_img_4.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/large_img_7.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/large_img_16.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/large_img_14.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/large_img_19.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/large_img_2.jpg', 
					   temp_dir+'/wp-content/uploads/2010/11/large_img_1.jpg',					   
					   temp_dir+'/wp-content/uploads/2010/11/large2.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/large_img_20.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/large_img_18.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/large_img_17.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/large_img_15.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/large_img_12.jpg',
     				   temp_dir+'/wp-content/uploads/2010/11/large_new.jpg',
					   
					   temp_dir+'/wp-content/uploads/2011/04/22.jpg',
					   temp_dir+'/wp-content/uploads/2011/04/21.jpg',
					   temp_dir+'/wp-content/uploads/2011/04/20.jpg',
					   temp_dir+'/wp-content/uploads/2011/04/19.jpg',
					   temp_dir+'/wp-content/uploads/2011/04/18.jpg',
					   temp_dir+'/wp-content/uploads/2011/04/17.jpg',
					   temp_dir+'/wp-content/uploads/2011/04/16.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/15.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/141.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/131.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/121.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/113.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/10.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/9.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/8.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/7.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/6.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/5.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/4.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/111.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/2.jpg',
					   temp_dir+'/wp-content/uploads/2010/11/13.jpg'],
	{
		each: function()
		{
			// this = new image object
			// callback executes on every image load
		},
		all: function()
		{
			jQuery('.content div').hide();
			jQuery('.content div').eq(0).show();
			jQuery('span.screenshot img').eq(0).show();
			jQuery('span.shot img').eq(0).show();
			
			jQuery('.thumb_img li').bind('click',function(){
									 
				var CurImg=jQuery('a', jQuery(this)).attr('rel');	
				var CurLarge=jQuery('a', jQuery(this)).attr('name');	
				jQuery('span.screenshot img').attr({src:CurImg});		
				jQuery('span.screenshot img').hide();
				jQuery('span.screenshot img').fadeIn('slow');
				
				jQuery('span.shot img').attr({src:CurLarge});		
				jQuery('span.shot img').hide();
				jQuery('span.shot img').fadeIn('slow');
				
				jQuery('.content div').hide();
				var CurIndex=jQuery(this).attr('class');
				jQuery('.content div').eq(CurIndex).fadeIn('slow');
				return false;
							
			});
		
			jQuery('.gallery_slider').cycle({
									
				fx      :'scrollHorz',
				timeout : 0,
				speed   : 1000,
				prev    :'#prev1',
				next    :'#next1'
						
			});
	
		}
	});


	
	
	
	
	
	
	
	
	
	jQuery('.header_slider').after('<div><ul class="paging" id="thumbs">').cycle({
					 
		fx       : 'scrollHorz',		 
		timeout  : 10000,
		speed    : 1000,
		pager    : '#thumbs',
		activePagerClass: 'active',
		pagerAnchorBuilder: function(idx, slide) {
			var index=idx+1;
			return '<li><a href="#">'+index+'</a></li>';
		}
	});		

	jQuery('.blog_slider').after('<div class="paging"><ul id="paging">').cycle({
								 
		fx       : 'scrollHorz',		 
		timeout  : 5000,
		speed    : 1000,
		pager    : '#paging',
		activePagerClass: 'active',
		pagerAnchorBuilder: function(idx, slide) {
			var index=idx+1;
			return '<li><a href="#"></a></li>';
		}
	});		

	jQuery('#logo_slider').cycle({
							
		fx      :'scrollHorz',
		timeout : 0,
		speed   : 1000,
		prev    :'#prev',
		next    :'#next'
				
	});


	jQuery('ul.accordion .child').slideUp();
	
	jQuery("ul.accordion a.main_acco").click(function() {
												 
		if(false == jQuery(this).next().is(':visible')) {
			jQuery('ul.accordion .child').slideUp(300);
		}
		
		jQuery(this).next().slideToggle(300);
		return false;
	});
	
	jQuery(".popup").fancybox({
		'titlePosition'		: 'inside',
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'overlayColor'		: '#000',
		'overlayOpacity'	: 0.8
	});
	
		jQuery(".popupImg").fancybox({
		'titlePosition'		: 'inside',
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'overlayColor'		: '#000',
		'overlayOpacity'	: 0.8
	});
	
}

function initServices() {
  jQuery('ul.services ul').hide();
  jQuery.each(jQuery('ul.services'), function() { jQuery('#' + this.id + '.expandfirst ul:fist').show(); });
  jQuery('ul.services li a').hover(function() {
				     var checkElement = jQuery(this).next();
				     var parent = this.parentNode.parentNode.id;
				     if(jQuery('#' + parent).hasClass('noaccordian')) {
				       jQuery(this).next().slideToggle('normal');
				       return false;
				     }
				     if((checkElement.is('ul')) && (checkElement.is(':visible'))) {
				       if(jQuery('#' + parent).hasClass('collapsible')) {
					 $('#' + parent + ' ul:visible').slideUp('normal');
				       }
				       return false;
				     }
				     if((checkElement.is('ul')) && (!checkElement.is(':visible'))) {
				       jQuery('#' + parent + ' ul:visible').slideUp('normal');
				       checkElement.slideDown('normal');
				       return false;
				     }
				   });
}

//jQuery(document).ready(initServices);

