$(window).load(function(){
	
	fixHeights();
	
});
	
function fixHeights(){
	
	var newheight = $('#regular-content').height()+190;
	405
	$('#full_wrapper').css('min-height',newheight);	
	$('#full_wrapper').css('_height',newheight);
	$('#wrapper').css('min-height',newheight);
	$('#wrapper').css('_height',newheight);
	$('#submenu-bg').css('min-height',newheight);
	$('#submenu-bg').css('_height',newheight);
	
}

function onBlur(el) {
	if(el.value =='') {
		el.value= el.defaultValue;
		}
}
function onFocus(el) {
	if(el.value == el.defaultValue) {
		el.value= '';
		}
}

function change_lang(lang){
	
	var doc = document;

	$.post('ajax/language.php',{lang: lang},function(data){

		doc.location = data;
		
	});
	
}

$(window).load(function(){

	if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i))){	
		
		function fixPos(){
			
			$('#bottom_fixed').css({position: 'absolute', top: ($(document).height()-36)+'px'});
		
		}
		fixPos();
		window.onorientationchange = fixPos;
		
	}
	
});
