// JavaScript Document

var strQs = "";

if(top == self){
	strQs = location.search;
	strDir = location.pathname;
	if(strQs == ""){
		strQs = "?";
	}
	else{
		strQs += "&";
	}
	
	top.location.href = "http://www.fipe.org.br/web/index.asp"+strQs+'aspx='+strDir;
	
}

var browser   = navigator.appName;
var b_version = navigator.appVersion;

if(browser.indexOf("Microsoft Internet Explorer") > -1){
	var arrVersion = b_version.split(";");
	var i;
	var version = 0;	 
	var strVersion;
	
	if(arrVersion.length > 0){
		for(i=0; i < arrVersion.length; i++){
			strVersion = arrVersion[i];
			if(strVersion.indexOf("MSIE") > -1){
				strVersion = strVersion.replace("MSIE", "");
				version = parseFloat(strVersion);
				i = arrVersion.length;
			}
		}
	}

	if(version < 7){
		document.write("<style type=\"text/css\">\n");
		document.write("#menu { _position:absolute; top:25; _top:expression(eval(document.body.scrollTop));}\n");
		document.write("</style>\n");
	}
}

browser   = null;
b_version = null;
version   = null; 
strQs     = null;