//Detecção do navegador
function Is() {
    var agent = navigator.userAgent.toLowerCase();
    this.major = parseInt(navigator.appVersion);
    this.minor = parseFloat(navigator.appVersion);
    this.ns  = ((agent.indexOf('mozilla')!=-1) && ((agent.indexOf('spoofer')==-1) && (agent.indexOf('compatible') == -1) && (agent.indexOf('firefox') == -1) && (agent.indexOf('chrome') == -1)));
    this.ns2 = (this.ns && (this.major == 3));
    this.ns3 = (this.ns && (this.major == 3));
    this.ns4 = (this.ns && (this.major >= 4));
    this.ns406 = (this.ns && (this.minor == 4.06));
    this.ns407 = (this.ns && (this.minor == 4.07));
    this.ns408 = (this.ns && (this.minor == 4.08));
    this.ns45 = (this.ns && (this.minor == 4.5));
    this.ns6 = (this.ns && (this.major >= 5));
    this.ie   = (agent.indexOf("msie") != -1 || agent.indexOf('firefox') != -1 || agent.indexOf('chrome') != -1);
    this.ie3  = (this.ie && (this.major == 2));
    this.ie4  = (this.ie && (this.major >= 4));    
	this.ie5  = (this.ie4 && (navigator.appVersion.indexOf('MSIE 4')==-1));
	this.ie6  = (this.ie5 && (navigator.appVersion.indexOf('MSIE 5')==-1));
	this.ie7  = (this.ie6 && (navigator.appVersion.indexOf('MSIE 6')==-1));
    this.fox = (agent.indexOf("firefox") != -1 || agent.indexOf("chrome") != -1);
	this.chr = (agent.indexOf("chrome") != -1);
	this.op3 = (agent.indexOf("opera") != -1);
	this.mac = (navigator.appVersion.indexOf("Mac")!=-1);
}

var is = new Is()

//Fim da Detecção do navegador

//Desabilita uso de Paginas Fora do Frame
if(!parent.frames[0]){
	if ((!is.ns4 && !is.ie4) || is.mac) {
			self.location.href="http://torpedovip.com"
	}
	else {	
	    if (top == self) {
		  self.location.href="http://torpedovip.com"
          location.replace("http://torpedovip.com/frame.php?pag="+self.location);
		}
		else {
		  self.location.href="http://torpedovip.com"
		}	
	}	
}
//Fim - Desabilita uso de Paginas...

//Desabilita botao direito

var message = ""; 

function rtclickcheck(keyp){
 if (navigator.appName == "Netscape" && keyp.which == 3){
 	alert(message);
	return false;
 } 
 if (navigator.appVersion.indexOf("MSIE") != -1 && event.button == 2) {
 	//alert(message);
	return false; 
 }
} 

document.onmousedown = rtclickcheck;
	
IE4plus = (document.all) ? true : false;
NS4 = (document.layers) ? true : false;

function clickIE()
{
    return false;
}

function clickNS(e)
{
	if (e.which==2 || e.which==3) 
     {
       return false;
     }
}
if (!IE4plus) 
{
   document.captureEvents(Event.MOUSEDOWN || Event.MOUSEUP);
   document.onmousedown=clickNS;
   document.onmouseup= clickNS;
   document.oncontextmenu=clickIE; // For NS 6+
} 
else 
{
   document.onmouseup= clickIE;
   document.oncontextmenu=clickIE;
}
//Fim - Desabilita botao direito

