
 
   

	var submit = 0;
	/* Flash resize*/
	function mainMenuklein()
	{
		document.getElementById('divMenu').style.height = '32px';
	}
	
	function mainMenugross()
	{
		document.getElementById('divMenu').style.height = '350px'; 
	}


	$(function()
	{	
  		if(jQuery.browser.msie && jQuery.browser.version<7)
  		{	
			$("#popup").show();
			$("#popup").css({visibility:"hidden"});				
		}
		/* Footer Language*/
	    $("#tableLang").hover(
	      function () {
	      },
	      function () {
	      	$("#langHidden").css({width:"1px"});
			$("#langHidden").hide(1, function(){
				$("#langLink").css({width:"80px"});
				$("#langLink").show();								
			});
	      }
	    );		
	    
	    $(".langInaktivLink").hover(
	      function () {
			$("#langLink").css({width:"1px"});
			$("#langLink").hide(1, function(){							
				$("#langHidden").animate({width:"380px"},"slow");
			});
	      }
	    );   
	    
	    /* templateTeam*/
	    $(".teamFahrer").hover(
	      function () {
	      	$(this).children().children().children().children().children().filter(".overviewPic").addClass("rollover");
      		if(jQuery.browser.msie && jQuery.browser.version<7)
      		{
		      	$(this).children().children().children().children().children().filter(".overviewPic").width(162);	      						
      		}	      		      	
	      	$(this).children().children().children().children().children().filter("a").addClass("greenGeorgia12i");
	      }, 
	      function () {
	      	$(this).children().children().children().children().children().filter(".overviewPic").removeClass("rollover");
	      	$(this).children().children().children().children().children().filter("a").removeClass("greenGeorgia12i");	      	
	      }
	    );		 
	    
		/* templateTravelstories*/
	    $(".teamstoryBlock").hover(
	      function () {
	      	$(this).addClass("rolloverBG");
	      }, 
	      function () {
	      	$(this).removeClass("rolloverBG");
	      }
	    );	

		/* templateTeam Detail Movie Link*/
	    $(".teamDetailMovieLink").click(function () { 
		 	 $("#popupContent").hide();
		 	 $("#popupLoader").centerInClient();
		 	 $("#popupLoader").show();	    
			 $("#popupContent").load($(this).attr("href"), function(){
				 $("#popupLoader").hide();
			 	 $("#popupContent").show();		
			 	 $("#popup").height($("#divCenterContent").height()*1+130);	 
			 });	    				 
			 $("#popup").show();
			 $("#popupContent").centerInClient();
    	});	
	    	
	    /* templateManual*/    
	    $(".Manual").hover(
	      function () {
	      	var img_div = $(this).children().children().children().children().children().filter(".imgDiv");
	      	var txt_div = $(this).children().children().children().children().children().filter(".txtDiv");	
	      	var link_div = $(this).children().children().children().children().children().children().filter(".linkDiv");	      	
	      	var pic_el = $(this).children().children().children().children().children().next().children().children().filter(".pic");
	      	
      		txt_div.css({left:img_div.position().left+10, top:img_div.position().top+6});
	      	txt_div.height(img_div.height()-12);
	      	txt_div.width(img_div.width()-20);	  	      	
	      	    	
	      	img_div.addClass("rollover");
	      	txt_div.addClass("rollover");
	      	txt_div.show();	      	
	      	link_div.css({paddingTop:(img_div.height()/2)-(link_div.height()/2)-6});
	      	$(this).children().children().children().children().children().filter("a").addClass("greenGeorgia12i");

	      }, 
	      function () {  	
	      	var img_div = $(this).children().children().children().children().children().filter(".imgDiv");
	      	var txt_div = $(this).children().children().children().children().children().filter(".txtDiv");	      	
	      	var pic_el = $(this).children().children().children().children().children().next().children().children().filter(".pic");
	      		      
	      	img_div.removeClass("rollover");
	      	txt_div.hide();	      		      	
	      	$(this).children().children().children().children().children().filter("a").removeClass("greenGeorgia12i");
	      }
	    );	
	    
	    /* templateMusicCredits*/
	    $(".MusicCover").hover(
	      function () {
	      	var img_div = $(this).children().children().children().children().children().filter(".imgDiv");
	      	var txt_div = $(this).children().children().children().children().children().filter(".txtDiv");	    
	      	var link_div = $(this).children().children().children().children().children().children().filter(".linkDiv");	      	  	
	      	var pic_el = $(this).children().children().children().children().children().next().children().children().filter(".pic");
	      	
	      	if(pic_el.position()){
		      	txt_div.css({left:pic_el.position().left, top:pic_el.position().top});
		      	txt_div.height(pic_el.height());
		      	txt_div.width(pic_el.width());	  
	      	}else{
	      		txt_div.css({left:img_div.position().left+10, top:img_div.position().top+6});
		      	txt_div.height(img_div.height()-12);
		      	txt_div.width(img_div.width()-20);	  	      	
	      	}
	      	    	
	      	img_div.addClass("rollover");
	      	txt_div.addClass("rollover");
	      	txt_div.show();	 
	      	link_div.css({paddingTop:(img_div.height()/2)-(link_div.height()/2)-6});     	
	      	$(this).children().children().children().children().children().filter("a").addClass("greenGeorgia12i");

	      }, 
	      function () {  	
	      	var img_div = $(this).children().children().children().children().children().filter(".imgDiv");
	      	var txt_div = $(this).children().children().children().children().children().filter(".txtDiv");	      	
	      	var pic_el = $(this).children().children().children().children().children().next().children().children().filter(".pic");
	      		      
	      	img_div.removeClass("rollover");
	      	txt_div.hide();	      		      	
	      	$(this).children().children().children().children().children().filter("a").removeClass("greenGeorgia12i");
	      }
	    );	    	    	
	    	
	});		


	function ajaxWindowLink(href, lang, page){
		$("#popupContent").hide();
		$("#popupLoader").centerInClient();
		$("#popupLoader").show();
		$("#popupContent").load(href, {'lang':lang, 'page_start:int':page}, function(){
			$("#popupLoader").hide();
	 		$("#popupContent").show();		 
	 	});			 
	}
	
	function closePopup(){
		$("#popupContent").html("");
		document.getElementById('popup').style.display='none';
	}	 
	
	function openUrl(url) { 
		$("#popupContent").hide();
		$("#popupLoader").centerInClient();
		$("#popupLoader").show();	    
		$("#popupContent").load(url, function(){
			$("#popupLoader").hide();
		 	$("#popupContent").show();		
		 	$("#popup").height($("#divCenterContent").height()*1+130);	 
		});	    				 
		$("#popup").show();
		$("#popupContent").centerInClient();
    }		
	
	$(document).ready(function() {
  		if(jQuery.browser.msie && jQuery.browser.version<7)
  		{	
			$("#popup").hide();	
			$("#popup").css({visibility:"visible"});				
		}
		
		$("#popup").height($("#divCenterContent").height()*1+130);
		if(jQuery.browser.safari && jQuery.browser.version>3)
		{
			if($("#divCenterContent").height()<700)
				$("#popup").height($("#divCenterContent").height()*1+220);
		}
	
		jQuery.each($('.email'), function() {
			$(this).amail('(at)','(dot)','NOSPAM');
		});	


		$("#colorsBlock").css({"marginTop":$("#headProduct").height()});

		$('.inputSelect').selectbox();
		
  		if(jQuery.browser.msie && jQuery.browser.version<7)
  		{	
			jQuery.each($(".selectbox-wrapper"), function() {
				if($(this).height()>200)
					$(this).css({height:"200px"});
			});	
		}		
			
		var form_element = new Array();
		
		jQuery.each($(".inputText"), function() {
			form_element[$(this).attr("id")] = $(this).val();
		});	
		
	    $(".inputText").focus(function () {
			if($(this).val() == form_element[$(this).attr("id")]){
				$(this).val("");
			}
			$(this).removeClass("error");			
	    });		
	    $(".inputText").blur(function () {
	    	if($(this).val() == ""){
	    		$(this).val(form_element[$(this).attr("id")]);
	    	}
	    });	 
	    $(".selectbox").blur(function () {
			$(this).css({border:"solid 1px #373737", color:"#FFFFFF", background:"url(http://www.northkites.com/public/content/images/selectBg.gif) left top"});
	    });		    
	   
	    /* templateCatalog Validate formCatalog*/
	    $("#submitCatalog").click(function(){
	    
	    	var error = 0;
	    	
			jQuery.each($(".inputText"), function() {
		    	if($(this).hasClass("required") && ($(this).val() == "" || $(this).val() == form_element[$(this).attr("id")])){
		    		$(this).addClass("error");
		    		error = 1;
		    	}else{
		    		$(this).removeClass("error");
		    	}
			});	    
			
			if($('#country').val()==0)
			{
				$('#country_input').css({border:"solid 1px #FF3333", color:"#FF3333", background:"url(http://www.northkites.com/public/content/images/selectBgError.gif) left top"});
		    		error = 1;				
			}else{
				$('#country_input').css({border:"solid 1px #373737", color:"#FFFFFF", background:"url(http://www.northkites.com/public/content/images/selectBg.gif) left top"});
			}
			
			if($('#lang').val()==0)
			{
				$("#lang_input").css({border:"solid 1px #FF3333", color:"#FF3333", background:"url(http://www.northkites.com/public/content/images/selectBgError.gif) left top"});
		    		error = 1;				
			}else{
				$("#lang_input").css({border:"solid 1px #373737", color:"#FFFFFF", background:"url(http://www.northkites.com/public/content/images/selectBg.gif) left top"});
			}
			
			if($('#distributor').val()=="")
			{
				$('#distributor_input').css({border:"solid 1px #FF3333", color:"#FF3333", background:"url(http://www.northkites.com/public/content/images/selectBgError.gif) left top"});
		    		error = 1;				
			}else{
				$('#distributor_input').css({border:"solid 1px #373737", color:"#FFFFFF", background:"url(http://www.northkites.com/public/content/images/selectBg.gif) left top"});
			}			
			
			if(error)
				$("#formCatalogError").html("Please fill out all marked fields!");
			else{
				$("#formCatalogError").html("");
				if(submit == 0){
					$("#catalogForm").submit(function() {
				      if(submit == 0) return true;
				      else return false;
				    });				
					$("#catalogForm").submit();
				}
				submit++;
			}
	    });
	    
	    
	    /* templateDvd Validate formDvd*/
	    $("#submitDvd").click(function(){
	    
	    	var error = 0;
	    	
			jQuery.each($(".inputText"), function() {
		    	if($(this).hasClass("required") && ($(this).val() == "" || $(this).val() == form_element[$(this).attr("id")])){
		    		$(this).addClass("error");
		    		error = 1;
		    	}else{
		    		$(this).removeClass("error");
		    	}
			});	    
			
			if($('#country').val()==0)
			{
				$('#country_input').css({border:"solid 1px #FF3333", color:"#FF3333", background:"url(http://www.northkites.com/public/content/images/selectBgError.gif) left top"});
		    		error = 1;				
			}else{
				$('#country_input').css({border:"solid 1px #373737", color:"#FFFFFF", background:"url(http://www.northkites.com/public/content/images/selectBg.gif) left top"});
			}
			
			
			if(error)
				$("#formCatalogError").html("Please fill out all marked fields!");
			else{
				$("#formCatalogError").html("");
				if(submit == 0){
					$("#dvdForm").submit(function() {
				      if(submit == 0) return true;
				      else return false;
				    });				
					$("#dvdForm").submit();
				}
				submit++;
			}
	    });	    
	    
	    /* templateCatalog Validate formDownload*/	    
	    $("#submitDownload").click(function(){
			
			if($('#langDownload').val()==0)
			{
				$("#langDownload_input").css({border:"solid 1px #FF3333", color:"#FF3333", background:"url(http://www.northkites.com/public/content/images/selectBgError.gif) left top"});
			}else{
				$("#langDownload_input").css({border:"solid 1px #373737", color:"#FFFFFF", background:"url(http://www.northkites.com/public/content/images/selectBg.gif) left top"});
				
				window_id = window.open("","_blank");
				window_id.location.href = 'http://www.northkites.com/public/content/Catalogue/catalogue_'+$('#langDownload').val()+'.pdf';
			}
	    });   
	    
	    /* templateNewsletter Validate newsletterForm*/
	    $("#submitNewsletter").click(function(){
	    
	    	var error = 0;
			var checkArray = new Array();
			
			checkArray['firstName'] = /\S{2,100}/;
			checkArray['lastName'] = /\S{2,100}/;
			checkArray['email'] = /^(\w|[-.,]){2,}@((\w|[-.,]){3,}[.]?){1,30}([.][a-z]{2,4})$/;
			
    	
			jQuery.each($("#newsletterForm .inputText"), function() {
		    	if($(this).hasClass("required") && (!checkArray[$(this).attr("id")].test($(this).val()) || $(this).val() == form_element[$(this).attr("id")])){
		    		$(this).addClass("error");
		    		error = 1;
		    	}else{
		    		$(this).removeClass("error");
		    	}
			});	    
			
			if($('#country').val()==0)
			{
				$('#country_input').css({border:"solid 1px #FF3333", color:"#FF3333", background:"url(http://www.northkites.com/public/content/images/selectBgError.gif) left top"});
		    		error = 1;				
			}else{
				$('#country_input').css({border:"solid 1px #373737", color:"#FFFFFF", background:"url(http://www.northkites.com/public/content/images/selectBg.gif) left top"});
			}
			
			if(!error)
			{
				if(submit == 0){
					$("#newsletterForm").submit(function() {
				      if(submit == 0) return true;
				      else return false;
				    });				
					$("#newsletterForm").submit();
				}
				submit++;			
			}			
			
	    });	    
	    
	    $("#loginForm #password").focus(function(){
	    	$(this).replaceWith('<input type="password" name="password" id="password" class="inputText required" value="">').remove();
	    	$("#password").focus();
	    });	    
	    
	    /* templateLogin Validate loginForm*/
	    $("#submitLogin").click(function(){
	    
	    	var error = 0;
			var checkArray = new Array();
			
			checkArray['password'] = /\w{1,100}/;
			checkArray['email'] = /^(\w|[-.,]){2,}@((\w|[-.,]){3,}[.]?){1,30}([.][a-z]{2,4})$/;
			
    	
			jQuery.each($("#loginForm .inputText"), function() {
		    	if($(this).hasClass("required") && (!checkArray[$(this).attr("id")].test($(this).val()) || $(this).val() == form_element[$(this).attr("id")])){
		    		$(this).addClass("error");
		    		error = 1;
		    	}else{
		    		$(this).removeClass("error");
		    	}
			});	    
			
			if(!error)
			{
				$("#loginForm").submit();
			}			
			
	    });	  	    	
	    
	    /* templateContact Validate formContact*/	    
	    $("#submitPressContact").click(function(){
	    
	    	var error = 0;
			var checkArray = new Array();
			
			checkArray['f4_firstName'] = /\S{2,100}/;
			checkArray['f4_lastName'] = /\S{2,100}/;
			checkArray['f4_email'] = /^(\w|[-.,]){2,}@((\w|[-.,]){3,}[.]?){1,30}([.][a-z]{2,4})$/;
			
    	
			jQuery.each($("#presscontactForm .inputText"), function() {
		    	if($(this).hasClass("required") && (!checkArray[$(this).attr("id")].test($(this).val()) || $(this).val() == form_element[$(this).attr("id")])){
		    		$(this).addClass("error");
		    		error = 1;
		    	}else{
		    		$(this).removeClass("error");
		    	}
			});	    
			
			if($('#f4_country').val()=="")
			{
				$('#f4_country_input').css({border:"solid 1px #FF3333", color:"#FF3333", background:"url(http://www.northkites.com/public/content/images/selectBgError.gif) left top"});
		    		error = 1;				
			}else{
				$('#f4_country_input').css({border:"solid 1px #373737", color:"#FFFFFF", background:"url(http://www.northkites.com/public/content/images/selectBg.gif) left top"});
			}			
			
			if(error)
				$("#formPressContactError").css({visibility:"visible"});
			else{
				$("#formPressContactError").css({visibility:"hidden"});
				if(submit == 0){
					$("#presscontactForm").submit(function() {
				      if(submit == 0) return true;
				      else return false;
				    });				
					$("#presscontactForm").submit();
				}
				submit++;							
			}
	    });
	    
	    
	    $("#submitContact").click(function(){
	    
	    	var error = 0;
			var checkArray = new Array();
			
			checkArray['f1_firstName'] = /\S{2,100}/;
			checkArray['f1_lastName'] = /\S{2,100}/;
			checkArray['f1_email'] = /^(\w|[-.,]){2,}@((\w|[-.,]){3,}[.]?){1,30}([.][a-z]{2,4})$/;
    	
			jQuery.each($("#endconsumerForm .inputText"), function() {
		    	if($(this).hasClass("required") && (!checkArray[$(this).attr("id")].test($(this).val()) || $(this).val() == form_element[$(this).attr("id")])){
		    		$(this).addClass("error");
		    		error = 1;
		    	}else{
		    		$(this).removeClass("error");
		    	}
			});	    
			
			if($('#f1_country').val()=="")
			{
				$('#f1_country_input').css({border:"solid 1px #FF3333", color:"#FF3333", background:"url(http://www.northkites.com/public/content/images/selectBgError.gif) left top"});
		    		error = 1;				
			}else{
				$('#f1_country_input').css({border:"solid 1px #373737", color:"#FFFFFF", background:"url(http://www.northkites.com/public/content/images/selectBg.gif) left top"});
			}	
			
			if($('#f1_distributor').val()=="")
			{
				$('#f1_distributor_input').css({border:"solid 1px #FF3333", color:"#FF3333", background:"url(http://www.northkites.com/public/content/images/selectBgError.gif) left top"});
		    		error = 1;				
			}else{
				$('#f1_distributor_input').css({border:"solid 1px #373737", color:"#FFFFFF", background:"url(http://www.northkites.com/public/content/images/selectBg.gif) left top"});
			}	
								
			
			if(error)
				$("#formContactError").css({visibility:"visible"});
			else{
				$("#formContactError").css({visibility:"hidden"});
				if(submit == 0){
					$("#endconsumerForm").submit(function() {
				      if(submit == 0) return true;
				      else return false;
				    });
				    $("#endconsumerForm").submit();
				}
				submit++;											
			}
	    });
	    
	    	     
	    
	    $("#submitPress").click(function(){
	    
	    	var error = 0;
			var checkArray = new Array();
			
			checkArray['f2_firstName'] = /\S{2,100}/;
			checkArray['f2_lastName'] = /\S{2,100}/;
			checkArray['f2_email'] = /^(\w|[-.,]){2,}@((\w|[-.,]){3,}[.]?){1,30}([.][a-z]{2,4})$/;
			checkArray['f2_password'] = /\w{4,8}/;						
			checkArray['f2_jobTitle'] = /\S{2,100}/;
			checkArray['f2_medium'] = /\S{2,100}/;
			checkArray['f2_publication'] = /\S{2,100}/;
			checkArray['f2_editorialDepartment'] = /\S{2,100}/;
			checkArray['f2_street'] = /\S{2,100}/;
			checkArray['f2_city'] = /\S{2,100}/;
			checkArray['f2_zip'] = /\S{2,100}/;
			checkArray['f2_mobile'] = /\S{2,100}/;
			checkArray['f2_fax'] = /\S{2,100}/;

			
			jQuery.each($("#pressForm .inputText"), function() {
		    	if($(this).hasClass("required") && (!checkArray[$(this).attr("id")].test($(this).val()) || $(this).val() == form_element[$(this).attr("id")])){
		    		$(this).addClass("error");
		    		error = 1;
		    	}else{
		    		$(this).removeClass("error");
		    	}
			});	    
			
			if($('#f2_country').val()==0)
			{
				$('#f2_country_input').css({border:"solid 1px #FF3333", color:"#FF3333", background:"url(http://www.northkites.com/public/content/images/selectBgError.gif) left top"});
		    		error = 1;				
			}else{
				$('#f2_country_input').css({border:"solid 1px #373737", color:"#FFFFFF", background:"url(http://www.northkites.com/public/content/images/selectBg.gif) left top"});
			}				
			
			if(error)
				$("#formPressError").css({visibility:"visible"});
			else{
				$("#formPressError").css({visibility:"hidden"});
				if(submit == 0){
					$("#pressForm").submit(function() {
				      if(submit == 0) return true;
				      else return false;
				    });				
					$("#pressForm").submit();
				}
				submit++;															
			}
	    });	    
	    
	    $("#submitDealer").click(function(){
	    
	    	var error = 0;
			var checkArray = new Array();
			
			checkArray['f3_firstName'] = /\S{2,100}/;
			checkArray['f3_lastName'] = /\S{2,100}/;
			checkArray['f3_email'] = /^(\w|[-.,]){2,}@((\w|[-.,]){3,}[.]?){1,30}([.][a-z]{2,4})$/;
			checkArray['f3_password'] = /\w{4,8}/;			
			checkArray['f3_company'] = /\w{2,300}/;
			checkArray['f3_street'] = /\S{2,100}/;
			checkArray['f3_city'] = /\S{2,100}/;
			checkArray['f3_zip'] = /\S{2,100}/;
			checkArray['f3_phone'] = /\S{2,100}/;
			
			jQuery.each($("#dealerForm .inputText"), function() {
		    	if($(this).hasClass("required") && (!checkArray[$(this).attr("id")].test($(this).val()) || $(this).val() == form_element[$(this).attr("id")])){
		    		$(this).addClass("error");
		    		error = 1;
		    	}else{
		    		$(this).removeClass("error");
		    	}
			});	    
			
			if($('#f3_country').val()==0)
			{
				$('#f3_country_input').css({border:"solid 1px #FF3333", color:"#FF3333", background:"url(http://www.northkites.com/public/content/images/selectBgError.gif) left top"});
		    		error = 1;				
			}else{
				$('#f3_country_input').css({border:"solid 1px #373737", color:"#FFFFFF", background:"url(http://www.northkites.com/public/content/images/selectBg.gif) left top"});
			}				
			
			if(error){
				$("#formDealerError").css({visibility:"visible"});
			}else{
				$("#formDealerError").css({visibility:"hidden"});
				if(submit == 0){
					$("#dealerForm").submit(function() {
				      if(submit == 0) return true;
				      else return false;
				    });				
					$("#dealerForm").submit();				
				}
				submit++;							
			}
	    }); 	    	    
	    
	})
    

	function slideTechnologie(id){
		jQuery.each($(".openText"), function() {
			var tag_id = $(this).attr("id");	
			var name = tag_id.split('-');
			if(name[1]!=id){					
				$('#technologyBlock-'+name[1]).animate({backgroundColor:"#1A1A1A"});
				$(this).slideUp("slow", function(){	
					$('#arrow-'+name[1]).attr("src", function() { 
				    	$('#arrow-'+name[1]).removeClass("cl");
				        return "http://www.northkites.com/public/content/images/t_pif_down.png";				
			        });		
				});
	        }			
		});
		
		if($('#arrow-'+id).hasClass("cl")){
			$('#technologyBlock-'+id).animate({backgroundColor:"#1A1A1A"});
		}else{
			$('#technologyBlock-'+id).animate({backgroundColor:"#505050"});
			
			$('#Open-'+id).show();
			var h = $('#Open-'+id).height();
			$('#Open-'+id).hide();
			$('#Open-'+id).height(h);					
		}
	
		$('#Open-'+id).slideToggle("slow", function(){
			$('#arrow-'+id).attr("src", function() { 
				if($('#arrow-'+id).hasClass("cl")){
	          		$('#arrow-'+id).removeClass("cl");
	          		return "http://www.northkites.com/public/content/images/t_pif_down.png";				
				}else{
					if(!$('#arrow-'+id).hasClass("cl")) $('#arrow-'+id).addClass("cl");
    	      		return "http://www.northkites.com/public/content/images/t_pif_down2.png";
          		}
        	});
        	if(jQuery.browser.msie)   	
				$('#Open-'+id).css({marginTop:"2px"});	        	
    	
			if(jQuery.browser.msie && jQuery.browser.version<7){
				$('.textContent').removeClass("greyBg");
				$('.textContent').addClass("greyBg");
			} 				
    	});   	
	}	
	
	
	function slideFaq(id){		
		jQuery.each($(".faqHidden"), function() {
			var tag_id = $(this).attr("id");	
			var name = tag_id.split('-');
			if(name[1]!=id){			
				$('#textHidden-'+name[1]).slideUp("slow", function(){
					$('#faqRow-'+name[1]).removeClass("faqGray");
					$('#title-'+name[1]).removeClass("greenGeorgia12");		
					$('#closeHidden-'+name[1]).hide();					
					$('#arrow-'+name[1]).attr("src", function() { 
		          		$('#arrow-'+name[1]).removeClass("cl");
		          		return "http://www.northkites.com/public/content/images/pif_faq_down.png";				
		        	});	
				});
        	}			
		});	
		
		if($('#arrow-'+id).hasClass("cl")){
			$('#faqRow-'+id).toggleClass("faqGray");		
		}else{
			$('#faqRow-'+id).toggleClass("faqGray");
		
			$('#textHidden-'+id).show();
			var h = $('#textHidden-'+id).height();
			$('#textHidden-'+id).hide();
			$('#textHidden-'+id).height(h);				
		}	
		$('#textHidden-'+id).slideToggle("slow", function(){
			$('#title-'+id).toggleClass("greenGeorgia12");		
			$('#closeHidden-'+id).toggle();	
			$('#arrow-'+id).attr("src", function() { 
				if($('#arrow-'+id).hasClass("cl")){
	          		$('#arrow-'+id).removeClass("cl");
	          		return "http://www.northkites.com/public/content/images/pif_faq_down.png";				
				}else{
					if(!$('#arrow-'+id).hasClass("cl")) $('#arrow-'+id).addClass("cl");
    	      		return "http://www.northkites.com/public/content/images/pif_faq_up.png";
          		}
        	});  
        	if(jQuery.browser.msie)   	
				$('#textHidden-'+id).css({marginTop:"2px"});		
				
			if(jQuery.browser.msie && jQuery.browser.version<7){
				$('.textContent').removeClass("greyBg");
				$('.textContent').addClass("greyBg");
			} 									    
    	});
	}	
	
	function slideForm(id){
	
		$('.formHidden').hide();
		
		$(".inputText").removeClass("error");
		$(".selectbox").css({border:"solid 1px #373737", color:"#FFFFFF", background:"url(http://www.northkites.com/public/content/images/selectBg.gif) left top"});
		$("#formContactError, #formDealerError, #formPressError, #formPressContactError").css({visibility:"hidden"});
		
		$('#'+id).show();
  		if(jQuery.browser.msie)
  		{	
			jQuery.each($(".selectbox-wrapper"), function() {
				if($(this).height()>200)
					$(this).css({height:"200px"});
			});	
		}		
		if(jQuery.browser.msie && jQuery.browser.version<7){
			$('.textContent').removeClass("greyBg");
			$('.textContent').addClass("greyBg");
		}
	}	