function html5Tags(){
	document.createElement('header');  
	document.createElement('section');  
	document.createElement('nav');  
	document.createElement('footer');  
	document.createElement('menu');  
	document.createElement('hgroup');  
	document.createElement('article');  
	document.createElement('aside');  
	document.createElement('details'); 
	document.createElement('figure');
	document.createElement('time');
	document.createElement('mark');
}

html5Tags();

	
var DrDirect;


jQuery(document).ready(function($){

	DrDirect = {
		
		common : {
			commonLoad : function(){
				$('body').append('<div class="overlay"></div>');
				$('body').append('<div class="modal_wrapper"></div>');
				$('.overlay').css('opacity', 0.6);
				
				/*$('.getDirection').live('click',function(){ 				
					$.ajax({
						url:'modalDirections.html',
						success:function(loadContent){
							$('.modal_wrapper').html(loadContent);
							$('.modal_wrapper, .overlay').fadeIn(1000);
							$('html,body').stop().animate({scrollTop: 0},{queue: false, duration:1000, easing:'easeOutExpo'});
						}
					});
				});*/
				
				
				
			},
			
			modalClose : function(){
				$('.close').live('click', function(){
					$('.modal_wrapper, .overlay, .overlaySign').fadeOut(1000);
					$('.openerVideo, .modalFrame object').hide();
					Join=1;
				});
			},
						
			commonInput : function(){
				
				var $inputText = $('.queryInput input, .queryInput textarea');
				$inputText.each(function(){
					if(!$(this).val()){
						$(this).parent().find('label').show();
					}else{
						$(this).parent().find('label').hide();
					}
				});
				$inputText.focus(function(){
					if(!$(this).val()){
						$(this).parent().find('label').addClass('showLab');
					}else{
						$(this).parent().find('label').hide();
					}
				});
				$inputText.keydown(function(){
					if(!$(this).val()){
						$(this).parent().find('label').hide();
					}
				});
				$inputText.blur(function(){
					if(!$(this).val()){
						$(this).parent().find('label').show().removeClass('showLab');
						$(this).parent().css({backgroundPosition:'0 0'});
					}else{
						$(this).parent().find('label').hide();
					}
				});
				
			},
			
			commonSelect : function(){
				var $selectText = $('.bgSelect input');
				var $selectLi = $('.bgSelect li');
				var selectval;
				var Drop=0;
				
				$('body').click(function(){
					if(Drop==1){
						$('.bgSelect ul').hide();
						Drop=0;			
					}
				});
				$selectText.click(function(){
					$('.bgSelect ul').hide();
					Drop=0;							  
					if(Drop==0){					  
						$(this).parent().find('ul').slideDown();
					}
					setTimeout(function(){
						 Drop=1;				
					},50);
				});
				$selectLi.click(function(){
					Drop = 1;					
					selectval = $(this).text();
					$(this).parent().parent().find('input').val(selectval);
				});
			}
			
		}//end commonLoad
			
	};
	
	
	DrDirect.common.commonLoad();
	DrDirect.common.commonInput();
	DrDirect.common.commonSelect();
	DrDirect.common.modalClose();

});
