
ua = navigator.userAgent.toLowerCase(); 
isIE = ((ua.indexOf("msie") != -1) );
isIE6 = ((ua.indexOf("msie 6.0") != -1) );
isIE7 = ((ua.indexOf("msie 7.0") != -1) );
isOPERA = ((ua.indexOf("opera") != -1) );
isFF = ((ua.indexOf("firefox") != -1) );
isSafari = ((ua.indexOf("safari") != -1) );

$(document).ready(function(){

if(isIE6)
  {
  DD_belatedPNG.fix('img, #logo, #left ul.nav a'); 
  }   

});

//-----------------------------------------------
function debug(txt)
{
try {
	console.debug(txt);
	}
catch(e){}
}
//-----------------------------------------------
function Faqobj(formid)
{
var mainform=$('#'+formid);
var self=this;	
var duration=300;

$(mainform).find('h2 a').click( function(event)
	{
	event.preventDefault();

	$(mainform).find('.text').animate(
			{
			opacity : 'hide',
			height : 'hide'	
			}, duration);
	
	$(mainform).find('h2 a').removeClass('up');
	
	var itemobj=$(this).parents('.item');
	var textobj=$(itemobj).find('.text');
	
	if( $(textobj).is(':hidden') )
		{	
		$(textobj).animate(
			{
			opacity : 'show',
			height : 'show'	
			}, duration);
		
		$(itemobj).find('h2 a').addClass('up');
		}
	
	});

//END;
}
//-----------------------------------------------
function inputclickhandler(formid)
{
var mainform=('#'+formid);

if( $(mainform).length == 0 ) return;

$(mainform).find('input[type=text][title]').bind('focus', function(event)
  {    
  var title=$(this).attr('title');  
  if( $(this).val() == title ) $(this).val('');
  });
  
$(mainform).find('input[type=text][title]').bind('blur', function(event)
  {    
  var title=$(this).attr('title');  
  if( $(this).val() == '' ) $(this).val(title) ;
  });  
}