jsFileName = 'ShowcaseSetup.js';
var showcaseCurrencyId=DefaultCurrency;
var imageMaxWidth="120px",imageMaxHeight="100px";
var imageBorderWidth="1px";
var imageMargin="2px";
var textMaxWidth="110px";
var textBorderWidth="1px";
var textMargin="2px";
var priceRepresentation="PricePerRoom";
var textPosition="bottom";
var ShowcaseWidth=4;
var ShowcaseHeight=2;
var Showcase;
function SetupShowcase(){
var _1=new ShowcaseElement();
_1.destinationCountry=5;
_1.departureDateFromNowCount=1;
_1.departureDateCount=14;
_1.departureCity=505;
_1.adult=2;
_1.child=0;
_1.positionCount=4;
_1.hideToursWithoutFlights=true;
_1.filtrateIdenticalHotels=true;
_1.destinationCities=[];
_1.stars=[];
_1.nightsFrom=7;
_1.nightsTo=15;
_1.currency=4;
_1.priceFrom=10000;
_1.priceTo=100000;
var _2=new ShowcaseElement();
_2.destinationCountry=3;
_2.departureDateFromNowCount=0;
_2.departureDateCount=20;
_2.hideToursWithoutFlights=true;
_2.filtrateIdenticalHotels=true;
_2.departureCity=505;
_2.destinationCities=[];
_2.adult=2;
_2.child=0;
_2.positionCount=4;
_2.nightsFrom=7;
_2.nightsTo=15;
_2.stars=[];
_2.currency=4;
_2.priceFrom=10000;
_2.priceTo=150000;
Showcase=[_1,_2];
var _3=dictionary.columns_sm,_4=dictionary.rows_sm;
if(_3!=null&&_4!=null){
ShowcaseWidth=_3;
ShowcaseHeight=_4;
}
var _5=dictionary.textPosition_sm;
if(_5!=null){
textPosition=_5;
}
var _6;
if(textPosition!="bottom"){
_6=document.getElementById("showcaseImageDiv");
if(_6!=null){
_6.style.width=imageMaxWidth;
_6.style.borderWidth=imageBorderWidth;
_6.style.margin=imageMargin;
}
_6=document.getElementById("showcaseTextDiv");
if(_6!=null){
_6.style.width=textMaxWidth;
_6.style.borderWidth=textBorderWidth;
_6.style.margin=textMargin;
}
_6=document.getElementById("Tour");
if(_6!=null){
var _7=strToInt(imageMaxWidth)+strToInt(textMaxWidth)+(strToInt(imageBorderWidth)+strToInt(imageMargin)+strToInt(textBorderWidth)+strToInt(textMargin))*2;
_6.style.pixelWidth=_7;
_6.style.width=_7+"px";
}
}else{
_6=document.getElementById("showcaseImageDiv");
if(_6!=null){
_6.style.width=imageMaxWidth;
_6.style.borderWidth=imageBorderWidth;
_6.style.margin=imageMargin;
}
_6=document.getElementById("showcaseTextDiv");
if(_6!=null){
_6.style.width=imageMaxWidth;
_6.style.borderWidth=textBorderWidth;
_6.style.margin=textMargin;
}
_6=document.getElementById("Tour");
if(_6!=null){
var _7=strToInt(imageMaxWidth)+(strToInt(imageBorderWidth)+strToInt(imageMargin))*2;
_6.style.pixelWidth=_7;
_6.style.width=_7+"px";
}
}
GetShowcase();
};
function SetupShowcase_Turkey(){
var _8=new ShowcaseElement();
_8.destinationCountry=5;
_8.departureDateFromNowCount=2;
_8.departureDateCount=20;
_8.departureCity=505;
_8.adult=2;
_8.child=0;
_8.positionCount=4;
_8.hideToursWithoutFlights=true;
_8.filtrateIdenticalHotels=true;
_8.destinationCities=[];
_8.stars=[];
_8.nightsFrom=7;
_8.nightsTo=15;
_8.currency=4;
_8.priceFrom=10000;
_8.priceTo=57000;
Showcase=[_8];
var _9=dictionary.columns_sm,_a=dictionary.rows_sm;
if(_9!=null&&_a!=null){
ShowcaseWidth=_9;
ShowcaseHeight=_a;
}
var _b=dictionary.textPosition_sm;
if(_b!=null){
textPosition=_b;
}
var _c;
if(textPosition!="bottom"){
_c=document.getElementById("showcaseImageDiv");
if(_c!=null){
_c.style.width=imageMaxWidth;
_c.style.borderWidth=imageBorderWidth;
_c.style.margin=imageMargin;
}
_c=document.getElementById("showcaseTextDiv");
if(_c!=null){
_c.style.width=textMaxWidth;
_c.style.borderWidth=textBorderWidth;
_c.style.margin=textMargin;
}
_c=document.getElementById("Tour");
if(_c!=null){
var _d=strToInt(imageMaxWidth)+strToInt(textMaxWidth)+(strToInt(imageBorderWidth)+strToInt(imageMargin)+strToInt(textBorderWidth)+strToInt(textMargin))*2;
_c.style.pixelWidth=_d;
_c.style.width=_d+"px";
}
}else{
_c=document.getElementById("showcaseImageDiv");
if(_c!=null){
_c.style.width=imageMaxWidth;
_c.style.borderWidth=imageBorderWidth;
_c.style.margin=imageMargin;
}
_c=document.getElementById("showcaseTextDiv");
if(_c!=null){
_c.style.width=imageMaxWidth;
_c.style.borderWidth=textBorderWidth;
_c.style.margin=textMargin;
}
_c=document.getElementById("Tour");
if(_c!=null){
var _d=strToInt(imageMaxWidth)+(strToInt(imageBorderWidth)+strToInt(imageMargin))*2;
_c.style.pixelWidth=_d;
_c.style.width=_d+"px";
}
}
GetShowcase();
};
function SetupShowcase_Turkey_hot(){
var _8=new ShowcaseElement();
_8.destinationCountry=5;
_8.departureDateFromNowCount=1;
_8.departureDateCount=20;
_8.departureCity=505;
_8.adult=2;
_8.child=0;
_8.positionCount=20;
_8.hideToursWithoutFlights=true;
_8.filtrateIdenticalHotels=true;
_8.destinationCities=[];
_8.stars=[];
_8.nightsFrom=5;
_8.nightsTo=15;
_8.currency=4;
_8.priceFrom=1000;
_8.priceTo=57000;
Showcase=[_8];
ShowcaseWidth=4
ShowcaseHeight=5
var _9=dictionary.columns_sm,_a=dictionary.rows_sm;
if(_9!=null&&_a!=null){
ShowcaseWidth=_9;
ShowcaseHeight=_a;
}
var _b=dictionary.textPosition_sm;
if(_b!=null){
textPosition=_b;
}
var _c;
if(textPosition!="bottom"){
_c=document.getElementById("showcaseImageDiv");
if(_c!=null){
_c.style.width=imageMaxWidth;
_c.style.borderWidth=imageBorderWidth;
_c.style.margin=imageMargin;
}
_c=document.getElementById("showcaseTextDiv");
if(_c!=null){
_c.style.width=textMaxWidth;
_c.style.borderWidth=textBorderWidth;
_c.style.margin=textMargin;
}
_c=document.getElementById("Tour");
if(_c!=null){
var _d=strToInt(imageMaxWidth)+strToInt(textMaxWidth)+(strToInt(imageBorderWidth)+strToInt(imageMargin)+strToInt(textBorderWidth)+strToInt(textMargin))*2;
_c.style.pixelWidth=_d;
_c.style.width=_d+"px";
}
}else{
_c=document.getElementById("showcaseImageDiv");
if(_c!=null){
_c.style.width=imageMaxWidth;
_c.style.borderWidth=imageBorderWidth;
_c.style.margin=imageMargin;
}
_c=document.getElementById("showcaseTextDiv");
if(_c!=null){
_c.style.width=imageMaxWidth;
_c.style.borderWidth=textBorderWidth;
_c.style.margin=textMargin;
}
_c=document.getElementById("Tour");
if(_c!=null){
var _d=strToInt(imageMaxWidth)+(strToInt(imageBorderWidth)+strToInt(imageMargin))*2;
_c.style.pixelWidth=_d;
_c.style.width=_d+"px";
}
}
GetShowcase();
};

function SetupShowcase_Greece(){
var _e=new ShowcaseElement();
_e.destinationCountry=10;
_e.departureDateFromNowCount=35;
_e.departureDateCount=20;
_e.departureCity=505;
_e.adult=2;
_e.child=0;
_e.positionCount=4;
_e.hideToursWithoutFlights=true;
_e.filtrateIdenticalHotels=true;
_e.destinationCities=[];
_e.stars=[];
_e.nightsFrom=7;
_e.nightsTo=15;
_e.currency=4;
Showcase=[_e];
var _f=dictionary.columns_sm,_10=dictionary.rows_sm;
if(_f!=null&&_10!=null){
ShowcaseWidth=_f;
ShowcaseHeight=_10;
}
var _11=dictionary.textPosition_sm;
if(_11!=null){
textPosition=_11;
}
var _12;
if(textPosition!="bottom"){
_12=document.getElementById("showcaseImageDiv");
if(_12!=null){
_12.style.width=imageMaxWidth;
_12.style.borderWidth=imageBorderWidth;
_12.style.margin=imageMargin;
}
_12=document.getElementById("showcaseTextDiv");
if(_12!=null){
_12.style.width=textMaxWidth;
_12.style.borderWidth=textBorderWidth;
_12.style.margin=textMargin;
}
_12=document.getElementById("Tour");
if(_12!=null){
var _13=strToInt(imageMaxWidth)+strToInt(textMaxWidth)+(strToInt(imageBorderWidth)+strToInt(imageMargin)+strToInt(textBorderWidth)+strToInt(textMargin))*2;
_12.style.pixelWidth=_13;
_12.style.width=_13+"px";
}
}else{
_12=document.getElementById("showcaseImageDiv");
if(_12!=null){
_12.style.width=imageMaxWidth;
_12.style.borderWidth=imageBorderWidth;
_12.style.margin=imageMargin;
}
_12=document.getElementById("showcaseTextDiv");
if(_12!=null){
_12.style.width=imageMaxWidth;
_12.style.borderWidth=textBorderWidth;
_12.style.margin=textMargin;
}
_12=document.getElementById("Tour");
if(_12!=null){
var _13=strToInt(imageMaxWidth)+(strToInt(imageBorderWidth)+strToInt(imageMargin))*2;
_12.style.pixelWidth=_13;
_12.style.width=_13+"px";
}
}
GetShowcase();
};
function SetupShowcase_Egypt(){
var se1=new ShowcaseElement();
se1.destinationCountry=3;
se1.departureDateFromNowCount=1;
se1.departureDateCount=20;
se1.departureCity=505;
se1.adult=2;
se1.child=0;
se1.positionCount=4;
se1.hideToursWithoutFlights=true;
se1.filtrateIdenticalHotels=true;
se1.destinationCities=[];
se1.stars=[];
se1.nightsFrom=7;
se1.nightsTo=15;
se1.currency=4;
Showcase=[se1];
var _15=dictionary.columns_sm,_16=dictionary.rows_sm;
if(_15!=null&&_16!=null){
ShowcaseWidth=_15;
ShowcaseHeight=_16;
}
var _17=dictionary.textPosition_sm;
if(_17!=null){
textPosition=_17;
}
var _18;
if(textPosition!="bottom"){
_18=document.getElementById("showcaseImageDiv");
if(_18!=null){
_18.style.width=imageMaxWidth;
_18.style.borderWidth=imageBorderWidth;
_18.style.margin=imageMargin;
}
_18=document.getElementById("showcaseTextDiv");
if(_18!=null){
_18.style.width=textMaxWidth;
_18.style.borderWidth=textBorderWidth;
_18.style.margin=textMargin;
}
_18=document.getElementById("Tour");
if(_18!=null){
var _19=strToInt(imageMaxWidth)+strToInt(textMaxWidth)+(strToInt(imageBorderWidth)+strToInt(imageMargin)+strToInt(textBorderWidth)+strToInt(textMargin))*2;
_18.style.pixelWidth=_19;
_18.style.width=_19+"px";
}
}else{
_18=document.getElementById("showcaseImageDiv");
if(_18!=null){
_18.style.width=imageMaxWidth;
_18.style.borderWidth=imageBorderWidth;
_18.style.margin=imageMargin;
}
_18=document.getElementById("showcaseTextDiv");
if(_18!=null){
_18.style.width=imageMaxWidth;
_18.style.borderWidth=textBorderWidth;
_18.style.margin=textMargin;
}
_18=document.getElementById("Tour");
if(_18!=null){
var _19=strToInt(imageMaxWidth)+(strToInt(imageBorderWidth)+strToInt(imageMargin))*2;
_18.style.pixelWidth=_19;
_18.style.width=_19+"px";
}
}
GetShowcase();
};
function SetupShowcase_Tunis(){
var se1=new ShowcaseElement();
se1.destinationCountry=15;
se1.departureDateFromNowCount=14;
se1.departureDateCount=14;
se1.departureCity=1;
se1.adult=2;
se1.child=0;
se1.positionCount=4;
se1.hideToursWithoutFlights=true;
se1.filtrateIdenticalHotels=true;
se1.destinationCities=[];
se1.stars=[];
se1.nightsFrom=7;
se1.nightsTo=15;
se1.currency=4;
Showcase=[se1];
var _1b=dictionary.columns_sm,_1c=dictionary.rows_sm;
if(_1b!=null&&_1c!=null){
ShowcaseWidth=_1b;
ShowcaseHeight=_1c;
}
var _1d=dictionary.textPosition_sm;
if(_1d!=null){
textPosition=_1d;
}
var _1e;
if(textPosition!="bottom"){
_1e=document.getElementById("showcaseImageDiv");
if(_1e!=null){
_1e.style.width=imageMaxWidth;
_1e.style.borderWidth=imageBorderWidth;
_1e.style.margin=imageMargin;
}
_1e=document.getElementById("showcaseTextDiv");
if(_1e!=null){
_1e.style.width=textMaxWidth;
_1e.style.borderWidth=textBorderWidth;
_1e.style.margin=textMargin;
}
_1e=document.getElementById("Tour");
if(_1e!=null){
var _1f=strToInt(imageMaxWidth)+strToInt(textMaxWidth)+(strToInt(imageBorderWidth)+strToInt(imageMargin)+strToInt(textBorderWidth)+strToInt(textMargin))*2;
_1e.style.pixelWidth=_1f;
_1e.style.width=_1f+"px";
}
}else{
_1e=document.getElementById("showcaseImageDiv");
if(_1e!=null){
_1e.style.width=imageMaxWidth;
_1e.style.borderWidth=imageBorderWidth;
_1e.style.margin=imageMargin;
}
_1e=document.getElementById("showcaseTextDiv");
if(_1e!=null){
_1e.style.width=imageMaxWidth;
_1e.style.borderWidth=textBorderWidth;
_1e.style.margin=textMargin;
}
_1e=document.getElementById("Tour");
if(_1e!=null){
var _1f=strToInt(imageMaxWidth)+(strToInt(imageBorderWidth)+strToInt(imageMargin))*2;
_1e.style.pixelWidth=_1f;
_1e.style.width=_1f+"px";
}
}
GetShowcase();
};
function SetupShowcase_Thailand(){
var se1=new ShowcaseElement();
se1.destinationCountry=12;
se1.departureDateFromNowCount=1;
se1.departureDateCount=20;
se1.departureCity=505;
se1.adult=2;
se1.child=0;
se1.positionCount=4;
se1.hideToursWithoutFlights=true;
se1.filtrateIdenticalHotels=true;
se1.destinationCities=[];
se1.stars=[];
se1.nightsFrom=7;
se1.nightsTo=15;
se1.currency=4;
Showcase=[se1];
var _1b=dictionary.columns_sm,_1c=dictionary.rows_sm;
if(_1b!=null&&_1c!=null){
ShowcaseWidth=_1b;
ShowcaseHeight=_1c;
}
var _1d=dictionary.textPosition_sm;
if(_1d!=null){
textPosition=_1d;
}
var _1e;
if(textPosition!="bottom"){
_1e=document.getElementById("showcaseImageDiv");
if(_1e!=null){
_1e.style.width=imageMaxWidth;
_1e.style.borderWidth=imageBorderWidth;
_1e.style.margin=imageMargin;
}
_1e=document.getElementById("showcaseTextDiv");
if(_1e!=null){
_1e.style.width=textMaxWidth;
_1e.style.borderWidth=textBorderWidth;
_1e.style.margin=textMargin;
}
_1e=document.getElementById("Tour");
if(_1e!=null){
var _1f=strToInt(imageMaxWidth)+strToInt(textMaxWidth)+(strToInt(imageBorderWidth)+strToInt(imageMargin)+strToInt(textBorderWidth)+strToInt(textMargin))*2;
_1e.style.pixelWidth=_1f;
_1e.style.width=_1f+"px";
}
}else{
_1e=document.getElementById("showcaseImageDiv");
if(_1e!=null){
_1e.style.width=imageMaxWidth;
_1e.style.borderWidth=imageBorderWidth;
_1e.style.margin=imageMargin;
}
_1e=document.getElementById("showcaseTextDiv");
if(_1e!=null){
_1e.style.width=imageMaxWidth;
_1e.style.borderWidth=textBorderWidth;
_1e.style.margin=textMargin;
}
_1e=document.getElementById("Tour");
if(_1e!=null){
var _1f=strToInt(imageMaxWidth)+(strToInt(imageBorderWidth)+strToInt(imageMargin))*2;
_1e.style.pixelWidth=_1f;
_1e.style.width=_1f+"px";
}
}
GetShowcase();
};
function SetupShowcase_Maldives(){
var se1=new ShowcaseElement();
se1.destinationCountry=73;
se1.departureDateFromNowCount=1;
se1.departureDateCount=30;
se1.departureCity=1;
se1.adult=2;
se1.child=0;
se1.positionCount=4;
se1.hideToursWithoutFlights=true;
se1.filtrateIdenticalHotels=true;
se1.destinationCities=[];
se1.stars=[];
se1.nightsFrom=7;
se1.nightsTo=15;
se1.currency=4;
Showcase=[se1];
var _1b=dictionary.columns_sm,_1c=dictionary.rows_sm;
if(_1b!=null&&_1c!=null){
ShowcaseWidth=_1b;
ShowcaseHeight=_1c;
}
var _1d=dictionary.textPosition_sm;
if(_1d!=null){
textPosition=_1d;
}
var _1e;
if(textPosition!="bottom"){
_1e=document.getElementById("showcaseImageDiv");
if(_1e!=null){
_1e.style.width=imageMaxWidth;
_1e.style.borderWidth=imageBorderWidth;
_1e.style.margin=imageMargin;
}
_1e=document.getElementById("showcaseTextDiv");
if(_1e!=null){
_1e.style.width=textMaxWidth;
_1e.style.borderWidth=textBorderWidth;
_1e.style.margin=textMargin;
}
_1e=document.getElementById("Tour");
if(_1e!=null){
var _1f=strToInt(imageMaxWidth)+strToInt(textMaxWidth)+(strToInt(imageBorderWidth)+strToInt(imageMargin)+strToInt(textBorderWidth)+strToInt(textMargin))*2;
_1e.style.pixelWidth=_1f;
_1e.style.width=_1f+"px";
}
}else{
_1e=document.getElementById("showcaseImageDiv");
if(_1e!=null){
_1e.style.width=imageMaxWidth;
_1e.style.borderWidth=imageBorderWidth;
_1e.style.margin=imageMargin;
}
_1e=document.getElementById("showcaseTextDiv");
if(_1e!=null){
_1e.style.width=imageMaxWidth;
_1e.style.borderWidth=textBorderWidth;
_1e.style.margin=textMargin;
}
_1e=document.getElementById("Tour");
if(_1e!=null){
var _1f=strToInt(imageMaxWidth)+(strToInt(imageBorderWidth)+strToInt(imageMargin))*2;
_1e.style.pixelWidth=_1f;
_1e.style.width=_1f+"px";
}
}
GetShowcase();
};

