
var $j = jQuery.noConflict();

jQuery(document).ready(function() {
$j('.myGallery').fadeIn();								
								
		$j('.myGallery').cycle({ 
    speed:  900, 
	cleartype: 0,
	random: 'true',
    before: onBefore 
}); 						
	
		// simple accordion
		
		$j('#list1b').accordion({
			autoheight: false,
			navigation: true,
			active: false,
			header: '.accheader',
			alwaysOpen: false
		});								
								
								
$j("#Field21").change(function() 
    { 
		 var message_index
		 message_index = $j("#Field21").val() ;
		
		 if (message_index == 'Industrial'){
			$j(".hideme").fadeIn("slow"); 
		 }
		 
		 if (message_index != 'Industrial'){
			$j(".hideme").fadeOut("slow"); 
		 }
		 		 		 		 		 		 		 
	});
		

$j("#contactus").submit(function(){
			
						 var email  = "^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/";
						
						if ($j("#email").match(email)) {
							  alert("yes");
							} else {
							  alert("no");
							};

		
								
						 if ($j("#fname")!="ss"){ alert("yalahwee");} 
						  
						  
						  });  

$j("#commentForm").validate();

	$j.localScroll();




 $j('.firsttarget').click(function(){$j("html:not(:animated),body:not(:animated)").animate({ scrollTop: (600)} )});




  
  $j(".bigTarget2").hover(
						   
	   function () {
      $j(this).css({backgroundColor: "#f1f0ef"});
						   },
		function () {
      $j(this).css({backgroundColor: "#ffffef"});
						   }				   
						   
    );













							
$j(".bigTarget h3 a").bigTarget({
  hoverClass: 'hovertarget', 
 clickZone : 'div:eq(0)' // jQuery parent selector
});

								
		$j(".addsome li:nth-child(1)").prepend("<span class='span1'>&nbsp;</span>");
		$j(".addsome li:nth-child(2)").prepend("<span class='span2'>&nbsp;</span>");
		$j(".addsome li:nth-child(3)").prepend("<span class='span3'>&nbsp;</span>");
		$j(".addsome li:nth-child(4)").prepend("<span class='span4'>&nbsp;</span>");
		$j(".addsome li:nth-child(5)").prepend("<span class='span5'>&nbsp;</span>");
		$j(".addsome li:nth-child(6)").prepend("<span class='span6'>&nbsp;</span>");
	
		$j(".from1to5 li:nth-child(1)").css({backgroundPosition: "left top"});
		$j(".from1to5 li:nth-child(2)").css({backgroundPosition: "0 -49px"});
		$j(".from1to5 li:nth-child(3)").css({backgroundPosition: "0 -98px"});
		$j(".from1to5 li:nth-child(4)").css({backgroundPosition: "0 -147px"});
		$j(".from1to5 li:nth-child(5)").css({backgroundPosition: "0 -196px"});
	
		
		$j(".sqaredlist  li:nth-child(odd)").css("margin-right", "55px");
		
//		alert(location.hostname);
	
  //      $j('a').filter(function() {
    //     return this.hostname && this.hostname !== location.hostname;
      //  }).after(' <img src="http://qi3.twindots.com/wp-content/themes/qi3-theme/images/external_url.gif" alt="Open in new window" title="Open in new window">');
		
		

  $j(".lineunder a").hover(
						   
	   function () {
      $j(this).animate({paddingLeft: "30px"}, {queue:false, duration:300});
						   },
		function () {
      $j(this).animate({paddingLeft: "20px"}, {queue:false, duration:300});
						   }				   
						   
    );
  
  
  $j(".slidelinkswitharrow a").hover(
						   
	   function () {
      $j(this).animate({paddingLeft: "40px", backgroundColor: "#f5f5f5"}, {queue:false, duration:300});
						   },
		function () {
      $j(this).animate({paddingLeft: "20px"}, {queue:false, duration:300});
						   }				   
						   
    );  
  
//$j(".page-item-8 a").attr("href","http://qi3.twindots.com/category/events");
//$j(".page-item-11 a").attr("href","http://qi3.twindots.com/category/news");

  $j(".submenus a").hover(
						   
	   function () {
      $j(this).animate({ paddingRight:"0px", paddingLeft: "30px"}, {queue:false, duration:300});
						   },
		function () {
      $j(this).animate({paddingRight:"8px", paddingLeft: "22px"}, {queue:false, duration:300});
						   }				   
						   
    );



  $j(".bigTarget2").hover(
						   
	   function () {
      $j(this).animate({ paddingRight:"0px", paddingLeft: "10px"}, {queue:false, duration:300});
						   },
		function () {
      $j(this).animate({paddingRight:"8px", paddingLeft: "0px"}, {queue:false, duration:300});
						   }				   
						   
    );




	

		
//$j('.myGallery img').css(function (){$j(this).css({"z-index:","-1"})};
 
function onBefore() { 
    $j('.title') 
        .html(this.alt); 
}; 

	

$j(function mainmenu(){
$j(" #navmenu-h a").removeAttr("title");
if(!$j.browser.msie){
	$j(" #navmenu-h ul ").css({opacity:"0.97"});
}// IE  - 2nd level Fix

$j(" #navmenu-h ul ").css({display: "none"}); // Opera Fix
$j(" #navmenu-h li").hover(function(){
		$j(this).find('ul:first:hidden').css({visibility: "visible",display: "none"}).show(400);
		},function(){
		$j(this).find('ul:first').css({visibility: "hidden"});
		});
})





				



easing = 'Back';
		
		function loadEasing(e) {
			location.href = 'index.html'+e;
		}
		
		function setEasing(e) {
			loadLamps(e);
		}

});


