///
var _GUI = function()
{
this.divMain;
this.createMenu = function()
{
Common.log("createMenu - starting");
try
{
Toolbar.init();
MainScrollView.init();
var divMainPage = document.createElement("div");
divMainPage.align="center";
divHeader=document.createElement("div");
divHeader.textContent=UITexts.getText("Choose Category:");
divHeader.className="divSelectCategoryHeader";
if (T_MenuLanguages.isLangRTL())
divHeader.dir="rtl";
divMainPage.appendChild(divHeader);
var divCategories = CategoryListView.createCategoryListDiv();
divCategories.style.borderRadius="15px";
//divCategories.style.overflow="hidden";
divCategories.style.width="90%";
divCategories.style.backgroundColor="white";//important for fade of sub categories
divMainPage.appendChild(divCategories);
divMainPage.style.paddingBottom="10px";
MainScrollView.addView(divMainPage);
}
catch(e)
{
Common.log("error in createMenu: "+e);
}
};
// this.createOpeningPage=function()
// {
// document.body.style.backgroundColor="black";
// divOpening=document.createElement("div");
// divOpening.style.width="100%";
// divOpening.style.height="100%";
// divOpening.align="center";
// var img=document.createElement("img");
// if (window.innerWidth1)
// {
// var select=document.createElement("select");
// for(var i=1;i<=T_MenuLanguages.getNumOfLanguages();i++)
// {
// var option =document.createElement("option");
// option.textContent=T_MenuLanguages.getLanguageNameByID(i);
// option.setAttribute("value",i);
// select.appendChild(option);
// }
// select.style.position="absolute";
// divOpening.appendChild(select);
// img.select=select;
// };
// var btnStart = document.createElement("button");
// btnStart.textContent="Start";
// btnStart.style.position="absolute";
// btnStart.onclick=function(e)
// {
// T_MenuLanguages.currentLanguageID=(select.selectedIndex+1);
// document.body.removeChild(divOpening);
// GUI.createMenu();
// }
// divOpening.appendChild(btnStart);
// img.btnStart=btnStart;
// img.onload=function(e){
// var img=e.target;
// img.style.left=((window.innerWidth-img.clientWidth)/2+"px");
// if (window.innerWidth0)
{
var currentSrc=img.arrSrc[0];
img.arrSrc=img.arrSrc.slice(1);
img.src=currentSrc;
}
else
img.onerror=null;
};
img.src=currentSrc;
return img;
};
// this.setTransitionEndListeneer = function(obj,func)
// {
// obj.addEventListener( 'mozTransitionEnd', func,false);
// obj.addEventListener( 'webkitTransitionEnd', func,false);
// obj.addEventListener( 'transitionEnd', func,false);
// obj.addEventListener( 'oTransitionEnd', func,false);
// obj.addEventListener( 'msTransitionEnd', func,false);
// };
// this.clearTransitionEndListeneer = function(obj,func)
// {
// obj.removeEventListener( 'webkitTransitionEnd', func,false);
// obj.removeEventListener( 'transitionEnd', func,false);
// obj.removeEventListener( 'mozTransitionEnd', func,false);
// obj.removeEventListener( 'oTransitionEnd', func,false);
// obj.removeEventListener( 'msTransitionEnd', func,false);
// };
};
var GUI= new _GUI();