jQuery.fx.off=true;var currentSideMenu="#sideHome",newSideMenu="",newFrame="",currentDiv="#DivPage0",currentPage="Interfaces/Frontend/HomeInterface/Default.aspx",firstPageChange="",DivLoadComplete="",FadeComplete="",H="",currentH="",newH="",sameSideMenu="",growToHeight="",openTimer=1e3,openBounceTimer=250,closeTimer=3250,closeBounceTimer=250,growShrinkTimer=1e3,growToHeightTimer=2e3,openFade=(-1*openTimer-openBounceTimer*2)*-1,closeFade=(-1*closeTimer-closeBounceTimer*2)*-1,manipulateSideMenuLevel=0,manipulateSideMenuNumber=0,isBrowserButtonEvent="no",browserHistoryLength=top.window.history.length,browserPressFirstLoop="yes",urlHistoryArray=[],urlCounter=0,rootURL="",operaFirstPageBug="";homeOff=new Image;homeOff.src="Images/Frontend/HomeOff.png";homeHover=new Image;homeHover.src="Images/Frontend/HomeHover.png";homeOn=new Image;homeOn.src="Images/Frontend/HomeOn.png";aboutOff=new Image;aboutOff.src="Images/Frontend/AboutUsOff.png";aboutHover=new Image;aboutHover.src="Images/Frontend/AboutUsHover.png";aboutOn=new Image;aboutOn.src="Images/Frontend/AboutUsOn.png";newsOff=new Image;newsOff.src="Images/Frontend/NewsOff.png";newsHover=new Image;newsHover.src="Images/Frontend/NewsHover.png";newsOn=new Image;newsOn.src="Images/Frontend/NewsOn.png";productsOff=new Image;productsOff.src="Images/Frontend/ProductsOff.png";productsHover=new Image;productsHover.src="Images/Frontend/ProductsHover.png";productsOn=new Image;productsOn.src="Images/Frontend/ProductsOn.png";contactOff=new Image;contactOff.src="Images/Frontend/ContactUsOff.png";contactHover=new Image;contactHover.src="Images/Frontend/ContactUsHover.png";contactOn=new Image;contactOn.src="Images/Frontend/ContactUsOn.png";animationOff=new Image;animationOff.src="Images/Frontend/AnimationOff.png";animationOn=new Image;animationOn.src="Images/Frontend/AnimationOn.png";adminOff=new Image;adminOff.src="Images/Frontend/AdminOff.png";adminHover=new Image;adminHover.src="Images/Frontend/AdminHover.png";adminOn=new Image;adminOn.src="Images/Frontend/AdminOn.png";function swap(){if(swap.arguments[1].match("Off")||swap.arguments[1].match("Hover")){swap.arguments[1].match("animation")&&document.getElementById(swap.arguments[0]).setAttribute("src",eval(swap.arguments[1]+".src"));if(document.getElementById(swap.arguments[0]).getAttribute("src").match("Off")||document.getElementById(swap.arguments[0]).getAttribute("src").match("Hover"))if(document.images)for(var a=0;a<swap.arguments.length;a+=2)document.getElementById(swap.arguments[a]).setAttribute("src",eval(swap.arguments[a+1]+".src"))}else if(swap.arguments[1].match("animation"))document.getElementById(swap.arguments[0]).setAttribute("src",eval(swap.arguments[1]+".src"));else{cleartabs();document.getElementById(swap.arguments[0]).setAttribute("src",eval(swap.arguments[1]+".src"))}}function onMouseOverImgBtn(b){var a=b.src;if(a.match("Off")&&a.match("png")){a=a.substring(0,a.lastIndexOf("Off"))+"On.png";b.src=a}else if(a.match("Off")&&a.match("jpg")){a=a.substring(0,a.lastIndexOf("Off"))+"On.jpg";b.src=a}}function onMouseOutImgBtn(b){var a=b.src;if(a.match("On")&&a.match("png")){a=a.substring(0,a.lastIndexOf("On"))+"Off.png";b.src=a}else if(a.match("On")&&a.match("jpg")){a=a.substring(0,a.lastIndexOf("On"))+"Off.jpg";b.src=a}}function cleartabs(){document.getElementById("homeLink").setAttribute("src","Images/Frontend/HomeOff.png");document.getElementById("aboutLink").setAttribute("src","Images/Frontend/AboutUsOff.png");document.getElementById("newsLink").setAttribute("src","Images/Frontend/NewsOff.png");document.getElementById("productsLink").setAttribute("src","Images/Frontend/ProductsOff.png");document.getElementById("contactLink").setAttribute("src","Images/Frontend/ContactUsOff.png");document.getElementById("adminLink").setAttribute("src","Images/Frontend/AdminOff.png")}$(document).ready(function(){function b(){jQuery.fx.off=true;if(top.window.location.href.indexOf("x")!=-1)rootURL=top.window.location.href.substring(0,top.window.location.href.indexOf("x")+1);else if(top.window.location.href.indexOf("#")!=-1)rootURL=top.window.location.href.substring(0,top.window.location.href.indexOf("#"));else if(top.window.location.href.indexOf("?")!=-1)rootURL=top.window.location.href.substring(0,top.window.location.href.indexOf("?"));else rootURL=top.window.location.href;if(top.window.location.href.indexOf("#")!=-1){var b=0,c="";if(top.window.location.href.indexOf("?")!=-1){b=top.window.location.href.substring(top.window.location.href.indexOf("#")+1,top.window.location.href.indexOf("?"));c=top.window.location.href.substring(top.window.location.href.indexOf("?"),top.window.location.href.length)}else b=top.window.location.href.substring(top.window.location.href.indexOf("#")+1,top.window.location.href.length);if(b==1){currentPage="Interfaces/Frontend/HomeInterface/Default.aspx"+c;currentSideMenu="#sideHome"}else if(b==2){currentPage="Interfaces/Frontend/HomeInterface/Demo.aspx"+c;currentSideMenu="#sideHome"}else if(b==3){currentPage="Interfaces/Frontend/HomeInterface/SystemVideos.aspx"+c;currentSideMenu="#sideHome"}else if(b==4){currentPage="Interfaces/Frontend/AboutInterface/Default.aspx"+c;currentSideMenu="#sideAbout"}else if(b==5){currentPage="Interfaces/Frontend/AboutInterface/Vision.aspx"+c;currentSideMenu="#sideAbout"}else if(b==6){currentPage="Interfaces/Frontend/AboutInterface/Affiliates.aspx"+c;currentSideMenu="#sideAbout"}else if(b==7){currentPage="Interfaces/Frontend/AboutInterface/Accolades.aspx"+c;currentSideMenu="#sideAbout"}else if(b==8){currentPage="Interfaces/Frontend/NewsInterface/Default.aspx"+c;currentSideMenu="#sideNews"}else if(b==9){currentPage="Interfaces/Frontend/NewsInterface/Articles.aspx"+c;currentSideMenu="#sideNews"}else if(b==10){currentPage="Interfaces/Frontend/NewsInterface/SoundBytes.aspx"+c;currentSideMenu="#sideNews"}else if(b==11){currentPage="Interfaces/Frontend/ProductsInterface/Default.aspx"+c;currentSideMenu="#sideProducts"}else if(b==12){currentPage="Interfaces/Frontend/ProductsInterface/Architecture.aspx"+c;currentSideMenu="#sideProducts"}else if(b==13){currentPage="Interfaces/Frontend/ProductsInterface/Bus.aspx"+c;currentSideMenu="#sideProducts"}else if(b==14){currentPage="Interfaces/Frontend/ProductsInterface/Shuttle.aspx"+c;currentSideMenu="#sideProducts"}else if(b==15){currentPage="Interfaces/Frontend/ProductsInterface/Taxi.aspx"+c;currentSideMenu="#sideProducts"}else if(b==16){currentPage="Interfaces/Frontend/ProductsInterface/Train.aspx"+c;currentSideMenu="#sideProducts"}else if(b==17){currentPage="Interfaces/Frontend/ContactInterface/Default.aspx"+c;currentSideMenu="#sideContact"}else if(b==18){currentPage="Interfaces/Frontend/ContactInterface/Form.aspx"+c;currentSideMenu="#sideContact"}else if(b==19){currentPage="Interfaces/Frontend/HomeInterface/Activation.aspx"+c;currentSideMenu="#sideHome"}else if(b==20){currentPage="Interfaces/Frontend/AdminInterface/Default.aspx"+c;currentSideMenu="#sideAdmin"}else if(b==21){currentPage="Interfaces/Frontend/AdminInterface/ManageUsers.aspx"+c;currentSideMenu="#sideAdmin"}else if(b==22){currentPage="Interfaces/Frontend/AdminInterface/CreateUser.aspx"+c;currentSideMenu="#sideAdmin"}else if(b==23){currentPage="Interfaces/Frontend/AdminInterface/ManageForums.aspx"+c;currentSideMenu="#sideAdmin"}else if(b==24){currentPage="Interfaces/Frontend/AdminInterface/SendNewsletter.aspx"+c;currentSideMenu="#sideAdmin"}else if(b==25){currentPage="Interfaces/Frontend/AdminInterface/ManageUnapprovedPosts.aspx"+c;currentSideMenu="#sideAdmin"}else if(b==26){currentPage="Interfaces/Frontend/GeneralInterface/EditProfile.aspx"+c;currentSideMenu="#sideHome"}else if(b==27){currentPage="Interfaces/Frontend/GeneralInterface/PasswordRecovery.aspx"+c;currentSideMenu="#sideHome"}else if(b==28){currentPage="Interfaces/Frontend/AdminInterface/CreateCompany.aspx"+c;currentSideMenu="#sideAdmin"}else if(b==29){currentPage="Interfaces/Frontend/AdminInterface/SystemsPortal.aspx"+c;currentSideMenu="#sideHome"}else if(b==30){currentPage="Interfaces/Frontend/HomeInterface/Home.aspx"+c;currentSideMenu="#sideHome"}$("#iFrame0").attr("src",currentPage);$("#iFrame0").load(function(){if(firstPageChange==""){manipulateSideMenuNumber=b;manipulateSideMenuLevel=1;resetSideMenus()}H=window.frames.iFrame0.document.getElementById("RHS").style.height;document.getElementById("DivMasterHolder").style.height=H;$(document.getElementById("tr")).attr("height",H);$(document.getElementById("tl")).attr("height",H);window.frames.iFrame0.document.getElementById("RHSOuter").style.height=H;window.frames.iFrame0.document.getElementById("RHS").style.height=H;$(window.frames.iFrame0.document.getElementById("RHSInner")).attr("height",H);$("#iFrame0").animate({height:H},1);a()})}else{$("#iFrame0").attr("src",currentPage);$("#iFrame0").load(function(){H=window.frames.iFrame0.document.getElementById("RHS").style.height;document.getElementById("DivMasterHolder").style.height=H;$(document.getElementById("tr")).attr("height",H);$(document.getElementById("tl")).attr("height",H);window.frames.iFrame0.document.getElementById("RHSOuter").style.height=H;window.frames.iFrame0.document.getElementById("RHS").style.height=H;$(window.frames.iFrame0.document.getElementById("RHSInner")).attr("height",H);$("#iFrame0").animate({height:H},1);a()})}}function a(){if(firstPageChange==""){if(parent.BrowserDetect.browser!="Opera"){$(currentSideMenu).fadeIn(openFade);$("#DivPage0").animate({top:"+="+document.getElementById(currentSideMenu.substring(1)).style.height},openTimer);$("#DivPage0").animate({top:"-=30px"},openBounceTimer);$("#DivPage0").animate({top:"+=30px"},openBounceTimer)}else if(parent.BrowserDetect.browser=="Opera"&&operaFirstPageBug==""){operaFirstPageBug="done";$(currentSideMenu).fadeIn(openFade);$("#DivPage0").animate({top:"+="+document.getElementById(currentSideMenu.substring(1)).style.height},openTimer);$("#DivPage0").animate({top:"-=30px"},openBounceTimer);$("#DivPage0").animate({top:"+=30px"},openBounceTimer)}$(window.frames.iFrame0.document.getElementById("RHSInner")).fadeIn(openFade);$(window.frames.iFrame0.document.getElementById("RHS")).animate({left:"+=677px"},openTimer);$(window.frames.iFrame0.document.getElementById("RHS")).animate({left:"-=30px"},openBounceTimer);$(window.frames.iFrame0.document.getElementById("RHS")).animate({left:"+=30px"},openBounceTimer,"linear",bindallMenus);jQuery.fx.off=false}}b()});function mainAreaMove(b){sameSideMenu=b;var a=document.getElementById(currentSideMenu.substring(1)).style.height;a=(a.substring(0,a.length-2)*-1-30)*-1+"px";if(currentDiv=="#DivPage1"){$("#iFrame2").attr("src",currentPage);$("#iFrame2").load(function(){doneDiv()});currentDiv="#DivPage2";newFrame="iFrame2";if(sameSideMenu=="no"){$(currentSideMenu).fadeOut(closeFade);$("#DivPage0").animate({top:"+=30px"},closeBounceTimer);$("#DivPage0").animate({top:"-="+a},closeTimer)}$(window.frames.iFrame1.document.getElementById("RHS")).animate({left:"+=30px"},closeBounceTimer);$(window.frames.iFrame1.document.getElementById("RHS")).animate({left:"-=707px"},closeTimer);$(window.frames.iFrame1.document.getElementById("RHSInner")).fadeOut(closeFade,doneFade)}else if(currentDiv=="#DivPage2"){$("#iFrame1").attr("src",currentPage);$("#iFrame1").load(function(){doneDiv()});currentDiv="#DivPage1";newFrame="iFrame1";if(sameSideMenu=="no"){$(currentSideMenu).fadeOut(closeFade);$("#DivPage0").animate({top:"+=30px"},closeBounceTimer);$("#DivPage0").animate({top:"-="+a},closeTimer)}$(window.frames.iFrame2.document.getElementById("RHS")).animate({left:"+=30px"},closeBounceTimer);$(window.frames.iFrame2.document.getElementById("RHS")).animate({left:"-=707px"},closeTimer);$(window.frames.iFrame2.document.getElementById("RHSInner")).fadeOut(closeFade,doneFade)}else{$("#iFrame1").attr("src",currentPage);$("#iFrame1").load(function(){doneDiv()});currentDiv="#DivPage1";newFrame="iFrame1";if(sameSideMenu=="no"){$(currentSideMenu).fadeOut(closeFade);$("#DivPage0").animate({top:"+=30px"},closeBounceTimer);$("#DivPage0").animate({top:"-="+a},closeTimer)}$(window.frames.iFrame0.document.getElementById("RHS")).animate({left:"+=30px"},closeBounceTimer);$(window.frames.iFrame0.document.getElementById("RHS")).animate({left:"-=707px"},closeTimer);$(window.frames.iFrame0.document.getElementById("RHSInner")).fadeOut(closeFade,doneFade)}}function doneDiv(){DivLoadComplete="1";bothDone()}function doneFade(){FadeComplete="1";if(sameSideMenu=="no"){var a="-"+document.getElementById(newSideMenu.substring(1)).style.height;$("#DivPage0").animate({top:a},1);resetSideMenus()}else sameSideMenu=="yes"&&manipulateSideMenuLevel==1&&resetSideMenus();bothDone()}function bothDone(){if(DivLoadComplete=="1"&&FadeComplete=="1"){H=window.frames[newFrame].document.getElementById("RHS").style.height;if(currentDiv=="#DivPage1"&&firstPageChange=="1"){currentH=window.frames.iFrame2.document.getElementById("RHS").style.height;currentH=currentH.substring(0,currentH.length-2);newH=H.substring(0,H.length-2)}else if(currentDiv=="#DivPage2"&&firstPageChange=="1"){currentH=window.frames.iFrame1.document.getElementById("RHS").style.height;currentH=currentH.substring(0,currentH.length-2);newH=H.substring(0,H.length-2)}else{currentH=window.frames.iFrame0.document.getElementById("RHS").style.height;currentH=currentH.substring(0,currentH.length-2);newH=H.substring(0,H.length-2)}if(currentH<newH){$("#DivMasterHolder").animate({height:H},growShrinkTimer);$("#tr").animate({height:H},growShrinkTimer);$("#tl").animate({height:H},growShrinkTimer,"linear",growDone)}else if(newH<currentH){$("#DivMasterHolder").animate({height:H},growShrinkTimer);$("#tr").animate({height:H},growShrinkTimer);$("#tl").animate({height:H},growShrinkTimer,"linear",growDone)}else{$("#DivMasterHolder").animate({height:H},growShrinkTimer);$("#tr").animate({height:H},growShrinkTimer);$("#tl").animate({height:H},growShrinkTimer,"linear",growDone)}}}function growDone(){if(currentDiv=="#DivPage1"&&firstPageChange=="1"){document.getElementById("iFrame1").style.height=H;document.getElementById("DivPage1").style.height=H;$("#iFrame2").attr("src","BlankPage.html");document.getElementById("DivPage2").style.display="none";document.getElementById("DivPage1").style.display="inline";urlHistoryArray[urlCounter]=window.frames.iFrame2.location.href;urlCounter+=1}else if(currentDiv=="#DivPage2"&&firstPageChange=="1"){document.getElementById("iFrame2").style.height=H;document.getElementById("DivPage2").style.height=H;$("#iFrame1").attr("src","BlankPage.html");document.getElementById("DivPage1").style.display="none";document.getElementById("DivPage2").style.display="inline";urlHistoryArray[urlCounter]=window.frames.iFrame1.location.href;urlCounter+=1}else{firstPageChange="1";document.getElementById("iFrame1").style.height=H;document.getElementById("DivPage1").style.height=H;$("#iFrame0").attr("src","BlankPage.html");document.getElementById("Div1").style.display="none";document.getElementById("DivPage1").style.display="inline";urlHistoryArray[urlCounter]=window.frames.iFrame0.location.href;urlCounter+=1}DivLoadComplete="";FadeComplete="";runnow()}function runnow(){if(sameSideMenu=="no"){$(currentSideMenu).css("display","none");$(newSideMenu).fadeIn(openFade);$("#DivPage0").animate({top:"+="+document.getElementById(newSideMenu.substring(1)).style.height},openTimer);$("#DivPage0").animate({top:"-=30px"},openBounceTimer);$("#DivPage0").animate({top:"+=30px"},openBounceTimer);currentSideMenu=newSideMenu}if(currentDiv=="#DivPage1"){$(window.frames.iFrame1.document.getElementById("RHSInner")).fadeIn(openFade);$(window.frames.iFrame1.document.getElementById("RHS")).animate({left:"+=677px"},openTimer);$(window.frames.iFrame1.document.getElementById("RHS")).animate({left:"-=30px"},openBounceTimer);$(window.frames.iFrame1.document.getElementById("RHS")).animate({left:"+=30px"},openBounceTimer,"linear",pageBinds)}else{$(window.frames.iFrame2.document.getElementById("RHSInner")).fadeIn(openFade);$(window.frames.iFrame2.document.getElementById("RHS")).animate({left:"+=677px"},openTimer);$(window.frames.iFrame2.document.getElementById("RHS")).animate({left:"-=30px"},openBounceTimer);$(window.frames.iFrame2.document.getElementById("RHS")).animate({left:"+=30px"},openBounceTimer,"linear",pageBinds)}}function pageBinds(){bindTopMenus()}function bindallMenus(){$("#homeLink").bind("click",function(){firstPage="no";isBrowserButtonEvent="no";changePageFromInsideIFrame("Interfaces/Frontend/HomeInterface/Default.aspx","home","no","Home",1,1)});$("#homeLink").bind("mouseover",function(){swap("homeLink","homeHover")});$("#homeLink").bind("mouseout",function(){swap("homeLink","homeOff")});$("#aboutLink").bind("click",function(){firstPage="no";isBrowserButtonEvent="no";changePageFromInsideIFrame("Interfaces/Frontend/AboutInterface/Default.aspx?ID=About1","about","no","About",1,4)});$("#aboutLink").bind("mouseover",function(){swap("aboutLink","aboutHover")});$("#aboutLink").bind("mouseout",function(){swap("aboutLink","aboutOff")});$("#newsLink").bind("click",function(){firstPage="no";isBrowserButtonEvent="no";changePageFromInsideIFrame("Interfaces/Frontend/NewsInterface/Default.aspx","news","no","News",1,8)});$("#newsLink").bind("mouseover",function(){swap("newsLink","newsHover")});$("#newsLink").bind("mouseout",function(){swap("newsLink","newsOff")});$("#productsLink").bind("click",function(){firstPage="no";isBrowserButtonEvent="no";changePageFromInsideIFrame("Interfaces/Frontend/ProductsInterface/Default.aspx","products","no","Products",1,11)});$("#productsLink").bind("mouseover",function(){swap("productsLink","productsHover")});$("#productsLink").bind("mouseout",function(){swap("productsLink","productsOff")});$("#contactLink").bind("click",function(){firstPage="no";isBrowserButtonEvent="no";changePageFromInsideIFrame("Interfaces/Frontend/ContactInterface/Default.aspx","contact","no","Contact",1,17)});$("#contactLink").bind("mouseover",function(){swap("contactLink","contactHover")});$("#contactLink").bind("mouseout",function(){swap("contactLink","contactOff")});$("#animationLink").bind("click",function(){if(jQuery.fx.off==true){jQuery.fx.off=false;swap("animationLink","animationOn")}else{jQuery.fx.off=true;swap("animationLink","animationOff")}});$("#adminLink").bind("click",function(){firstPage="no";isBrowserButtonEvent="no";changePageFromInsideIFrame("Interfaces/Frontend/AdminInterface/Default.aspx","admin","no","Admin",1,20)});$("#adminLink").bind("mouseover",function(){swap("adminLink","adminHover")});$("#adminLink").bind("mouseout",function(){swap("adminLink","adminOff")});$("#profileLink").bind("click",function(){firstPage="no";isBrowserButtonEvent="no";manipulateSideMenuLevel=1;manipulateSideMenuNumber=26;currentPage="Interfaces/Frontend/GeneralInterface/EditProfile.aspx";newSideMenu="#sideHome";unbindallMenus();mainAreaMove("no")});$("#forgotPassLink").bind("click",function(){firstPage="no";isBrowserButtonEvent="no";manipulateSideMenuLevel=1;manipulateSideMenuNumber=27;currentPage="Interfaces/Frontend/GeneralInterface/PasswordRecovery.aspx";newSideMenu="#sideHome";unbindallMenus();mainAreaMove("no")});$("#Home1").bind("click",function(){firstPage="no";isBrowserButtonEvent="no";changePageFromInsideIFrame("Interfaces/Frontend/HomeInterface/Default.aspx","home","yes","Home",1,1)});$("#Home2").bind("click",function(){firstPage="no";isBrowserButtonEvent="no";changePageFromInsideIFrame("Interfaces/Frontend/HomeInterface/Home.aspx","home","yes","Home",1,30)});$("#Home3").bind("click",function(){firstPage="no";isBrowserButtonEvent="no";changePageFromInsideIFrame("Interfaces/Frontend/HomeInterface/Demo.aspx","home","yes","Home",1,2)});$("#Home4").bind("click",function(){firstPage="no";isBrowserButtonEvent="no";changePageFromInsideIFrame("Interfaces/Frontend/HomeInterface/SystemVideos.aspx","home","yes","Home",1,3)});$("#About1").bind("click",function(){firstPage="no";isBrowserButtonEvent="no";changePageFromInsideIFrame("Interfaces/Frontend/AboutInterface/Default.aspx","about","yes","About",1,4)});$("#About2").bind("click",function(){firstPage="no";isBrowserButtonEvent="no";changePageFromInsideIFrame("Interfaces/Frontend/AboutInterface/Vision.aspx","about","yes","About",1,5)});$("#About3").bind("click",function(){firstPage="no";isBrowserButtonEvent="no";changePageFromInsideIFrame("Interfaces/Frontend/AboutInterface/Affiliates.aspx","about","yes","About",1,6)});$("#About4").bind("click",function(){firstPage="no";isBrowserButtonEvent="no";changePageFromInsideIFrame("Interfaces/Frontend/AboutInterface/Accolades.aspx","about","yes","About",1,7)});$("#News1").bind("click",function(){firstPage="no";isBrowserButtonEvent="no";changePageFromInsideIFrame("Interfaces/Frontend/NewsInterface/Default.aspx","news","yes","News",1,8)});$("#News2").bind("click",function(){firstPage="no";isBrowserButtonEvent="no";changePageFromInsideIFrame("Interfaces/Frontend/NewsInterface/Articles.aspx","news","yes","News",1,9)});$("#News3").bind("click",function(){firstPage="no";isBrowserButtonEvent="no";changePageFromInsideIFrame("Interfaces/Frontend/NewsInterface/SoundBytes.aspx","news","yes","News",1,10)});$("#Products1").bind("click",function(){firstPage="no";isBrowserButtonEvent="no";changePageFromInsideIFrame("Interfaces/Frontend/ProductsInterface/Default.aspx","products","yes","Products",1,11)});$("#Products2").bind("click",function(){firstPage="no";isBrowserButtonEvent="no";changePageFromInsideIFrame("Interfaces/Frontend/ProductsInterface/Architecture.aspx","products","yes","Products",1,12)});$("#Products3").bind("click",function(){firstPage="no";isBrowserButtonEvent="no";changePageFromInsideIFrame("Interfaces/Frontend/ProductsInterface/Bus.aspx","products","yes","Products",1,13)});$("#Products4").bind("click",function(){firstPage="no";isBrowserButtonEvent="no";changePageFromInsideIFrame("Interfaces/Frontend/ProductsInterface/Shuttle.aspx","products","yes","Products",1,14)});$("#Products5").bind("click",function(){firstPage="no";isBrowserButtonEvent="no";changePageFromInsideIFrame("Interfaces/Frontend/ProductsInterface/Taxi.aspx","products","yes","Products",1,15)});$("#Products6").bind("click",function(){firstPage="no";isBrowserButtonEvent="no";changePageFromInsideIFrame("Interfaces/Frontend/ProductsInterface/Train.aspx","products","yes","Products",1,16)});$("#Contact1").bind("click",function(){firstPage="no";isBrowserButtonEvent="no";changePageFromInsideIFrame("Interfaces/Frontend/ContactInterface/Default.aspx","contact","yes","Contact",1,17)});$("#Contact2").bind("click",function(){firstPage="no";isBrowserButtonEvent="no";changePageFromInsideIFrame("Interfaces/Frontend/ContactInterface/Form.aspx","contact","yes","Contact",1,18)});$("#Admin1").bind("click",function(){firstPage="no";isBrowserButtonEvent="no";changePageFromInsideIFrame("Interfaces/Frontend/AdminInterface/Default.aspx","admin","yes","Admin",1,20)});$("#Admin2").bind("click",function(){firstPage="no";isBrowserButtonEvent="no";changePageFromInsideIFrame("Interfaces/Frontend/AdminInterface/ManageUsers.aspx","admin","yes","Admin",1,21)});$("#Admin3").bind("click",function(){firstPage="no";isBrowserButtonEvent="no";changePageFromInsideIFrame("Interfaces/Frontend/AdminInterface/CreateUser.aspx","admin","yes","Admin",1,22)});$("#Admin4").bind("click",function(){firstPage="no";isBrowserButtonEvent="no";changePageFromInsideIFrame("Interfaces/Frontend/AdminInterface/ManageForums.aspx","admin","yes","Admin",1,23)});$("#Admin5").bind("click",function(){firstPage="no";isBrowserButtonEvent="no";changePageFromInsideIFrame("Interfaces/Frontend/AdminInterface/SendNewsletter.aspx","admin","yes","Admin",1,24)});$("#Admin6").bind("click",function(){firstPage="no";isBrowserButtonEvent="no";changePageFromInsideIFrame("Interfaces/Frontend/AdminInterface/ManageUnapprovedPosts.aspx","admin","yes","Admin",1,25)});$("#Admin7").bind("click",function(){firstPage="no";isBrowserButtonEvent="no";changePageFromInsideIFrame("Interfaces/Frontend/AdminInterface/CreateCompany.aspx","admin","yes","Admin",1,28)});document.getElementById("blockingDiv").style.display="none";document.getElementById("blockingDiv2").style.display="none"}function bindTopMenus(){$("#homeLink").bind("click",function(){firstPage="no";isBrowserButtonEvent="no";changePageFromInsideIFrame("Interfaces/Frontend/HomeInterface/Default.aspx","home","no","Home",1,1)});$("#homeLink").bind("mouseover",function(){swap("homeLink","homeHover")});$("#homeLink").bind("mouseout",function(){swap("homeLink","homeOff")});$("#aboutLink").bind("click",function(){firstPage="no";isBrowserButtonEvent="no";changePageFromInsideIFrame("Interfaces/Frontend/AboutInterface/Default.aspx?ID=About1","about","no","About",1,4)});$("#aboutLink").bind("mouseover",function(){swap("aboutLink","aboutHover")});$("#aboutLink").bind("mouseout",function(){swap("aboutLink","aboutOff")});$("#newsLink").bind("click",function(){firstPage="no";isBrowserButtonEvent="no";changePageFromInsideIFrame("Interfaces/Frontend/NewsInterface/Default.aspx","news","no","News",1,8)});$("#newsLink").bind("mouseover",function(){swap("newsLink","newsHover")});$("#newsLink").bind("mouseout",function(){swap("newsLink","newsOff")});$("#productsLink").bind("click",function(){firstPage="no";isBrowserButtonEvent="no";changePageFromInsideIFrame("Interfaces/Frontend/ProductsInterface/Default.aspx","products","no","Products",1,11)});$("#productsLink").bind("mouseover",function(){swap("productsLink","productsHover")});$("#productsLink").bind("mouseout",function(){swap("productsLink","productsOff")});$("#contactLink").bind("click",function(){firstPage="no";isBrowserButtonEvent="no";changePageFromInsideIFrame("Interfaces/Frontend/ContactInterface/Default.aspx","contact","no","Contact",1,17)});$("#contactLink").bind("mouseover",function(){swap("contactLink","contactHover")});$("#contactLink").bind("mouseout",function(){swap("contactLink","contactOff")});$("#animationLink").bind("click",function(){if(jQuery.fx.off==true){jQuery.fx.off=false;swap("animationLink","animationOn")}else{jQuery.fx.off=true;swap("animationLink","animationOff")}});$("#adminLink").bind("click",function(){firstPage="no";isBrowserButtonEvent="no";changePageFromInsideIFrame("Interfaces/Frontend/AdminInterface/Default.aspx","admin","no","Admin",1,20)});$("#adminLink").bind("mouseover",function(){swap("adminLink","adminHover")});$("#adminLink").bind("mouseout",function(){swap("adminLink","adminOff")});$("#profileLink").bind("click",function(){firstPage="no";isBrowserButtonEvent="no";manipulateSideMenuLevel=1;manipulateSideMenuNumber=26;currentPage="Interfaces/Frontend/GeneralInterface/EditProfile.aspx";newSideMenu="#sideHome";unbindallMenus();mainAreaMove("no")});$("#forgotPassLink").bind("click",function(){firstPage="no";isBrowserButtonEvent="no";manipulateSideMenuLevel=1;manipulateSideMenuNumber=27;currentPage="Interfaces/Frontend/GeneralInterface/PasswordRecovery.aspx";newSideMenu="#sideHome";unbindallMenus();mainAreaMove("no")});document.getElementById("blockingDiv").style.display="none";document.getElementById("blockingDiv2").style.display="none"}function unbindallMenus(){$("#homeLink").unbind();$("#aboutLink").unbind();$("#newsLink").unbind();$("#productsLink").unbind();$("#contactLink").unbind();$("#animationLink").unbind();$("#adminLink").unbind();$("#profileLink").unbind();document.getElementById("blockingDiv").style.display="inline";document.getElementById("blockingDiv2").style.display="inline"}function resetSideMenus(){if(manipulateSideMenuLevel==1){if(manipulateSideMenuNumber==1){parent.document.title="WhereIsMyTransport - Welcome Commuters";$("#Home1").attr("class","current");$("#Home2").attr("class","");$("#Home3").attr("class","")}else if(manipulateSideMenuNumber==2){parent.document.title="System Demo Portal";$("#Home1").attr("class","");$("#Home2").attr("class","");$("#Home3").attr("class","current")}else if(manipulateSideMenuNumber==3){parent.document.title="Product Video Browser";$("#Home1").attr("class","");$("#Home2").attr("class","");$("#Home3").attr("class","")}else if(manipulateSideMenuNumber==4){parent.document.title="WhereIsMyTransport - Our History";$("#About1").attr("class","current");$("#About2").attr("class","");$("#About3").attr("class","");$("#About4").attr("class","")}else if(manipulateSideMenuNumber==5){parent.document.title="Our Mission & Vision";$("#About1").attr("class","");$("#About2").attr("class","current");$("#About3").attr("class","");$("#About4").attr("class","")}else if(manipulateSideMenuNumber==6){parent.document.title="Sponsors & Affiliates";$("#About1").attr("class","");$("#About2").attr("class","");$("#About3").attr("class","current");$("#About4").attr("class","")}else if(manipulateSideMenuNumber==7){parent.document.title="Our Accolades";$("#About1").attr("class","");$("#About2").attr("class","");$("#About3").attr("class","");$("#About4").attr("class","current")}else if(manipulateSideMenuNumber==8){parent.document.title="Publicity Document Browser";$("#News1").attr("class","current");$("#News2").attr("class","");$("#News3").attr("class","")}else if(manipulateSideMenuNumber==9){parent.document.title="WhereIsMyTransport -  News Reader";$("#News1").attr("class","");$("#News2").attr("class","current");$("#News3").attr("class","")}else if(manipulateSideMenuNumber==10){parent.document.title="Publicity Sound Bytes Player";$("#News1").attr("class","");$("#News2").attr("class","");$("#News3").attr("class","current")}else if(manipulateSideMenuNumber==11){parent.document.title="WhereIsMyTransport - Product Range";$("#Products1").attr("class","current");$("#Products2").attr("class","");$("#Products3").attr("class","indent");$("#Products4").attr("class","indent");$("#Products5").attr("class","indent");$("#Products6").attr("class","indent")}else if(manipulateSideMenuNumber==12){parent.document.title="WhereIsMyTransport - Product Architecture Diagram";$("#Products1").attr("class","");$("#Products2").attr("class","current");$("#Products3").attr("class","indent");$("#Products4").attr("class","indent");$("#Products5").attr("class","indent");$("#Products6").attr("class","indent")}else if(manipulateSideMenuNumber==13){parent.document.title="WhereIsMyBus Product & Service Offering";$("#Products1").attr("class","");$("#Products2").attr("class","");$("#Products3").attr("class","indent current");$("#Products4").attr("class","indent");$("#Products5").attr("class","indent");$("#Products6").attr("class","indent")}else if(manipulateSideMenuNumber==14){parent.document.title="WhereIsMyShuttle Product & Service Offering";$("#Products1").attr("class","");$("#Products2").attr("class","");$("#Products3").attr("class","indent");$("#Products4").attr("class","indent current");$("#Products5").attr("class","indent");$("#Products6").attr("class","indent")}else if(manipulateSideMenuNumber==15){parent.document.title="WhereIsMyTaxi Product & Service Offering";$("#Products1").attr("class","");$("#Products2").attr("class","");$("#Products3").attr("class","indent");$("#Products4").attr("class","indent");$("#Products5").attr("class","indent current");$("#Products6").attr("class","indent")}else if(manipulateSideMenuNumber==16){parent.document.title="WhereIsMyTrain Product & Service Offering";$("#Products1").attr("class","");$("#Products2").attr("class","");$("#Products3").attr("class","indent");$("#Products4").attr("class","indent");$("#Products5").attr("class","indent");$("#Products6").attr("class","indent current")}else if(manipulateSideMenuNumber==17){parent.document.title="WhereIsMyTransport - Contact Details";$("#Contact1").attr("class","current");$("#Contact2").attr("class","")}else if(manipulateSideMenuNumber==18){parent.document.title="Contact Us";$("#Contact1").attr("class","");$("#Contact2").attr("class","current")}else if(manipulateSideMenuNumber==19){parent.document.title="WhereIsMyTransport - Demo Account Activation";$("#Home1").attr("class","");$("#Home2").attr("class","");$("#Home3").attr("class","");$("#About1").attr("class","");$("#About2").attr("class","");$("#About3").attr("class","");$("#About4").attr("class","");$("#News1").attr("class","");$("#News2").attr("class","");$("#News3").attr("class","");$("#Products1").attr("class","");$("#Products2").attr("class","");$("#Products3").attr("class","indent");$("#Products4").attr("class","indent");$("#Products5").attr("class","indent");$("#Products6").attr("class","indent");$("#Contact1").attr("class","");$("#Contact2").attr("class","");$("#Admin1").attr("class","current");$("#Admin2").attr("class","");$("#Admin3").attr("class","indent");$("#Admin4").attr("class","");$("#Admin5").attr("class","");$("#Admin6").attr("class","");$("#Admin7").attr("class","")}else if(manipulateSideMenuNumber==20){parent.document.title="Administration Area - General";$("#Admin1").attr("class","current");$("#Admin2").attr("class","");$("#Admin3").attr("class","indent");$("#Admin4").attr("class","");$("#Admin5").attr("class","");$("#Admin6").attr("class","");$("#Admin7").attr("class","")}else if(manipulateSideMenuNumber==21){parent.document.title="Administration Area - User Configuration";$("#Admin1").attr("class","");$("#Admin2").attr("class","current");$("#Admin3").attr("class","indent");$("#Admin4").attr("class","");$("#Admin5").attr("class","");$("#Admin6").attr("class","");$("#Admin7").attr("class","")}else if(manipulateSideMenuNumber==22){parent.document.title="Administration Area - Create User";$("#Admin1").attr("class","");$("#Admin2").attr("class","");$("#Admin3").attr("class","indent current");$("#Admin4").attr("class","");$("#Admin5").attr("class","");$("#Admin6").attr("class","");$("#Admin7").attr("class","")}else if(manipulateSideMenuNumber==23){parent.document.title="Administration Area - Forums";$("#Admin1").attr("class","");$("#Admin2").attr("class","");$("#Admin3").attr("class","indent");$("#Admin4").attr("class","current");$("#Admin5").attr("class","");$("#Admin6").attr("class","");$("#Admin7").attr("class","")}else if(manipulateSideMenuNumber==24){parent.document.title="Administration Area - Newletter";$("#Admin1").attr("class","");$("#Admin2").attr("class","");$("#Admin3").attr("class","indent");$("#Admin4").attr("class","");$("#Admin5").attr("class","current");$("#Admin6").attr("class","");$("#Admin7").attr("class","")}else if(manipulateSideMenuNumber==25){parent.document.title="Administration Area - Moderate Posts";$("#Admin1").attr("class","");$("#Admin2").attr("class","");$("#Admin3").attr("class","indent");$("#Admin4").attr("class","");$("#Admin5").attr("class","");$("#Admin6").attr("class","current");$("#Admin7").attr("class","")}else if(manipulateSideMenuNumber==26){parent.document.title="WhereIsMyTransport - Edit Current Profile";$("#Home1").attr("class","");$("#Home2").attr("class","");$("#Home3").attr("class","");$("#About1").attr("class","");$("#About2").attr("class","");$("#About3").attr("class","");$("#About4").attr("class","");$("#News1").attr("class","");$("#News2").attr("class","");$("#News3").attr("class","");$("#Products1").attr("class","");$("#Products2").attr("class","");$("#Products3").attr("class","indent");$("#Products4").attr("class","indent");$("#Products5").attr("class","indent");$("#Products6").attr("class","indent");$("#Contact1").attr("class","");$("#Contact2").attr("class","");$("#Admin1").attr("class","current");$("#Admin2").attr("class","");$("#Admin3").attr("class","indent");$("#Admin4").attr("class","");$("#Admin5").attr("class","");$("#Admin6").attr("class","");$("#Admin7").attr("class","")}else if(manipulateSideMenuNumber==27){parent.document.title="WhereIsMyTransport - Password Recovery";$("#Home1").attr("class","");$("#Home2").attr("class","");$("#Home3").attr("class","");$("#About1").attr("class","");$("#About2").attr("class","");$("#About3").attr("class","");$("#About4").attr("class","");$("#News1").attr("class","");$("#News2").attr("class","");$("#News3").attr("class","");$("#Products1").attr("class","");$("#Products2").attr("class","");$("#Products3").attr("class","indent");$("#Products4").attr("class","indent");$("#Products5").attr("class","indent");$("#Products6").attr("class","indent");$("#Contact1").attr("class","");$("#Contact2").attr("class","");$("#Admin1").attr("class","current");$("#Admin2").attr("class","");$("#Admin3").attr("class","indent");$("#Admin4").attr("class","");$("#Admin5").attr("class","");$("#Admin6").attr("class","");$("#Admin7").attr("class","")}else if(manipulateSideMenuNumber==28){parent.document.title="Administration Area - Manage Companies";$("#Admin1").attr("class","");$("#Admin2").attr("class","");$("#Admin3").attr("class","indent");$("#Admin4").attr("class","");$("#Admin5").attr("class","");$("#Admin6").attr("class","");$("#Admin7").attr("class","current")}else if(manipulateSideMenuNumber==29){parent.document.title="Systems Portal";$("#Home1").attr("class","");$("#Home2").attr("class","");$("#Home3").attr("class","")}else if(manipulateSideMenuNumber==30){parent.document.title="WhereIsMyTransport - Welcome Operators";$("#Home1").attr("class","");$("#Home2").attr("class","current");$("#Home3").attr("class","")}manipulateSideMenuLevel=0;manipulateSideMenuNumber=0}else{$("#Home1").attr("class","current");$("#Home2").attr("class","");$("#Home3").attr("class","");$("#About1").attr("class","current");$("#About2").attr("class","");$("#About3").attr("class","");$("#About4").attr("class","");$("#News1").attr("class","current");$("#News2").attr("class","");$("#News3").attr("class","");$("#Products1").attr("class","current");$("#Products2").attr("class","");$("#Products3").attr("class","indent");$("#Products4").attr("class","indent");$("#Products5").attr("class","indent");$("#Products6").attr("class","indent");$("#Contact1").attr("class","current");$("#Contact2").attr("class","");$("#Admin1").attr("class","current");$("#Admin2").attr("class","");$("#Admin3").attr("class","indent");$("#Admin4").attr("class","");$("#Admin5").attr("class","");$("#Admin6").attr("class","");$("#Admin7").attr("class","")}}function changePageFromInsideIFrame(f,a,c,d,e,b){unFocus.History.addHistory(b);isBrowserButtonEvent="yes";browserPressFirstLoop="yes";manipulateSideMenuLevel=e;manipulateSideMenuNumber=b;currentPage=f;newSideMenu="#side"+d;swap(a+"Link",a+"On");unbindallMenus();mainAreaMove(c)}function growPage(a){growToHeight=a;document.getElementById("DivMasterHolder").style.height=growToHeight;$(document.getElementById("tr")).attr("height",growToHeight);$(document.getElementById("tl")).attr("height",growToHeight);if(newFrame=="iFrame1"){window.frames.iFrame1.document.getElementById("RHSOuter").style.height=growToHeight;window.frames.iFrame1.document.getElementById("RHS").style.height=growToHeight;$(window.frames.iFrame1.document.getElementById("RHSInner")).attr("height",growToHeight);$("#iFrame1").animate({height:growToHeight},growToHeightTimer)}else if(newFrame=="iFrame2"){window.frames.iFrame2.document.getElementById("RHSOuter").style.height=growToHeight;window.frames.iFrame2.document.getElementById("RHS").style.height=growToHeight;$(window.frames.iFrame2.document.getElementById("RHSInner")).attr("height",growToHeight);$("#iFrame2").animate({height:growToHeight},growToHeightTimer)}else{window.frames.iFrame0.document.getElementById("RHSOuter").style.height=growToHeight;window.frames.iFrame0.document.getElementById("RHS").style.height=growToHeight;$(window.frames.iFrame0.document.getElementById("RHSInner")).attr("height",growToHeight);$("#iFrame0").animate({height:growToHeight},growToHeightTimer)}}function changePageFromBrowserButton(f){var e="",d="",b="",a=f;urlHistoryArray[urlCounter]=top.window.location.href;browserHistoryLength=top.window.history.length;urlCounter+=1;if(isBrowserButtonEvent=="yes"){var c="";if(top.window.location.href.indexOf("?")!=-1){a=top.window.location.href.substring(top.window.location.href.indexOf("#")+1,top.window.location.href.indexOf("?"));c=top.window.location.href.substring(top.window.location.href.indexOf("?"),top.window.location.href.length)}else a=top.window.location.href.substring(top.window.location.href.indexOf("#")+1,top.window.location.href.length);if(a!="")if(a==1){e="Interfaces/Frontend/HomeInterface/Default.aspx"+c;d="home";b="Home"}else if(a==2){e="Interfaces/Frontend/HomeInterface/Demo.aspx"+c;d="home";b="Home"}else if(a==3){e="Interfaces/Frontend/HomeInterface/SystemVideos.aspx"+c;d="home";b="Home"}else if(a==4){e="Interfaces/Frontend/AboutInterface/Default.aspx"+c;d="about";b="About"}else if(a==5){e="Interfaces/Frontend/AboutInterface/Vision.aspx"+c;d="about";b="About"}else if(a==6){e="Interfaces/Frontend/AboutInterface/Affiliates.aspx"+c;d="about";b="About"}else if(a==7){e="Interfaces/Frontend/AboutInterface/Accolades.aspx"+c;d="about";b="About"}else if(a==8){e="Interfaces/Frontend/NewsInterface/Default.aspx"+c;d="news";b="News"}else if(a==9){e="Interfaces/Frontend/NewsInterface/Articles.aspx"+c;d="news";b="News"}else if(a==10){e="Interfaces/Frontend/NewsInterface/SoundBytes.aspx"+c;d="news";b="News"}else if(a==11){e="Interfaces/Frontend/ProductsInterface/Default.aspx"+c;d="products";b="Products"}else if(a==12){e="Interfaces/Frontend/ProductsInterface/Architecture.aspx"+c;d="products";b="Products"}else if(a==13){e="Interfaces/Frontend/ProductsInterface/Bus.aspx"+c;d="products";b="Products"}else if(a==14){e="Interfaces/Frontend/ProductsInterface/Shuttle.aspx"+c;d="products";b="Products"}else if(a==15){e="Interfaces/Frontend/ProductsInterface/Taxi.aspx"+c;d="products";b="Products"}else if(a==16){e="Interfaces/Frontend/ProductsInterface/Train.aspx"+c;d="products";b="Products"}else if(a==17){e="Interfaces/Frontend/ContactInterface/Default.aspx"+c;d="contact";b="Contact"}else if(a==18){e="Interfaces/Frontend/ContactInterface/Form.aspx"+c;d="contact";b="Contact"}else if(a==19){e="Interfaces/Frontend/HomeInterface/Activation.aspx"+c;d="home";b="Home"}else if(a==20){e="Interfaces/Frontend/AdminInterface/Default.aspx"+c;d="admin";b="Admin"}else if(a==21){e="Interfaces/Frontend/AdminInterface/ManageUsers.aspx"+c;d="admin";b="Admin"}else if(a==22){e="Interfaces/Frontend/AdminInterface/CreateUser.aspx"+c;d="admin";b="Admin"}else if(a==23){e="Interfaces/Frontend/AdminInterface/ManageForums.aspx"+c;d="admin";b="Admin"}else if(a==24){e="Interfaces/Frontend/AdminInterface/SendNewsletter.aspx"+c;d="admin";b="Admin"}else if(a==25){e="Interfaces/Frontend/AdminInterface/ManageUnapprovedPosts.aspx"+c;d="admin";b="Admin"}else if(a==26){e="Interfaces/Frontend/GeneralInterface/EditProfile.aspx"+c;d="home";b="Home"}else if(a==27){e="Interfaces/Frontend/GeneralInterface/PasswordRecovery.aspx"+c;d="home";b="Home"}else if(a==28){e="Interfaces/Frontend/AdminInterface/CreateCompany.aspx"+c;d="admin";b="Admin"}else if(a==29){e="Interfaces/Frontend/AdminInterface/SystemsPortal.aspx"+c;d="home";b="Home"}else if(a==30){e="Interfaces/Frontend/HomeInterface/Home.aspx"+c;d="home";b="Home"}}else return;firstPage=="no"&&changePageFromInsideIFrame(e,d,"no",b,"1",a)};