// JavaScript Document

 $jq(document).ready(function(){						
	
	//To deal w/Google Translate iFrame laying over the top nav
	function checkTransDiv(timeElapsed, elm){
		elemFound = 0;
		if (window.location.hash.indexOf('googtrans/')>-1 && elm != 'iframe') {
			elm = 'hash';
			elemFound = 1;
		} else if ($jq("div.skiptranslate iframe").parent().length) {
			elm = 'iframe';
			elemFound = 1;
		}
		if (elemFound == 0 && timeElapsed < 10000) {
			setTimeout(function() {
				checkTransDiv(timeElapsed + 200, elm);
			}, 200);
		} else if (timeElapsed >= 10000) {
			//alert('timed out');
		} else {
			if (elm == 'iframe') {
				$jq("body").css("background-position","0 60px");
				$jq('div.skiptranslate iframe').parent().mouseout(function() {
					if ($jq("div.skiptranslate iframe").parent().css("display") == 'none'){
						$jq("body").css("background-position","0 20px");
					}
				});
			} else {
				checkTransDiv(0, 'iframe');
			}
		}
	}
	checkTransDiv(0, '');
});
