<!--
function detectVersion()
{
version = parseInt(navigator.appVersion);
return version;
}
function detectOS() {
if(navigator.userAgent.indexOf('Win') == -1) {
OS = 'Macintosh';
} else {
OS = 'Windows';
}
return OS;
}
function detectBrowser(){
if(navigator.appName.indexOf('Netscape') == -1) {
browser = 'IE';
} else {
browser = 'Netscape';
}
return browser;
}


function FullScreen(){ 
var adjWidth;
var adjHeight;

if((detectOS() == 'Macintosh') && (detectBrowser() == 'Netscape')){
adjWidth = 20;
adjHeight = 35;
}
if((detectOS() == 'Macintosh') && (detectBrowser() == 'IE')) 
          {
adjWidth = 20;
adjHeight = 35;
winOptions = 'fullscreen=yes';
}
if((detectOS() == 'Windows') && (detectBrowser() == 'Netscape')) 
          {
adjWidth = 0;
adjHeight = 0;
}
if(detectVersion() < 4) {
self.location.href = 'http://www.lasultanamarrakech.com/index2.php';
} else {
var winWidth = screen.availWidth - adjWidth;
var winHeight = screen.availHeight - adjHeight;
var winSize = 'width=' + winWidth + ',height=' + winHeight;
var thewindow = window.open('http://www.lasultanamarrakech.com/index2.php', 'WindowName', winSize);
thewindow.moveTo(0,0);
}
}

function FullScreen2(){ 
var adjWidth;
var adjHeight;

if((detectOS() == 'Macintosh') && (detectBrowser() == 'Netscape')){
adjWidth = 20;
adjHeight = 35;
}
if((detectOS() == 'Macintosh') && (detectBrowser() == 'IE')) 
          {
adjWidth = 20;
adjHeight = 35;
winOptions = 'fullscreen=yes';
}
if((detectOS() == 'Windows') && (detectBrowser() == 'Netscape')) 
          {
adjWidth = 0;
adjHeight = 0;
}
if(detectVersion() < 4) {
self.location.href = 'http://www.lasultanamarrakech.com/reservation-hotel-marrakech.php';
} else {
var winWidth = screen.availWidth - adjWidth;
var winHeight = screen.availHeight - adjHeight;
var winSize = 'width=' + winWidth + ',height=' + winHeight;
var thewindow = window.open('http://www.lasultanamarrakech.com/reservation-hotel-marrakech.php', 'WindowName', winSize);
thewindow.moveTo(0,0);
}
}



function FullScreen3(){ 
var adjWidth;
var adjHeight;

if((detectOS() == 'Macintosh') && (detectBrowser() == 'Netscape')){
adjWidth = 20;
adjHeight = 35;
}
if((detectOS() == 'Macintosh') && (detectBrowser() == 'IE')) 
          {
adjWidth = 20;
adjHeight = 35;
winOptions = 'fullscreen=yes';
}
if((detectOS() == 'Windows') && (detectBrowser() == 'Netscape')) 
          {
adjWidth = 0;
adjHeight = 0;
}
if(detectVersion() < 4) {
self.location.href = 'http://www.lasultanamarrakech.com/popup/popup.php?id_popup=10';
} else {
var winWidth = screen.availWidth - adjWidth;
var winHeight = screen.availHeight - adjHeight;
var winSize = 'width=' + winWidth + ',height=' + winHeight;
var thewindow = window.open('http://www.lasultanamarrakech.com/popup/popup.php?id_popup=10', 'WindowName', winSize);
thewindow.moveTo(0,0);
}
}



function FullScreen4(){ 
var adjWidth;
var adjHeight;

if((detectOS() == 'Macintosh') && (detectBrowser() == 'Netscape')){
adjWidth = 20;
adjHeight = 35;
}
if((detectOS() == 'Macintosh') && (detectBrowser() == 'IE')) 
          {
adjWidth = 20;
adjHeight = 35;
winOptions = 'fullscreen=yes';
}
if((detectOS() == 'Windows') && (detectBrowser() == 'Netscape')) 
          {
adjWidth = 0;
adjHeight = 0;
}
if(detectVersion() < 4) {
self.location.href = 'http://www.lasultanamarrakech.com/contact-hotel-marrakech.php';
} else {
var winWidth = screen.availWidth - adjWidth;
var winHeight = screen.availHeight - adjHeight;
var winSize = 'width=' + winWidth + ',height=' + winHeight;
var thewindow = window.open('http://www.lasultanamarrakech.com/contact-hotel-marrakech.php', 'WindowName', winSize);
thewindow.moveTo(0,0);
}
}

function FullScreen5(){ 
var adjWidth;
var adjHeight;

if((detectOS() == 'Macintosh') && (detectBrowser() == 'Netscape')){
adjWidth = 20;
adjHeight = 35;
}
if((detectOS() == 'Macintosh') && (detectBrowser() == 'IE')) 
          {
adjWidth = 20;
adjHeight = 35;
winOptions = 'fullscreen=yes';
}
if((detectOS() == 'Windows') && (detectBrowser() == 'Netscape')) 
          {
adjWidth = 0;
adjHeight = 0;
}
if(detectVersion() < 4) {
self.location.href = 'http://www.lasultanaoualidia.com/index2.php';
} else {
var winWidth = screen.availWidth - adjWidth;
var winHeight = screen.availHeight - adjHeight;
var winSize = 'width=' + winWidth + ',height=' + winHeight;
var thewindow = window.open('http://www.lasultanaoualidia.com/index2.php', 'WindowName', winSize);
thewindow.moveTo(0,0);
}
}

function MakeItSo(){
if((detectOS() == 'Windows') && (detectBrowser() == 'IE')) {
window.open('http://www.lasultanamarrakech.com/index2.php','windowname','fullscreen=yes','scrollbar=no');
} else {
onload=FullScreen();
}
}
function MakeItSo2(){
if((detectOS() == 'Windows') && (detectBrowser() == 'IE')) {
window.open('http://www.lasultanamarrakech.com/reservation-hotel-marrakech.php','windowname','fullscreen=yes','scrollbar=no');
} else {
onload=FullScreen2();
}
}
function MakeItSo3(){
if((detectOS() == 'Windows') && (detectBrowser() == 'IE')) {
window.open('http://www.lasultanamarrakech.com/popup/popup.php?id_popup=10','windowname','fullscreen=yes','scrollbar=no');
} else {
onload=FullScreen3();
}
}
function MakeItSo4(){
if((detectOS() == 'Windows') && (detectBrowser() == 'IE')) {
window.open('http://www.lasultanamarrakech.com/contact-hotel-marrakech.php','windowname','fullscreen=yes','scrollbar=no');
} else {
onload=FullScreen4();
}
}
// -->
function MakeItSo5(){
if((detectOS() == 'Windows') && (detectBrowser() == 'IE')) {
window.open('http://www.lasultanaoualidia.com/index2.php','windowname','fullscreen=yes','scrollbar=no');
} else {
onload=FullScreen5();
}
}
