// JavaScript Document
$(function() 
{
	//$('.videosurveillancebg').css('background-image', 'url(images/videosurveillance50.jpg)');
	//$('.computerrepairbg').css('background-image', 'url(images/cpuservice50.jpg)');
    //$('.plumberbg').css('background-image', 'url(images/plumber50.jpg)');
    //$('.electricalbg').css('background-image', 'url(images/electrical50.jpg)');
    //$('.carpenterbg').css('background-image', 'url(images/carpenter50.jpg)');
	//$('.gamerepairbg').css('background-image', 'url(images/gamerepair50.jpg)');
	//$('.heatingbg').css('background-image', 'url(images/heating50.jpg)');
	//$('.landscapebg').css('background-image', 'url(images/landscape50.jpg)');
   	//$("#techsemail").hide();
	$(".fadeout").css({"filter:alpha": "(opacity=50)"});
	$(".fadeout").css({"opacity": "0.5"});
	$(".fadeout").css({"-moz-opacity": "0.5"});
	$(".hidecontact, .hidecontact2, .hidecontact3, .hidecontact4, .hidecontact5, .hidecontact6, .hidecontact7").hide();
	

	$(".hidethis").click(function()
		{
		$(".maincontenttext").slideToggle('slow', function() {
    // Animation complete.
 		 });
		});
	
	$(".techsemail").click(function()
		{	
		$(".hidecontact").slideToggle('slow', function() {
 		 });
			//$("#techsemail").show();
			//$("#maincontent").hide();
			//$("#footer").hide();
			//$("#wrapper").css({"filter:alpha": "(opacity=10)"});
			//$("#wrapper").css({"opacity": "0.1"});
			//$("#wrapper").css({"-moz-opacity": "0.1"});
		});
	$(".techsemail2").click(function()
		{	
		$(".hidecontact2").slideToggle('slow', function() {
 		 });
			//$("#techsemail").show();
			//$("#maincontent").hide();
			//$("#footer").hide();
			//$("#wrapper").css({"filter:alpha": "(opacity=10)"});
			//$("#wrapper").css({"opacity": "0.1"});
			//$("#wrapper").css({"-moz-opacity": "0.1"});
		});
	$(".techsemail3").click(function()
		{	
		$(".hidecontact3").slideToggle('slow', function() {
 		 });
			//$("#techsemail").show();
			//$("#maincontent").hide();
			//$("#footer").hide();
			//$("#wrapper").css({"filter:alpha": "(opacity=10)"});
			//$("#wrapper").css({"opacity": "0.1"});
			//$("#wrapper").css({"-moz-opacity": "0.1"});
		});
	$(".techsemail4").click(function()
		{	
		$(".hidecontact4").slideToggle('slow', function() {
 		 });
			//$("#techsemail").show();
			//$("#maincontent").hide();
			//$("#footer").hide();
			//$("#wrapper").css({"filter:alpha": "(opacity=10)"});
			//$("#wrapper").css({"opacity": "0.1"});
			//$("#wrapper").css({"-moz-opacity": "0.1"});
		});
	$(".techsemail5").click(function()
		{	
		$(".hidecontact5").slideToggle('slow', function() {
 		 });
			//$("#techsemail").show();
			//$("#maincontent").hide();
			//$("#footer").hide();
			//$("#wrapper").css({"filter:alpha": "(opacity=10)"});
			//$("#wrapper").css({"opacity": "0.1"});
			//$("#wrapper").css({"-moz-opacity": "0.1"});
		});
	$(".techsemail6").click(function()
		{	
		$(".hidecontact6").slideToggle('slow', function() {
 		 });
			//$("#techsemail").show();
			//$("#maincontent").hide();
			//$("#footer").hide();
			//$("#wrapper").css({"filter:alpha": "(opacity=10)"});
			//$("#wrapper").css({"opacity": "0.1"});
			//$("#wrapper").css({"-moz-opacity": "0.1"});
		});
	$(".techsemail7").click(function()
		{	
		$(".hidecontact7").slideToggle('slow', function() {
 		 });
			//$("#techsemail").show();
			//$("#maincontent").hide();
			//$("#footer").hide();
			//$("#wrapper").css({"filter:alpha": "(opacity=10)"});
			//$("#wrapper").css({"opacity": "0.1"});
			//$("#wrapper").css({"-moz-opacity": "0.1"});
		});
	$(".techsemailclose").click(function()
		{
			//$("#techsemail").hide();
			//$("#maincontent").show();
			//$("#footer").show();
		});
	
	 $('.fadeout').hover( function(){
      	$(this).css({"filter:alpha": "(opacity=100)"});
		$(this).css({"opacity": "1.0"});
		$(this).css({"-moz-opacity": "1.0"});
	 //$('.plumberbg a').css('color', '#FFF');	
   },
   function(){
      $(this).css({"filter:alpha":  "(opacity=50)"});
		$(this).css({"opacity": "0.5"});
		$(this).css({"-moz-opacity": "0.5"});
	 // $('.plumberbg a').css('color', '#000');	
   });
	 
	$('.hidethis').hover( function(){
      	$(this).css({"cursor": "pointer"});
   },
   function(){
        $(this).css({"cursor": ""});
   });
	 
	 
	
   $('.plumberbg').hover( function(){
      $(this).css('background-image', 'url(images/plumber100.jpg)');
	  $('.plumberbg a').css('background-color', '#dedede');	
	 //$('.plumberbg a').css('color', '#FFF');	
   },
   function(){
      $(this).css('background-image', 'url(images/plumber50.jpg)');
	  $('.plumberbg a').css('background-color', '');
	 // $('.plumberbg a').css('color', '#000');	
   });

   $('.computerrepairbg').hover( function(){
      $(this).css('background-image', 'url(images/cpuservice100.jpg)');
	  $('.computerrepairbg a').css('background-color', '#dedede');	
   },
   function(){
      $(this).css('background-image', 'url(images/cpuservice50.jpg)');
	  $('.computerrepairbg a').css('background-color', '');  	
   });
   
   $('.carpenterbg').hover( function(){
      $(this).css('background-image', 'url(images/carpenter100.jpg)');
	  $('.carpenterbg a').css('background-color', '#dedede');	
   },
   function(){
      $(this).css('background-image', 'url(images/carpenter50.jpg)');
	  $('.carpenterbg a').css('background-color', '');
   });

   $('.electricalbg').hover( function(){
      $(this).css('background-image', 'url(images/electrical100.jpg)');
	  $('.electricalbg a').css('background-color', '#dedede');	
   },
   function(){
      $(this).css('background-image', 'url(images/electrical50.jpg)');
	  $('.electricalbg a').css('background-color', '');
   });
   
	$('.gamerepairbg').hover( function(){
      $(this).css('background-image', 'url(images/gamerepair100.jpg)');
	  $('.gamerepairbg a').css('background-color', '#dedede');	
   },
   function(){
      $(this).css('background-image', 'url(images/gamerepair50.jpg)');
	  $('.gamerepairbg a').css('background-color', '');
   });
	
	$('.heatingbg').hover( function(){
      $(this).css('background-image', 'url(images/heating100.jpg)');
	  $('.heatingbg a').css('background-color', '#dedede');	
   },
   function(){
      $(this).css('background-image', 'url(images/heating50.jpg)');
	  $('.heatingbg a').css('background-color', '');
   });
	
	$('.landscapebg').hover( function(){
      $(this).css('background-image', 'url(images/landscape100.jpg)');
	  $('.landscapebg a').css('background-color', '#dedede');	
   },
   function(){
      $(this).css('background-image', 'url(images/landscape50.jpg)');
	  $('.landscapebg a').css('background-color', '');
   });
	
	$('.videosurveillancebg').hover( function(){
      $(this).css('background-image', 'url(images/videosurveillance100.jpg)');
	  $('.videosurveillancebg a').css('background-color', '#dedede');	
   },
   function(){
      $(this).css('background-image', 'url(images/videosurveillance50.jpg)');
	  $('.videosurveillancebg a').css('background-color', '');
   });	
});
