function StaticImage(b){var a=this;this.origWidth=0;this.origHeight=0;this.currentWidth=0;this.currentHeight=0;this.div=document.createElement("div");this.div.style.position="absolute";this.div.style.top="0px";this.div.style.left="0px";this.image=document.createElement("img");this.div.appendChild(this.image);this.image.onload=function(){};this.image.src=b}StaticImage.prototype.hide=function(){this.image.className="alphaZero"};StaticImage.prototype.show=function(){var a=this;window.setTimeout(function(){a.image.className="fadeIn"},0)};StaticImage.prototype.setLocation=function(a,b){this.div.style.position="absolute";this.div.style.left=a+"px";this.div.style.top=b+"px"};StaticImage.prototype.addTopPadding=function(a){this.div.style.paddingTop=a+"px"};StaticImage.prototype.addBottomPadding=function(a){this.div.style.paddingBottom=a+"px"};StaticImage.prototype.addLeftPadding=function(a){this.div.style.paddingLeft=a+"px"};StaticImage.prototype.addRightPadding=function(a){this.div.style.paddingRight=a+"px"};function Device(n,d,p,k,h,b){var o=this;this.div=document.createElement("div");this.div.style.position="absolute";this.div.style.top=p+"px";this.div.style.left=d+"px";var f=new WebImage(n);this.div.appendChild(f.div);this.holderDiv=document.createElement("div");this.holderDiv.style.position="absolute";this.holderDiv.style.left=k+"px";this.holderDiv.style.top=h+"px";this.div.appendChild(this.holderDiv);this.dataArray=b;this.imageArray=new Array();for(var g=0;g<this.dataArray.length;g++){this.imageArray.push(new StaticImage(this.dataArray[g]))}var m=setInterval(c,3000);var a=0;var j=0;function c(){o.imageArray[a].hide();o.holderDiv.appendChild(o.imageArray[a].div);o.imageArray[a].show();a++;j++;if(j>2){o.holderDiv.removeChild(o.holderDiv.firstChild)}if(a==4){a=0}}function e(){clearInterval(m)}}function HeroAnimation(b,d,a,c){this.div=document.createElement("div");this.div.style.position="absolute";this.div.style.top=c+"px";this.div.style.left=a+"px";this.div.style.width=b+"px";this.div.style.height=d+"px";this.div.className="HeroBackground";tvArray=new Array();tvArray.push("libs/images/hero/tv/001.jpg");tvArray.push("libs/images/hero/tv/002.jpg");tvArray.push("libs/images/hero/tv/003.jpg");tvArray.push("libs/images/hero/tv/004.jpg");tvArray.push("libs/images/hero/tv/005.jpg");deviceTv=new Device("libs/images/deviceTv.png",182,14,27,27,tvArray);this.div.appendChild(deviceTv.div);cinemaArray=new Array();cinemaArray.push("libs/images/hero/cinema/006.jpg");cinemaArray.push("libs/images/hero/cinema/007.jpg");cinemaArray.push("libs/images/hero/cinema/008.jpg");cinemaArray.push("libs/images/hero/cinema/009.jpg");cinemaArray.push("libs/images/hero/cinema/010.jpg");deviceCinema=new Device("libs/images/deviceCinema.png",26,150,25,23,cinemaArray);this.div.appendChild(deviceCinema.div);laptopArray=new Array();laptopArray.push("libs/images/hero/laptop/011.jpg");laptopArray.push("libs/images/hero/laptop/012.jpg");laptopArray.push("libs/images/hero/laptop/013.jpg");laptopArray.push("libs/images/hero/laptop/014.jpg");laptopArray.push("libs/images/hero/laptop/015.jpg");deviceLaptop=new Device("libs/images/deviceLaptop.png",294,282,55,17,laptopArray);this.div.appendChild(deviceLaptop.div);ipadArray=new Array();ipadArray.push("libs/images/hero/ipad/016.jpg");ipadArray.push("libs/images/hero/ipad/017.jpg");ipadArray.push("libs/images/hero/ipad/018.jpg");ipadArray.push("libs/images/hero/ipad/019.jpg");ipadArray.push("libs/images/hero/ipad/020.jpg");deviceIpad=new Device("libs/images/deviceIpad.png",640,310,23,18,ipadArray);this.div.appendChild(deviceIpad.div);playbookArray=new Array();playbookArray.push("libs/images/hero/playbook/021.jpg");playbookArray.push("libs/images/hero/playbook/022.jpg");playbookArray.push("libs/images/hero/playbook/023.jpg");playbookArray.push("libs/images/hero/playbook/024.jpg");playbookArray.push("libs/images/hero/playbook/025.jpg");devicePlaybook=new Device("libs/images/devicePlaybook.png",760,375,17,16,playbookArray);this.div.appendChild(devicePlaybook.div);androidArray=new Array();androidArray.push("libs/images/hero/android/026.jpg");androidArray.push("libs/images/hero/android/027.jpg");androidArray.push("libs/images/hero/android/028.jpg");androidArray.push("libs/images/hero/android/029.jpg");androidArray.push("libs/images/hero/android/030.jpg");deviceAndroid=new Device("libs/images/deviceAndroid.png",860,412,12,8,androidArray);this.div.appendChild(deviceAndroid.div)}HeroAnimation.prototype.setLocation=function(a,b){this.div.style.position="absolute";this.div.style.left=a+"px";this.div.style.top=b+"px"};HeroAnimation.prototype.addTopPadding=function(a){this.div.style.paddingTop=a+"px"};HeroAnimation.prototype.addBottomPadding=function(a){this.div.style.paddingBottom=a+"px"};HeroAnimation.prototype.addLeftPadding=function(a){this.div.style.paddingLeft=a+"px"};HeroAnimation.prototype.addRightPadding=function(a){this.div.style.paddingRight=a+"px"};function TextLink(b,g,d,e,i,f){var a=this;this.link=d;this.linkText=e;this.div=document.createElement("div");this.div.style.width=b+"px";this.div.style.height=g+"px";var c=document.createElement("a");c.setAttribute("class",f);c.setAttribute("className",f);c.setAttribute("href",this.link);c.setAttribute("target",i);c.innerHTML=this.linkText;this.div.appendChild(c)}TextLink.prototype.setLocation=function(a,b){this.div.style.position="absolute";this.div.style.left=a+"px";this.div.style.top=b+"px"};function TextObject(a,b,e,d,f,c,g){this.width=a;this.height=b;this.containerWidth=a;this.containerHeight=b;this.div=document.createElement("div");this.div.style.width=a+"px";this.div.style.height=b+"px";this.div.overflow="hidden";this.textBox=document.createElement("p");this.textBox.style.fontFamily=d;this.textBox.style.color=c;this.textBox.style.fontSize=f+"px";if(g=="center"){this.textBox.style.textAlign="center"}if(g=="right"){this.textBox.style.textAlign="right"}this.textBox.innerHTML=e;this.div.appendChild(this.textBox)}TextObject.prototype.setLocation=function(a,b){this.div.style.position="absolute";this.div.style.left=a+"px";this.div.style.top=b+"px"};TextObject.prototype.setX=function(a){this.div.style.position="absolute";this.div.style.left=a+"px"};TextObject.prototype.setY=function(a){this.div.style.position="absolute";this.div.style.top=a+"px"};TextObject.prototype.setValue=function(a){this.textBox.innerHTML=a};TextObject.prototype.hide=function(){this.div.style.visibility="hidden"};TextObject.prototype.show=function(){this.div.style.visibility="visible"};function TextLabel(b,c,d,a){this.width=b;this.height=c;this.div=document.createElement("div");this.div.style.width=b+"px";this.div.style.height=c+"px";this.div.style.position="absolute";var e=document.createElement("p");e.className=a;e.appendChild(document.createTextNode(d));this.div.appendChild(e)}TextLabel.prototype.setLocation=function(a,b){this.div.style.left=a+"px";this.div.style.top=b+"px"};function TextButton(b,e,f,a,c){this.width=b;this.height=e;this.div=document.createElement("div");this.div.style.width=b+"px";this.div.style.height=e+"px";this.div.style.position="absolute";var d=document.createElement("a");d.setAttribute("class",a);d.setAttribute("href",c);d.innerHTML=f;this.div.appendChild(d)}TextButton.prototype.setLocation=function(a,b){this.div.style.left=a+"px";this.div.style.top=b+"px"};function ColorSquare(b,e,a,d,c,f){this.containerWidth=b;this.containerHeight=e;this.div=document.createElement("div");this.div.style.width=b+"px";this.div.style.height=e+"px";this.div.style.position="absolute";this.div.style.top=d+"px";this.div.style.left=a+"px";this.div.style.background=c;this.div.style.opacity=f;this.div.overflow="hidden"}ColorSquare.prototype.setX=function(a){this.div.style.left=a+"px"};ColorSquare.prototype.setY=function(a){this.div.style.top=a+"px"};ColorSquare.prototype.setLocation=function(a,b){this.div.style.left=a+"px";this.div.style.top=b+"px"};ColorSquare.prototype.setWidth=function(a){this.containerWidth=a;this.div.style.width=a+"px"};ColorSquare.prototype.setHeight=function(a){this.containerHeight=a;this.div.style.height=a+"px"};ColorSquare.prototype.setAlpha=function(b){this.div.style.opacity=b};ColorSquare.prototype.setSize=function(a,b){this.containerWidth=a;this.containerHeight=b;this.div.style.width=a+"px";this.div.style.height=b+"px"};function WebImage(b){var a=this;this.origWidth=0;this.origHeight=0;this.currentWidth=0;this.currentHeight=0;this.div=document.createElement("div");this.div.style.webkitUserSelect="none";this.image=document.createElement("img");this.image.className="alphaZero";this.div.appendChild(this.image);this.image.onload=function(){a.origWidth=this.width;a.origHeight=this.height;this.className="fadeIn"};this.image.src=b}WebImage.prototype.addLink=function(a){this.link=a;if(browserIE==true){this.image.attachEvent("onmouseover",c);this.image.attachEvent("onmouseout",b);this.image.attachEvent("onmouseup",d)}else{this.image.addEventListener("mouseover",c,true);this.image.addEventListener("mouseout",b,true);this.image.addEventListener("mouseup",d,true)}function c(e){this.className="badgeOver"}function b(e){this.className="badgeOut"}function d(e){window.open(a,"_blank")}};WebImage.prototype.setLocation=function(a,b){this.div.style.position="absolute";this.div.style.left=a+"px";this.div.style.top=b+"px"};WebImage.prototype.addTopPadding=function(a){this.div.style.paddingTop=a+"px"};WebImage.prototype.addBottomPadding=function(a){this.div.style.paddingBottom=a+"px"};WebImage.prototype.addLeftPadding=function(a){this.div.style.paddingLeft=a+"px"};WebImage.prototype.addRightPadding=function(a){this.div.style.paddingRight=a+"px"};function TextBlock(b,c,d,a){this.width=b;this.height=c;this.div=document.createElement("div");this.div.style.width=b+"px";this.div.style.height=c+"px";var e=document.createElement("p");e.className=a;e.appendChild(document.createTextNode(d));this.div.appendChild(e)}TextBlock.prototype.setLocation=function(a,b){this.div.style.position="absolute";this.div.style.left=a+"px";this.div.style.top=b+"px"};function TextField(d,i,l,g,c,j,e,b,k){var m=this;this.containerWidth=d+g;this.containerHeight=c;this.div=document.createElement("div");this.div.style.top=0+"px";this.div.style.left=0+"px";this.div.style.position="absolute";this.p=document.createElement("p");this.p.setAttribute("id","label");this.p.style.color="#FFFFFF";this.p.style.fontSize="13px";this.p.style.webkitUserSelect="none";this.p.style.textAlign=l;this.p.style.position="absolute";this.p.style.top=0+"px";this.p.style.left=0+"px";this.p.style.width=d+"px";this.p.style.height=i+"px";this.p.style.padding="6px";this.p.appendChild(document.createTextNode(e));this.div.appendChild(this.p);this.field=document.createElement("input");this.field.style.width=g+"px";this.field.style.height=c+"px";this.field.style.fontSize="13px";this.field.style.position="absolute";this.field.style.top=0+"px";this.field.style.left=d+10+"px";this.field.style.background="#333333";this.field.style.border="thin";this.field.style.borderColor="#555555";this.field.style.borderStyle="solid";this.field.style.color="#DDDDDD";this.field.style.paddingLeft="5px";this.field.style.paddingRight="5px";if(k=="text"){this.field.type="text"}else{if(k=="password"){this.field.type="password"}}this.field.value=b;this.div.appendChild(this.field);if(browserIE==true){this.field.attachEvent("onfocus",f);this.field.attachEvent("onchange",h);this.field.attachEvent("onblur",a)}else{this.field.addEventListener("focus",f,true);this.field.addEventListener("change",h,true);this.field.addEventListener("blur",a,true)}function f(n){m.field.style.borderColor="#CCCCCC";m.field.style.outline="none"}function h(n){m.field.style.borderColor="#555555"}function a(n){m.field.style.borderColor="#555555";m.field.style.outline="none"}}TextField.prototype.makePassword=function(){this.field.type="password"};TextField.prototype.getValue=function(){return this.field.value};TextField.prototype.setLocation=function(a,b){this.div.style.left=a+"px";this.div.style.top=b+"px"};function ThreeColumn(e,d,c,a,b){this.width=a;this.height=b;this.colWidth=a/3;this.div=document.createElement("div");this.div.style.width=this.width+"px";this.div.style.height=this.height+"px";this.div.style.position="absolute";this.div1=document.createElement("div");this.div1.style.position="absolute";this.div1.style.width=this.colWidth+"px";this.div1.style.height=this.height+"px";this.div1.style.top=0+"px";this.div1.style.left=0+"px";this.div1.appendChild(e.div);this.div2=document.createElement("div");this.div2.style.position="absolute";this.div2.style.width=this.colWidth+"px";this.div2.style.height=this.height+"px";this.div2.style.top=0+"px";this.div2.style.left=this.colWidth+"px";this.div2.appendChild(d.div);this.div3=document.createElement("div");this.div3.style.position="absolute";this.div3.style.width=this.colWidth+"px";this.div3.style.height=this.height+"px";this.div3.style.top=0+"px";this.div3.style.left=(this.colWidth*2)+"px";this.div3.appendChild(c.div);this.div.appendChild(this.div1);this.div.appendChild(this.div2);this.div.appendChild(this.div3)}ThreeColumn.prototype.setX=function(a){this.div.style.position="absolute";this.div.style.left=a+"px"};ThreeColumn.prototype.setY=function(a){this.div.style.position="absolute";this.div.style.top=a+"px"};ThreeColumn.prototype.setLocation=function(a,b){this.div.style.position="absolute";this.div.style.left=a+"px";this.div.style.top=b+"px"};ThreeColumn.prototype.addTopPadding=function(a){this.div.style.paddingTop=a+"px"};ThreeColumn.prototype.addBottomPadding=function(a){this.div.style.paddingBottom=a+"px"};ThreeColumn.prototype.addLeftPadding=function(a){this.div.style.paddingLeft=a+"px"};ThreeColumn.prototype.addRightPadding=function(a){this.div.style.paddingRight=a+"px"};function FiveColumn(g,f,e,d,c,a,b){this.width=a;this.height=b;this.colWidth=a/5;this.div=document.createElement("div");this.div.style.width=this.width+"px";this.div.style.height=this.height+"px";this.div.style.position="absolute";this.div1=document.createElement("div");this.div1.style.position="absolute";this.div1.style.width=this.colWidth+"px";this.div1.style.height=this.height+"px";this.div1.style.top=0+"px";this.div1.style.left=0+"px";this.div1.appendChild(g.div);this.div2=document.createElement("div");this.div2.style.position="absolute";this.div2.style.width=this.colWidth+"px";this.div2.style.height=this.height+"px";this.div2.style.top=0+"px";this.div2.style.left=this.colWidth+"px";this.div2.appendChild(f.div);this.div3=document.createElement("div");this.div3.style.position="absolute";this.div3.style.width=this.colWidth+"px";this.div3.style.height=this.height+"px";this.div3.style.top=0+"px";this.div3.style.left=(this.colWidth*2)+"px";this.div3.appendChild(e.div);this.div4=document.createElement("div");this.div4.style.position="absolute";this.div4.style.width=this.colWidth+"px";this.div4.style.height=this.height+"px";this.div4.style.top=0+"px";this.div4.style.left=(this.colWidth*3)+"px";this.div4.appendChild(d.div);this.div5=document.createElement("div");this.div5.style.position="absolute";this.div5.style.width=this.colWidth+"px";this.div5.style.height=this.height+"px";this.div5.style.top=0+"px";this.div5.style.left=(this.colWidth*4)+"px";this.div5.appendChild(c.div);this.div.appendChild(this.div1);this.div.appendChild(this.div2);this.div.appendChild(this.div3);this.div.appendChild(this.div4);this.div.appendChild(this.div5)}FiveColumn.prototype.setLocation=function(a,b){this.div.style.position="absolute";this.div.style.left=a+"px";this.div.style.top=b+"px"};function Badge(j,f,i,b,c){var k=this;this.width=j;this.height=f;this.link=b;this.linkText=c;this.image=document.createElement("img");this.image.className="alphaZero";this.div=document.createElement("div");this.div.style.position="absolute";this.div.style.left="0px";this.div.style.right="0px";this.div.style.width=this.width+"px";this.div.style.height=this.height+"px";this.buttonDiv=document.createElement("div");this.buttonDiv.style.position="absolute";this.buttonDiv.style.top=this.height-20+"px";this.buttonDiv.style.left=0+"px";this.div.appendChild(this.buttonDiv);var d=document.createElement("a");d.setAttribute("class","badgeLink");d.setAttribute("href",this.link);d.setAttribute("target","_blank");d.innerHTML=this.linkText;this.buttonDiv.appendChild(d);this.imageDiv=document.createElement("div");this.imageDiv.style.position="absolute";this.div.appendChild(this.imageDiv);this.imageDiv.appendChild(this.image);if(browserIE==true){this.image.attachEvent("onmouseover",e);this.image.attachEvent("onmouseout",a);this.image.attachEvent("onmouseup",g)}else{this.image.addEventListener("mouseover",e,true);this.image.addEventListener("mouseout",a,true);this.image.addEventListener("mouseup",g,true)}this.image.onload=function(){var m=Math.round((k.width-this.width)/2);var l=Math.round((k.height-this.height)/2);k.imageDiv.style.left=m+"px";k.imageDiv.style.top=l+"px";this.className="fadeIn";var h=l+this.height+10;k.buttonDiv.style.left=m+"px";k.buttonDiv.style.top=h+"px"};function e(h){k.image.className="badgeOver"}function a(h){k.image.className="badgeOut"}function g(h){window.open(k.link,"_blank")}this.image.src=i}Badge.prototype.setLocation=function(a,b){this.div.style.position="absolute";this.div.style.left=a+"px";this.div.style.top=b+"px"};function FourColumn(f,e,d,c,a,b){this.width=a;this.height=b;this.colWidth=a/4;this.div=document.createElement("div");this.div.style.width=this.width+"px";this.div.style.height=this.height+"px";this.div.style.position="absolute";this.div1=document.createElement("div");this.div1.style.position="absolute";this.div1.style.width=this.colWidth+"px";this.div1.style.height=this.height+"px";this.div1.style.top=0+"px";this.div1.style.left=0+"px";this.div1.appendChild(f.div);this.div2=document.createElement("div");this.div2.style.position="absolute";this.div2.style.width=this.colWidth+"px";this.div2.style.height=this.height+"px";this.div2.style.top=0+"px";this.div2.style.left=this.colWidth+"px";this.div2.appendChild(e.div);this.div3=document.createElement("div");this.div3.style.position="absolute";this.div3.style.width=this.colWidth+"px";this.div3.style.height=this.height+"px";this.div3.style.top=0+"px";this.div3.style.left=(this.colWidth*2)+"px";this.div3.appendChild(d.div);this.div4=document.createElement("div");this.div4.style.position="absolute";this.div4.style.width=this.colWidth+"px";this.div4.style.height=this.height+"px";this.div4.style.top=0+"px";this.div4.style.left=(this.colWidth*3)+"px";this.div4.appendChild(c.div);this.div.appendChild(this.div1);this.div.appendChild(this.div2);this.div.appendChild(this.div3);this.div.appendChild(this.div4)}FourColumn.prototype.setLocation=function(a,b){this.div.style.position="absolute";this.div.style.left=a+"px";this.div.style.top=b+"px"};function TabButton(g,d,b,i){var j=this;this.width=g;this.height=d;this.onState=false;this.idNumber=i;this.div=document.createElement("div");this.div.style.width=g+"px";this.div.style.height=d+"px";this.div.style.position="absolute";this.div.style.background="#000000";this.div.style.webkitUserSelect="none";this.div.style.outline="none";this.fill=document.createElement("div");this.fill.id="fill";this.fill.style.width=g+"px";this.fill.style.height=d+"px";this.fill.style.position="absolute";this.fill.style.left="0px";this.fill.style.top="0px";this.fill.className="buttonGradient";this.div.appendChild(this.fill);this.topStroke=document.createElement("div");this.topStroke.id="topStroke";this.topStroke.style.width=g+"px";this.topStroke.style.height="1px";this.topStroke.style.position="absolute";this.topStroke.style.left="0px";this.topStroke.style.top="0px";this.topStroke.style.background="#727272";this.div.appendChild(this.topStroke);this.bottomStroke1=document.createElement("div");this.bottomStroke1.id="bottomStroke1";this.bottomStroke1.style.width=g+"px";this.bottomStroke1.style.height="1px";this.bottomStroke1.style.position="absolute";this.bottomStroke1.style.left="0px";this.bottomStroke1.style.top=(d-2)+"px";this.bottomStroke1.style.background="#141414";this.div.appendChild(this.bottomStroke1);this.bottomStroke2=document.createElement("div");this.bottomStroke2.id="bottomStroke2";this.bottomStroke2.style.width=g+"px";this.bottomStroke2.style.height="1px";this.bottomStroke2.style.position="absolute";this.bottomStroke2.style.left="0px";this.bottomStroke2.style.top=(d-1)+"px";this.bottomStroke2.style.background="#3B3B3B";this.div.appendChild(this.bottomStroke2);this.p=document.createElement("p");this.p.setAttribute("id","label");this.p.style.color="#FFFFFF";this.p.style.fontSize="13px";this.p.style.textAlign="center";this.p.style.lineHeight="13px";this.p.style.webkitUserSelect="none";this.p.style.pointerEvents="none";this.p.style.position="absolute";this.p.style.width=this.width+"px";this.p.style.top="12px";this.p.appendChild(document.createTextNode(b));this.div.appendChild(this.p);if(browserIE==true){this.div.attachEvent("onmouseover",c);this.div.attachEvent("onmouseout",a);this.div.attachEvent("onmousedown",f);this.div.attachEvent("onmouseup",e)}else{this.div.addEventListener("mouseover",c,true);this.div.addEventListener("mouseout",a,true);this.div.addEventListener("mousedown",f,true);this.div.addEventListener("mouseup",e,true)}function c(h){if(j.onState==false){j.fill.className="buttonGradientOver"}}function a(h){if(j.onState==false){j.fill.className="buttonGradientOut"}}function f(h){if(j.onState==false){j.fill.className="buttonGradientDown"}}function e(h){if(j.onState==false){j.fill.className="buttonGradientOver"}Application.tabset.updateTabs(j.idNumber)}}TabButton.prototype.setLocation=function(a,b){this.div.style.left=a+"px";this.div.style.top=b+"px"};TabButton.prototype.turnOn=function(){if(this.onState==false){this.fill.className="buttonGradientOn";this.onState=true}};TabButton.prototype.turnOff=function(){if(this.onState==true){this.fill.className="buttonGradient";this.onState=false}};function SharpButton(j,f,d){var k=this;this.width=j;this.height=f;this.containerWidth=j;this.containerHeight=f;this.onState=false;this.div=document.createElement("div");this.div.style.width=j+"px";this.div.style.height=f+"px";this.div.style.position="absolute";this.div.style.background="#000000";this.div.style.webkitUserSelect="none";this.div.style.outline="none";this.fill=document.createElement("div");this.fill.id="fill";this.fill.style.width=(j-2)+"px";this.fill.style.height=(f-2)+"px";this.fill.style.position="absolute";this.fill.style.left="1px";this.fill.style.top="1px";this.fill.className="buttonGradient";this.div.appendChild(this.fill);this.topStroke=document.createElement("div");this.topStroke.id="topStroke";this.topStroke.style.width=(j-2)+"px";this.topStroke.style.height="1px";this.topStroke.style.position="absolute";this.topStroke.style.left="1px";this.topStroke.style.top="1px";this.topStroke.style.background="#FFFFFF";this.topStroke.style.opacity="0.25";this.div.appendChild(this.topStroke);this.bottomStroke=document.createElement("div");this.bottomStroke.id="bottomStroke";this.bottomStroke.style.width=j+"px";this.bottomStroke.style.height="1px";this.bottomStroke.style.position="absolute";this.bottomStroke.style.left="0px";this.bottomStroke.style.top=f+"px";this.bottomStroke.style.background="#FFFFFF";this.bottomStroke.style.opacity="0.15";this.div.appendChild(this.bottomStroke);this.p=document.createElement("p");this.p.setAttribute("id","label");this.p.style.color="#FFFFFF";this.p.style.fontSize="13px";this.p.style.textAlign="center";this.p.style.lineHeight="13px";this.p.style.width=this.width+"px";this.p.style.webkitUserSelect="none";this.p.style.position="absolute";this.p.style.pointerEvents="none";this.p.style.top="10px";this.p.style.left="0px";this.p.appendChild(document.createTextNode(d));this.div.appendChild(this.p);var c=navigator.userAgent.toLowerCase();var b=false;if(c.search("iphone")>-1){b=true}else{if(c.search("ipad")>-1){b=true}else{if(c.search("android")>-1){b=true}else{if(c.search("playbook")>-1){b=true}else{if(c.search("blackberry")>-1){b=true}}}}}if(browserIE==true){this.div.attachEvent("onmouseover",e);this.div.attachEvent("onmouseout",a);this.div.attachEvent("onmousedown",i);this.div.attachEvent("onmouseup",g)}else{if(b){this.div.addEventListener("touchstart",i,true);this.div.addEventListener("touchend",g,true)}else{this.div.addEventListener("mouseover",e,true);this.div.addEventListener("mouseout",a,true);this.div.addEventListener("mousedown",i,true);this.div.addEventListener("mouseup",g,true)}}function e(h){if(k.onState==false){k.fill.className="buttonGradientOver"}}function a(h){if(k.onState==false){k.fill.className="buttonGradient"}}function i(h){k.fill.className="buttonGradientDown"}function g(h){k.fill.className="buttonGradientOver"}}SharpButton.prototype.createLabel=function(a){this.label=document.createElementNS("http://www.w3.org/2000/svg","text");this.label.setAttribute("x",this.width/2);this.label.setAttribute("text-anchor","middle");this.label.setAttribute("y",20);this.label.setAttribute("fill","#FFFFFF");this.label.setAttribute("font-family","Helvetica");this.label.setAttribute("font-size","13px");this.label.setAttribute("cursor","default");this.label.setAttribute("pointer-events","none");this.label.appendChild(document.createTextNode(a));this.div.appendChild(this.label)};SharpButton.prototype.setLocation=function(a,b){this.div.style.left=a+"px";this.div.style.top=b+"px"};SharpButton.prototype.turnOn=function(){this.fill.className="buttonGradientOn";this.onState=true};SharpButton.prototype.turnOff=function(){this.fill.className="buttonGradient";this.onState=false};SharpButton.prototype.toggle=function(){if(this.onState==false){this.fill.className="buttonGradientOn";this.onState=true}else{this.fill.className="buttonGradient";this.onState=false}};SharpButton.prototype.hide=function(){this.div.style.visibility="hidden"};SharpButton.prototype.show=function(){this.div.style.visibility="visible"};function Header(b,f,a,e,d,c){this.containerWidth=b;this.containerHeight=f;this.div=document.createElement("div");this.div.id=c;this.div.style.width=b+"px";this.div.style.height=f+"px";this.div.style.position="absolute";this.div.style.top=e+"px";this.div.style.left=a+"px";this.div.style.background="#000000";this.logo=new WebImage("libs/images/logo.png");this.div.appendChild(this.logo.div);this.logo.setLocation(0,42)}Header.prototype.setSize=function(a,b){this.containerWidth=a;this.containerHeight=b;this.arrange()};Header.prototype.arrange=function(){};Header.prototype.init=function(){};function Footer(d,i,c,g,f,e){this.containerWidth=d;this.containerHeight=i;this.div.id=e;this.div.style.width=d+"px";this.div.style.height=i+"px";this.div.style.position="absolute";this.div.style.top=g+"px";this.div.style.left=c+"px";this.div.style.background="#1C1C1C";var b=new TextObject(500,25,"&copy; 2011 FOTAGRAFT GALLERIES","Swiss721SWARoman",11,"#666666","left");b.setLocation(20,10);this.div.appendChild(b.div);var a=new TextLink(150,25,"mailto:sales@fotagraft.com","CONTACT US","_self","footerLink");a.setLocation(900,9);this.div.appendChild(a.div)}Footer.prototype.div=document.createElement("div");Footer.prototype.setSize=function(a,b){this.containerWidth=a;this.containerHeight=b;this.arrange()};Footer.prototype.arrange=function(){};Footer.prototype.init=function(){};function PanelHome(i,z,s,o,b){this.containerWidth=i;this.containerHeight=0;this.div=document.createElement("div");this.div.style.width=i+"px";this.div.style.height=z+"px";this.div.style.position="absolute";this.div.style.top=o+"px";this.div.style.left=s+"px";this.div.style.background=b;var f=document.createElement("p");f.className="heroHeadline";f.appendChild(document.createTextNode("Your photography. Everywhere."));this.div.appendChild(f);var e=document.createElement("p");e.className="heroSubheadline";e.appendChild(document.createTextNode("Online photo galleries viewable on PC's, TV and mobile devices."));this.div.appendChild(e);if(browserIE||mobileDevice){var B=new WebImage("libs/images/devices.jpg");B.addTopPadding(15);B.addBottomPadding(60);this.div.appendChild(B.div)}else{var B=new HeroAnimation(1000,475,0,140);this.div.appendChild(B.div)}heroLink=new TextLink(200,24,"http://weddings.davidwittig.com","Photos by David Wittig Photography","_blank","badgeLink");this.div.appendChild(heroLink.div);heroLink.setLocation(783,620);var r=new TextBlock(500,25,"MOBILE APPLICATIONS","sectionHeader");r.setLocation(0,660);this.div.appendChild(r.div);var v=new Badge(250,140,"libs/images/badgeApple.png","http://itunes.apple.com/us/app/fotagraft-galleries/id423182563?mt=8","Learn more");var j=new Badge(250,140,"libs/images/badgeAndroid.png","https://market.android.com/details?id=air.Fotagraft&feature=search_result","Learn more");var c=new Badge(250,140,"libs/images/badgeBlackberry.png","https://appworld.blackberry.com/webstore/content/31423","Learn more");var C=new Badge(250,140,"libs/images/badgeGoogletv.png","http://www.google.com/tv/","Learn more");var y=new FourColumn(v,j,c,C,1000,140);y.setLocation(0,670);this.div.appendChild(y.div);var d=new TextBlock(500,25,"EXAMPLES","sectionHeader");d.setLocation(0,860);this.div.appendChild(d.div);var q=new Badge(200,180,"libs/images/slide.png","http://demos.fotagraft.com/4019510/","Slide");var p=new Badge(200,180,"libs/images/configurable.png","http://demos.fotagraft.com/40144313/","Configurable");var n=new Badge(200,180,"libs/images/clean.png","http://demos.fotagraft.com/4018520/","Clean");var m=new Badge(200,180,"libs/images/audioshow.png","http://andrew.fotagraft.com/italy/","Audioshow");var k=new Badge(200,180,"libs/images/blog.png","http://www.fotagraft.com/examples/example2/","Blog");var u=new FiveColumn(q,p,n,m,k,1000,180);u.setLocation(0,860);this.div.appendChild(u.div);var A=new TextBlock(500,25,"HTML GALLERY","sectionHeader");A.setLocation(0,1100);this.div.appendChild(A.div);var g=new Badge(200,160,"libs/images/htmlgallery.png","http://www.fotagraft.com/beta/","Touch Optimized");this.div.appendChild(g.div);g.setLocation(0,1110);var a=new TextBlock(500,25,"APPLICATIONS AND WEB GALLERIES BUILT WITH:","sectionHeader");a.setLocation(0,1340);this.div.appendChild(a.div);var x=new WebImage("libs/images/tools.png");x.setLocation(20,1380);this.div.appendChild(x.div);this.arrange()}PanelHome.prototype.setSize=function(a,b){this.containerWidth=a;this.containerHeight=b;this.arrange()};PanelHome.prototype.arrange=function(){};PanelHome.prototype.init=function(){};function PanelScreenshots(c,f,b,e,d){this.containerWidth=c;this.containerHeight=f;this.div=document.createElement("div");this.div.style.width=c+"px";this.div.style.height=f+"px";this.div.style.position="absolute";this.div.style.top=e+"px";this.div.style.left=b+"px";this.div.style.background=d;var g=new TextBlock(300,30,"CONTROL PANEL","sectionHeader");g.setLocation(0,20);this.div.appendChild(g.div);img1=new WebImage("libs/images/thumbGalleries.png");img1.addLink("libs/images/screenGalleries.jpg");img1.setLocation(20,60);this.div.appendChild(img1.div);link1=new TextLink(200,24,"libs/images/screenGalleries.jpg","Gallery List","_blank","badgeLink");link1.setLocation(30,275);this.div.appendChild(link1.div);img2=new WebImage("libs/images/thumbEdit1.png");img2.addLink("libs/images/screenEdit1.jpg");img2.setLocation(350,60);this.div.appendChild(img2.div);link2=new TextLink(200,24,"libs/images/screenEdit1.jpg","Customize","_blank","badgeLink");link2.setLocation(360,275);this.div.appendChild(link2.div);img3=new WebImage("libs/images/thumbEdit2.png");img3.addLink("libs/images/screenEdit2.jpg");img3.setLocation(680,60);this.div.appendChild(img3.div);link3=new TextLink(200,24,"libs/images/screenEdit2.jpg","Customize","_blank","badgeLink");link3.setLocation(690,275);this.div.appendChild(link3.div);img4=new WebImage("libs/images/thumbImageBrowser.png");img4.addLink("libs/images/screenImageBrowser.jpg");img4.setLocation(20,320);this.div.appendChild(img4.div);link4=new TextLink(200,24,"libs/images/screenImageBrowser.jpg","Image Browser","_blank","badgeLink");link4.setLocation(30,530);this.div.appendChild(link4.div);img5=new WebImage("libs/images/thumbStats.png");img5.addLink("libs/images/screenTracking.jpg");img5.setLocation(350,320);this.div.appendChild(img5.div);link5=new TextLink(200,24,"libs/images/screenTracking.jpg","Visitor Stats","_blank","badgeLink");link5.setLocation(360,530);this.div.appendChild(link5.div);img6=new WebImage("libs/images/thumbPublished.png");img6.addLink("libs/images/screenPublished.jpg");img6.setLocation(680,320);this.div.appendChild(img6.div);link6=new TextLink(200,24,"libs/images/screenPublished.jpg","Embed Code","_blank","badgeLink");link6.setLocation(690,530);this.div.appendChild(link6.div);var i=new TextBlock(300,30,"GALLERIES","sectionHeader");i.setLocation(0,600);this.div.appendChild(i.div);img7=new WebImage("libs/images/thumbHomepage.png");img7.addLink("libs/images/screenHomepage.jpg");img7.setLocation(20,640);this.div.appendChild(img7.div);link7=new TextLink(200,24,"libs/images/screenHomepage.jpg","Account Homepage","_blank","badgeLink");link7.setLocation(30,850);this.div.appendChild(link7.div);img8=new WebImage("libs/images/thumbGalleryStandard.png");img8.addLink("libs/images/screenGalleryStandard.jpg");img8.setLocation(350,640);this.div.appendChild(img8.div);link8=new TextLink(200,24,"libs/images/screenGalleryStandard.jpg","Standard Gallery","_blank","badgeLink");link8.setLocation(360,850);this.div.appendChild(link8.div);img9=new WebImage("libs/images/thumbGalleryBlog.png");img9.addLink("libs/images/screenGalleryBlog.jpg");img9.setLocation(680,640);this.div.appendChild(img9.div);link9=new TextLink(200,24,"libs/images/screenGalleryBlog.jpg","White Gallery","_blank","badgeLink");link9.setLocation(690,850);this.div.appendChild(link9.div);var a=new TextBlock(300,30,"MOBILE APPS","sectionHeader");a.setLocation(0,920);this.div.appendChild(a.div);img10=new WebImage("libs/images/thumbIpadHomepage.png");img10.addLink("libs/images/screenIpadHomepage.jpg");img10.setLocation(24,960);this.div.appendChild(img10.div);link10=new TextLink(200,24,"libs/images/screenIpadHomepage.jpg","Ipad Gallery List","_blank","badgeLink");link10.setLocation(30,1180);this.div.appendChild(link10.div);img11=new WebImage("libs/images/thumbIpadGallery.png");img11.addLink("libs/images/screenIpadGallery.jpg");img11.setLocation(354,960);this.div.appendChild(img11.div);link11=new TextLink(200,24,"libs/images/screenIpadGallery.jpg","Ipad Gallery","_blank","badgeLink");link11.setLocation(360,1180);this.div.appendChild(link11.div);img12=new WebImage("libs/images/thumbAndroid.png");img12.addLink("libs/images/screenAndroid.jpg");img12.setLocation(680,1000);this.div.appendChild(img12.div);link12=new TextLink(200,24,"libs/images/screenAndroid.jpg","Android Phone","_blank","badgeLink");link12.setLocation(690,1180);this.div.appendChild(link12.div);this.arrange()}PanelScreenshots.prototype.setSize=function(a,b){this.containerWidth=a;this.containerHeight=b;this.arrange()};PanelScreenshots.prototype.arrange=function(){};PanelScreenshots.prototype.init=function(){};function PanelFeatures(b,f,a,d,c){this.containerWidth=b;this.containerHeight=0;this.div=document.createElement("div");this.div.style.width=b+"px";this.div.style.height=f+"px";this.div.style.position="absolute";this.div.style.top=d+"px";this.div.style.left=a+"px";this.div.style.background=c;var g="<p class=featureHeader>Nothing to Install</p><p class=featureDescription>Use any web browser - there is no software to download and install on your desktop or laptop and no serial numbers or licences to manage. Upgrades to our system are available instantly. </p><p class=featureHeader>Smart Scaling for All Resolutions</p><p class=featureDescription> If an image is larger than the available display resolution, it will be reduced to fit. If the image is smaller than available resolution, it will be displayed at 100% or optionally upscaled to fit the screen. </p><p class=featureHeader>Multiple Viewing Tools</p><p class=featureDescription>Audiences can select Grid View, Split View, or a single row of thumbnails to browse a gallery. Or, hide all of the interface elements  and simply view the large, beautiful images.  The interface is always  secondary to your beautiful images, and full screen viewing is always one mouse click away. </p><p class=featureHeader>Intelligent Bandwidth Management</p><p class=featureDescription>The gallery engine efficiently manages available bandwidth for streaming in images while idle. The audience can skip ahead and view an image at the end of the gallery. After that one is loaded, it goes back to loading in assets so they're ready when needed.</p><p class=featureHeader>No Size Restrictions</p><p class=featureDescription>Unlike some photo gallery sites that use predefined templates and tiny images, you can use photos as large as you want. The photos will always fit on the screen and always look their best.";this.col1div=document.createElement("div");this.col1div.style.width=460+"px";this.col1div.style.height=700+"px";this.col1div.style.position="absolute";this.col1div.style.top=20+"px";this.col1div.style.left=20+"px";this.col1div.innerHTML=g;this.div.appendChild(this.col1div);var e="<p class=featureHeader>Embed into your existing site</p><p class=featureDescription>When publishing each gallery, HTML embed code is presented for copying and pasting into an existing web page. You can either link directly to the new gallery URL or hide the fotagraft.com information from your audience.</p><p class=featureHeader>Lean and Mean</p><p class=featureDescription>Our gallery and portfolio viewers don't need to load massive javascript libraries, CSS files, toolbar images, and other web files. Our interface graphics are all vector based and very small. The loading of your gallery images and thumbnail images is sequenced so that your audience can begin viewing images right away, and unviewed images continue to load in the background so they are ready to be viewed instantly.</p><p class=featureHeader>Open or Passcode Protected</p><p class=featureDescription>Protect work from prying eyes and web crawlers. You can optionally assign a passcode so only your chosen audience can access a gallery.</p><p class=featureHeader>Add Music</p><p class=featureDescription>Most gallery templates have to ability to play up to 3 of your music tracks for better slideshows.</p>";this.col2div=document.createElement("div");this.col2div.style.width=460+"px";this.col2div.style.height=700+"px";this.col2div.style.position="absolute";this.col2div.style.top=20+"px";this.col2div.style.left=520+"px";this.col2div.innerHTML=e;this.div.appendChild(this.col2div);this.arrange()}PanelFeatures.prototype.setSize=function(a,b){this.containerWidth=a;this.containerHeight=b;this.arrange()};PanelFeatures.prototype.arrange=function(){};PanelFeatures.prototype.init=function(){};function PanelSignup(p,C,y,r,e){var G=this;this.containerWidth=p;this.containerHeight=C;this.div=document.createElement("div");this.div.style.width=p+"px";this.div.style.height=C+"px";this.div.style.position="absolute";this.div.style.top=r+"px";this.div.style.left=y+"px";this.div.style.background=e;this.formDiv=document.createElement("div");this.div.appendChild(this.formDiv);var B="The Fotagraft Gallery service is a paid service for professional photographers. There are no banner ads or any other form of intrusive advertising anywhere on our products. Annual subscription fees include updates to web based gallery players and no cost mobile applications.";var H=new TextBlock(960,50,B,"introBlock");this.div.appendChild(H.div);H.setLocation(20,30);var z=new TextBlock(960,50,"$199/Year (USD)","priceBlock");this.div.appendChild(z.div);z.setLocation(20,130);var q=new TextBlock(960,50,"Payments accepted through Google Checkout","heroSubheadline");this.div.appendChild(q.div);q.setLocation(20,165);var D=20;var j=240;var f=50;var b=new TextField(130,22,"right",300,25,false,"First name:","");this.formDiv.appendChild(b.div);b.setLocation(D,j);j+=f;var s=new TextField(130,22,"right",300,25,false,"Last name:","");this.formDiv.appendChild(s.div);s.setLocation(D,j);j+=f;var I=new TextField(130,22,"right",300,25,false,"Company name:","");this.formDiv.appendChild(I.div);I.setLocation(D,j);j+=f;var E=new TextField(130,22,"right",300,25,false,"Company website:","");this.formDiv.appendChild(E.div);E.setLocation(D,j);j+=f;var v=new TextField(130,22,"right",300,25,false,"Email:","");this.formDiv.appendChild(v.div);v.setLocation(D,j);j+=f;D=500;j=240;var o=new TextField(130,22,"right",300,25,false,"Street:","");this.formDiv.appendChild(o.div);o.setLocation(D,j);j+=f;var A=new TextField(130,22,"right",300,25,false,"City:","");this.formDiv.appendChild(A.div);A.setLocation(D,j);j+=f;var i=new TextField(130,22,"right",300,25,false,"State/Province:","");this.formDiv.appendChild(i.div);i.setLocation(D,j);j+=f;var x=new TextField(130,22,"right",300,25,false,"Country:","");this.formDiv.appendChild(x.div);x.setLocation(D,j);j+=f;var F=new TextField(130,22,"right",300,25,false,"ZIP/Postal Code:","");this.formDiv.appendChild(F.div);F.setLocation(D,j);j+=f+20;var g=new TextField(130,22,"right",300,25,false,"Username:","");this.formDiv.appendChild(g.div);g.setLocation(D,j);j+=f;var d=new TextField(130,22,"right",300,25,false,"Password:","");this.formDiv.appendChild(d.div);d.setLocation(D,j);j+=f;var a=new SharpButton(140,34,"Continue");this.formDiv.appendChild(a.div);a.setLocation(D+220,j);if(browserIE==true){a.div.attachEvent("onclick",m)}else{a.div.addEventListener("click",m,true)}function m(l){var h="firstname="+b.field.value;h+="&lastname="+s.field.value;h+="&companyname="+I.field.value;h+="&companywebsite="+E.field.value;h+="&email="+v.field.value;h+="&street="+o.field.value;h+="&city="+A.field.value;h+="&state="+i.field.value;h+="&country="+x.field.value;h+="&zip="+F.field.value;h+="&username="+g.field.value;h+="&password="+d.field.value;var t=new XMLHttpRequest();t.open("POST","http://www.fotagraft.com/fotaService.cfc?method=insertNewAccount");t.setRequestHeader("Content-Type","application/x-www-form-urlencoded");t.send(h);k()}this.twoDiv=document.createElement("div");var c=new TextBlock(960,50,"Complete your account signup:","heroSubheadline");this.twoDiv.appendChild(c.div);c.setLocation(20,100);var n=new TextButton(400,30,"> Process payment","textButton","http://www.fotagraft.com/checkout/cart.cfm");this.twoDiv.appendChild(n.div);n.setLocation(415,155);var u=new TextBlock(960,50,"Accounts are activated within 1 business day, most within a few hours.","noticeText");this.twoDiv.appendChild(u.div);u.setLocation(20,200);function k(){while(G.div.firstChild){G.div.removeChild(G.div.firstChild)}G.div.appendChild(G.twoDiv)}this.arrange()}PanelSignup.prototype.setSize=function(a,b){this.containerWidth=a;this.containerHeight=b;this.arrange()};PanelSignup.prototype.arrange=function(){};PanelSignup.prototype.init=function(){};function PanelLogin(c,g,b,f,e){this.containerWidth=c;this.containerHeight=g;this.div=document.createElement("div");this.div.style.width=c+"px";this.div.style.height=g+"px";this.div.style.position="absolute";this.div.style.top=f+"px";this.div.style.left=b+"px";this.div.style.background=e;var a=new TextObject(960,50,"Control Panel Version: 1.5.0","Swiss721SWARoman",18,"#999999","center");a.setLocation(20,100);this.div.appendChild(a.div);var d=new SharpButton(200,34,"Launch Control Panel");this.div.appendChild(d.div);d.setLocation(400,150);if(browserIE==true){d.div.attachEvent("onclick",i)}else{d.div.addEventListener("click",i,true)}function i(h){window.open("http://www.fotagraft.com/login.html")}this.arrange()}PanelLogin.prototype.setSize=function(a,b){this.containerWidth=a;this.containerHeight=b;this.arrange()};PanelLogin.prototype.arrange=function(){};PanelLogin.prototype.init=function(){};function Tabset(g,e,b,j,d,k){this.containerWidth=g;this.containerHeight=e;this.numTabs=5;this.div.id=k;this.div.style.width=g+"px";this.div.style.height=e+"px";this.div.style.position="absolute";this.div.style.top=j+"px";this.div.style.left=b+"px";this.div.style.background="#333333";this.panelHolderDiv.style.position="absolute";this.panelHolderDiv.style.top="40px";this.panelHolderDiv.style.left="0px";this.div.appendChild(this.panelHolderDiv);var a=0;this.buttonWidth=200;this.buttonHeight=40;var f=new Array("HOME","SCREENSHOTS","FEATURES","SIGN UP","LOGIN");for(var c=0;c<this.numTabs;c++){this.tabArray.push(new TabButton(this.buttonWidth,this.buttonHeight,f[c],c));this.div.appendChild(this.tabArray[c].div);this.tabArray[c].setLocation(a,0);a+=this.buttonWidth}this.panelArray.push(new PanelHome(1000,1560,0,0,"#333333"));this.panelArray.push(new PanelScreenshots(1000,1300,0,0,"#333333"));this.panelArray.push(new PanelFeatures(1000,600,0,0,"#333333"));this.panelArray.push(new PanelSignup(1000,800,0,0,"#333333"));this.panelArray.push(new PanelLogin(1000,600,0,0,"#333333"));this.tabArray[0].turnOn();this.panelHolderDiv.appendChild(this.panelArray[0].div)}Tabset.prototype.containerWidth=0;Tabset.prototype.containerHeight=0;Tabset.prototype.div=document.createElement("div");Tabset.prototype.panelHolderDiv=document.createElement("div");Tabset.prototype.tabArray=new Array();Tabset.prototype.panelArray=new Array();Tabset.prototype.updateTabs=function(b){for(var a=0;a<this.numTabs;a++){if(a==b){this.tabArray[a].turnOn();this.updatePanels(a)}else{this.tabArray[a].turnOff()}}};Tabset.prototype.updatePanels=function(a){while(this.panelHolderDiv.firstChild){this.panelHolderDiv.removeChild(this.panelHolderDiv.firstChild)}this.panelHolderDiv.appendChild(this.panelArray[a].div);this.containerHeight=this.buttonHeight+this.panelArray[a].div.offsetHeight;this.div.style.height=this.containerHeight+"px";Application.checkHeight()};Tabset.prototype.setSize=function(a,b){alert("setsize");this.containerWidth=a;this.containerHeight=b;this.arrange()};Tabset.prototype.arrange=function(){};Tabset.prototype.init=function(){};var browserName=navigator.appName;var browserVer=parseInt(navigator.appVersion);if((browserName=="Microsoft Internet Explorer"&&browserVer<=8)){browserIE=true}else{browserIE=false}var device;var uagent=navigator.userAgent.toLowerCase();if(browserIE==true){var browserWidth=document.body.offsetWidth;var browserHeight=document.body.offsetHeight}else{var browserWidth=window.innerWidth;var browserHeight=window.innerHeight}var mobileDevice=false;function detectDevice(){if(uagent.search("windows")>-1){device="windows"}else{if(uagent.search("macintosh")>-1){device="macintosh"}else{if(uagent.search("iphone")>-1){device="iphone";mobileDevice=true}else{if(uagent.search("ipad")>-1){device="ipad";mobileDevice=true}else{if(uagent.search("android")>-1){device="android";mobileDevice=true}else{if(uagent.search("blackberry")>-1){device="blackberry";mobileDevice=true}else{if(uagent.search("playbook")>-1){device="blackberry";mobileDevice=true}else{if(uagent.search("palm")>-1){device="palm";mobileDevice=true}else{if(device=="iphone"&&window.devicePixelRatio>=2){device="iphoneretina";mobileDevice=true}}}}}}}}}}detectDevice();var siteWidth=1000;var headerWidth=1000;var headerHeight=140;var footerWidth=1000;var footerHeight=37;var tabsetWidth=1000;var tabsetHeight=1560;var siteX=Math.round((browserWidth-siteWidth)/2);var siteY=0;var tabsetX=siteX;var tabsetY=headerHeight;var footerX=siteX;var footerY=headerHeight+tabsetHeight;var holderWidth=browserWidth;var holderHeight=browserHeight;var isPortrait=true;var Application={};Application.header=new Header(headerWidth,headerHeight,0,0,"#000000","headerID");Application.header.div.style.left=siteX+"px";Application.header.div.style.top=siteY+"px";document.body.appendChild(Application.header.div);Application.tabset=new Tabset(tabsetWidth,tabsetHeight,0,0,"#000000","tabsetID");Application.tabset.div.style.left=tabsetX+"px";Application.tabset.div.style.top=tabsetY+"px";document.body.appendChild(Application.tabset.div);Application.footer=new Footer(footerWidth,footerHeight,0,0,"footerID");Application.footer.div.style.left=footerX+"px";Application.footer.div.style.top=footerY+"px";document.body.appendChild(Application.footer.div);Application.checkHeight=function(){tabsetHeight=Application.tabset.containerHeight;setSizes()};function setSizes(){if(browserIE==true){browserWidth=document.body.offsetWidth;browserHeight=document.body.offsetHeight}else{browserWidth=window.innerWidth;browserHeight=window.innerHeight}if(device=="ipad"){}else{if(device=="iphone"){}else{if(device=="iphoneretina"){}else{if(device=="android"){}else{if(device=="playbook"){}else{}}}}}siteX=Math.round((browserWidth-siteWidth)/2);siteY=0;tabsetX=siteX;tabsetY=headerHeight;footerX=siteX;footerY=headerHeight+tabsetHeight;arrange()}function arrange(){Application.header.div.style.left=siteX+"px";Application.header.div.style.top=siteY+"px";Application.tabset.div.style.left=tabsetX+"px";Application.tabset.div.style.top=tabsetY+"px";Application.footer.div.style.left=footerX+"px";Application.footer.div.style.top=footerY+"px"}window.onresize=function(){setSizes()};window.onload=function(){setSizes()};
