/***********************************************
* Scripts for fincalaraya.com
***********************************************/

//cancel-window, pdf-window
function openwindow (url) {
 fenster = window.open(url, "fenster1", "width=464,height=270,left=180,top=100,status=yes,scrollbars=yes,resizable=yes");
 fenster.focus();
}

//open BestBuy
function OpenBestbuy (url) {
 fenster = window.open(url, "fenster2", "width=460,height=280,left=180,top=100,status=yes,scrollbars=yes,resizable=yes");
 fenster.focus();
}

//Browserweiche: BG-attachment fixed oder scroll
//historia.htm =1
function check1 (){
function checkBrowserName(name){
var agent = navigator.userAgent.toLowerCase();
if (agent.indexOf(name.toLowerCase())>-1) {
return true;
}
return false;
}

if (checkBrowserName('MSIE')){window.location.href='historia2.htm';}
else{window.location.href='historia.htm';}
}

//hotel.htm =2
function check2 (){
function checkBrowserName(name){
var agent = navigator.userAgent.toLowerCase();
if (agent.indexOf(name.toLowerCase())>-1) {
return true;
}
return false;
}

if (checkBrowserName('MSIE')){window.location.href='hotelb.htm';}
else{window.location.href='hotel.htm';}
}

//habit.htm =3
function check3 (){
function checkBrowserName(name){
var agent = navigator.userAgent.toLowerCase();
if (agent.indexOf(name.toLowerCase())>-1) {
return true;
}
return false;
}

if (checkBrowserName('MSIE')){window.location.href='habitb.htm';}
else{window.location.href='habit.htm';}
}

//comedor.htm =4
function check4 (){
function checkBrowserName(name){
var agent = navigator.userAgent.toLowerCase();
if (agent.indexOf(name.toLowerCase())>-1) {
return true;
}
return false;
}

if (checkBrowserName('MSIE')){window.location.href='comedorb.htm';}
else{window.location.href='comedor.htm';}
}

//ubic.htm =5
function check5 (){
function checkBrowserName(name){
var agent = navigator.userAgent.toLowerCase();
if (agent.indexOf(name.toLowerCase())>-1) {
return true;
}
return false;
}

if (checkBrowserName('MSIE')){window.location.href='ubicb.htm';}
else{window.location.href='ubic.htm';}
}

//habit.htm =6
function check6 (){
function checkBrowserName(name){
var agent = navigator.userAgent.toLowerCase();
if (agent.indexOf(name.toLowerCase())>-1) {
return true;
}
return false;
}

if (checkBrowserName('MSIE')){window.location.href='habitb.htm';}
else{window.location.href='habit.htm';}
}

//
function checkbuform() {

function checkBrowserName(name){
var agent = navigator.userAgent.toLowerCase();
if (agent.indexOf(name.toLowerCase())>-1) {
return true;
}
return false;
}

if(checkBrowserName('MSIE')){
url="reservar_1b.htm";
parent.location.href=url;
}

else if(checkBrowserName('opera')){
url="reservar_1.htm";
parent.location.href=url;
}

else if(checkBrowserName('safari')){
url="reservar_1.htm";
parent.location.href=url;
}

else if(checkBrowserName('firefox')){
url="reservar_1.htm";
parent.location.href=url;
}

else (url="reservar_1.htm");
parent.location.href=url;

}

