$(document).ready(function(){	$('img[align="left"]').addClass('imgLft');	$('img[align="right"]').addClass('imgRgt');		$('a[target="_blank"]').addClass('blank');	$('a.blank').attr('target', '_blank');		validTarget("a.blank");	$(document).click(function(e){		$('.fltrTp li.opnLi').children('.subOut').slideUp(100);			      $('.fltrTp a.opn').removeClass('opn');		$('.fltrTp li.opnLi').removeClass('opnLi');				if ( $(e.target).parents('.sysSel').length == 0 )		{		      $('.sysSel.opn').removeClass('opn');		}				return true;	});		// subnavigation	$('.fltrTp ul li a').not('.fltrTp ul ul li a').click(function(){		$('.fltrTp a.opn').removeClass('opn');				if($(this).parents('li').hasClass('opnLi')){			$(this).removeClass('opn');			$(this).parents('li').removeClass('opnLi');			$(this).parents('li').children('.subOut').slideUp(100);					} else {			$(this).addClass('opn');			$('.fltrTp li.opnLi').children('.subOut').slideUp(100);			$('.fltrTp li.opnLi').removeClass('opnLi');			$(this).parents('li').addClass('opnLi');			$(this).parents('li').children('.subOut').slideDown(100);		}				return false;	});		// select	$('.select').click(function(){		$('.select.selectOpn').removeClass('selectOpn');		$('.subSel.subSelectOpn').removeClass('subSelectOpn');				if(!$(this).hasClass('selectOpn')){			$(this).addClass('selectOpn');			$(this).children('.subSel').addClass('subSelectOpn');		}	});		$('.select .lctLst a').click(function(){		$('.select.selectOpn').removeClass('selectOpn');		$('.subSel.subSelectOpn').removeClass('subSelectOpn');				//$('.lctLst a.active').removeClass('active');		//$(this).addClass('active');				$(this).parents('.select').children('input').attr('value', $(this).text());				return false;	});	$('.subSel .clsSel').click(function(){		$(this).parents('.select').removeClass('selectOpn');		$(this).parents('.select').children('.subSel').removeClass('subSelectOpn');		return false;	});		// system select	$('.sysSelInpt').click(function(){		$(this).parent('.sysSel').addClass('opn');		$(this).parent('.sysSel').children('ul').css('width', $(this).width() + 30 + 'px');		return true;	});		$('.sysSel ul a').click(function(){		$('.sysSel').removeClass('opn');		$('.sysSel a.active').removeClass('active');		$(this).addClass('active');				$(this).parents('.sysSel').children('.sysSelInpt').children('.sysVal').text($(this).text());				return true;	});		// tooltip	$('.infoBx a.btn').click(function(){		$('.infoPop.opnPop').removeClass('opnPop');		$(this).parent('.infoBx').children('.infoPop').addClass('opnPop');				return false;	});		$('.infoBx .clsSel').click(function(){		$(this).parents('.infoPop').removeClass('opnPop');		return false;	});		// tabs	$('.tabNav a').click(function(){		var active_tab = $(this).attr('href')				$('.tabNav a').removeClass('active');		$(this).addClass('active');				$('.tabCon div').each(function(){			if(('#' + $(this).attr('id'))==active_tab){				$(this).addClass('show');			} else {				$(this).removeClass('show');			}		});			return false;      });			$("input").focus(function(){ $(this).addClass('write'); if (this.value==this.title){ this.value=''; } });	$("input").blur(function(){ $(this).removeClass('write'); if (this.value!=this.title){ $(this).addClass('write'); } if (this.value==''){ this.value=this.title; $(this).removeClass('write'); } });		$("textarea").focus(function(){ $(this).addClass('write'); if (this.value==this.title){ this.value=''; } });	$("textarea").blur(function(){ $(this).removeClass('write'); if (this.value!=this.title){ $(this).addClass('write'); } if (this.value==''){ this.value=this.title; $(this).removeClass('write'); } });		// messages	message();});function message() {	$('.msgBx').slideDown();	setTimeout(function(){	      $('.msgBx').slideUp();	      return true;	},5000); 	}function validTarget(handler) {	$(handler).click(function(){		window.open(this.href);		return false;	});}
