$(document).ready(function(){
	if (typeof(InitilizeMap)==='function')
		{
				InitilizeMap();	
		}
    
	 
		if (typeof(Init_uploadify)==='function')
		{
				Init_uploadify();	
		}
		if (typeof(newpicturesControls)==='function'){
					newpicturesControls();
		}
	 if (typeof(galleryInit)==='function'){
		 galleryInit();
		 
    }
    if (typeof(contactPage_clickEvents)==='function'){
		 contactPage_clickEvents();
    }
	 
   
    var show_con = $('.front_links ul li:first-child p').html();
    $('.front_links .to_show').text(show_con);
    
    $(".front_links ul li").click(function () {
      var htmlStr = $(this).children('p').html();
      $('p.to_show').text(htmlStr);
    });
   
    if ($('.front_links ul li').length>0) $('.front_links ul li').ahover({toggleEffect: 'height',moveSpeed:200}); 
    
    if ($('.quality_policy ul li').length>0) $('.quality_policy ul li').ahover({toggleEffect: 'height',moveSpeed:200}); 
    
                                                 
    $('.wraper_holder').hover(function(){
       $(this).children('h1').css({color:'#E1A837'});
   },function(){
       $(this).children('h1').css({color:'#B45654'});
   });  
    
   // ({backgroundPosition:"(0 0)"},300);
   $('.menu ul li a').hover(function(){
       me = $(this)
       $(this).parent('li').addClass('h_selected');
   },function(){
       $(this).parent('li').removeClass('h_selected');
   });  

   $('table tr td').hover(function(){
       $(this).parent('tr').addClass('tdh');
   },function(){
       $(this).parent('tr').removeClass('tdh');
   });  
   $('.front_menu ul li:first-child').addClass('selected');
   $('.menu ul li').each(function(){
       var liWidth = $(this).outerWidth();
       
       $(this).css({width:liWidth,padding:'5px 0 0'});
       
   });
   
   $('#mycarusel').jcarousel({
        scroll: 2
    });
    
    
    if (($(window).width())>($('#container').width())){
        return false;
    }else{
       var position = (($('#container').width())/2)-(($(window).width())/2);
       $(window).scrollLeft(position,0);
    }
    
    
    
});
