/* -----------------------------------------------------------------------
     _    _ _     _                 _    _                                
    / \  | | | __| |_ __  _ __  ___| | _(_)_ __  ___   ___ ___  _ __ ___  
   / _ \ | | |/ _` | '_ \| '_ \/ __| |/ / | '_ \/ __| / __/ _ \| '_ ` _ \ 
  / ___ \| | | (_| | | | | | | \__ \   <| | | | \__ \| (_| (_) | | | | | |
 /_/   \_\_|_|\__,_|_| |_|_| |_|___/_|\_\_|_| |_|___(_)___\___/|_| |_| |_|

 Contact Information: contact@alldnnskins.com
 Copyright by Alldnnskins.com. All Rights Reserved

----------------------------------------------------------------------- */

function notLatin() {
	var html_ele = document.getElementsByTagName("html")[0];
	if (!html_ele.getAttribute("lang")) return false;
	var not_latin = ",ar-sa,ar-eg,ar-dz,ar-tn,ar-ye,ar-jo,ar-kw,ar-bh,ar-iq,ar-ly,ar-ma,ar-om,ar-sy,ar-lb,ar-ae,ar-qa,ji,uk,ur,th,bg,be,zh-tw,zh-cn,zh-sg,zh-hk,fa,el,hi,he,ja,ja-jp,mk,ru,ru-mo,sb,";
	if (not_latin.toLowerCase().indexOf("," + html_ele.getAttribute("lang").toLowerCase() + ",") != -1) {
		html_ele.className += " not-latin";
	}
}

notLatin();

function heightAdaptive() {
	var window_height = jQuery(window).height();
	if (jQuery.browser.msie & jQuery.browser.version == 6.0) {
		jQuery("#allPane").height("auto");
	} else {
		jQuery("#allPane").css("min-height",0);
	}
	var wrap_height = jQuery(".wrapper").height();
	if ((window_height - 67) <= wrap_height) return false;
	var min_height = window_height - 399;
	if (jQuery.browser.msie & jQuery.browser.version == 6.0) {
		jQuery("#allPane").height(min_height);
	} else {
		jQuery("#allPane").css("min-height",min_height);
	}
}

window.onload = function() {
	window.onresize = function() {
		heightAdaptive();
	}
}

