/*
 * General config
 * By poppo 
 * E-Mail: pop@silvermover.com
 * 
 */
var ar=[];

	$(function(){
		$('.nav li').hover(function(){
			//$('#menuBullet').remove();
			if(!$(this).is('.active')){
			$(this).animate({'padding-left':'10px','opacity':'.5'},200,false,function(){
				$(this).css({'list-style':'square'});
				});
			}
			},function(){
				if(!$(this).is('.active')){
					$(this).animate({'padding-left':'0px','opacity':'1'},500,false,function(){
						$(this).css({'list-style':'none'});
						});
				}
				});
		$('.aippLink a').hover(function(){
			
			$(this).animate({'padding-left':'10px','opacity':'.7'},200,false,function(){
				$(this).css({'list-style':'square'});
				});
			
			},function(){
			
					$(this).animate({'padding-left':'0px','opacity':'1'},500,false,function(){
						});
			
				});
		
		$.event.add( window, "load", function(){
             preloadImages(bannerSlide);
				$.each(bannerSlide,function(i,v){
					$('.topBanner').append('<img src="' +$url+v+'" style="width:730px;height:230px;"\/>');
					});
					
					$('.topBanner').cycle({
						fx:'turnDown', // fx: shuffle , turnDown ,curtainX ,fade ,zoom  ,slideY
						easing: 'bounceout',
						delay:-12000 });		
				} );
     


		
	});
	function preloadImages(args){
	if(document.images){
		if(!document.imageArray) document.imageArray = new Array();
		//var i,j = document.imageArray.length, args = preloadImages.arguments;
                var i,j = document.imageArray.length;
		for(i=0; i<args.length; i++){
			if (args[i].indexOf("#")!=0){
				document.imageArray[j] = new Image;document.imageArray[j++].src = args[i];
			}
		}
	}
	
} // n fnc


// plugin Scrolling page
$.fn.extend({scrollTo:function(speed,easing){return this.each(function(){var targetOffset=$(this).offset().top;$('html,body').animate({scrollTop:targetOffset},speed,easing);});}});

