var g_menuColor="#FFFFFF";var g_fontColorOff="#000000";var g_menuBorderColor="#CCCCCC";var g_PrimaryColor="#FF9900";var g_BrowserWidth=window.innerWidth;var g_hasLayers=(document.layers);var g_hasAll=(document.all);var g_hasGetElement=(document.getElementById);var undefined;var IE40=(navigator.appVersion.indexOf("MSIE 4.0")>=0);var IE45=(navigator.appVersion.indexOf("MSIE 4.5")>=0);var NS7=((navigator.userAgent.indexOf("Netscape/7")>=0)||(navigator.userAgent.indexOf("Safari")>=0));var NS6=(!g_hasAll&&g_hasGetElement);var g_sepText;if(g_hasGetElement||g_hasAll){if(IE40){g_sepText="<font color='#999999' size='1'>&nbsp;|&nbsp;</font>"}else{g_sepText="<span class='subNav' style='color:#999999'>&nbsp;|&nbsp;</span>"}}else{if(g_hasLayers){g_sepText="&nbsp;|&nbsp;"}}function outputMenusNow(){if(g_hasLayers){document.write("<layer id='topNav' position=relative; top=6; left=0; visibility=hide;>");writeMenuItems();document.write("</layer>")}else{if(g_hasGetElement||g_hasAll){document.write("<DIV id='topNav' style='position:relative; top:6; left:0'>");writeMenuItems();document.write("</DIV>")}}if(g_hasAll){centerDiv()}else{if(g_hasGetElement){centerNS6()}else{if(g_hasLayers){centerLayers()}}}}function globalnavStart(){if(g_hasLayers||NS6){if(g_hasLayers){initMenus()}var b=innerWidth;var a=innerHeight;onresize=function(){if(innerWidth!=b||innerHeight!=a){top.location.reload()}}}else{if(g_hasAll||g_hasGetElement){window.onresize=centerDiv}}}function showNavTip(b,a){if(b){showDDNav("globalNavTip",a)}else{hideDDNav("globalNavTip")}}function showDDNav(c,a){var b;if(g_hasGetElement||g_hasAll){if(g_hasGetElement){b=document.getElementById(c)}else{b=document.all[c]}if(b){if(b.style.visibility=="hidden"){b.innerHTML=a;b.style.visibility="visible"}}}else{if(g_hasLayers){b=document.layers[c];if(b){if(b.visibility=="hide"){b.innerHTML=a}}b.visibility="show"}}}function hideDDNav(b){var a;if(g_hasGetElement||g_hasAll){if(g_hasGetElement){a=document.getElementById(b)}else{a=document.all[b]}if(a){if(a.style.visibility=="visible"){a.style.visibility="hidden"}}}else{if(g_hasLayers){a=document.layers[b];if(a){if(a.visibility=="show"){a.visibility="hide"}}}}}function menuOver(layer){var menu=eval(layer);if(menu==null){return}var MenuURL=menu.document.links[0].href;var MenuText=menu.document.links[0].text;menu.document.open();menu.document.write("<a href="+MenuURL+"><font class='menuFonts' face='arial' color='"+g_PrimaryColor+"'>"+MenuText+"</font></a>");menu.document.close()}function menuOut(layer){var menu=eval(layer);if(menu==null){return}var MenuURL=menu.document.links[0].href;var MenuText=menu.document.links[0].text;menu.document.open();menu.document.write("<a href="+MenuURL+"><font class='menuFonts' face='arial' color='#000000'>"+MenuText+"</font></a>");menu.document.close()}function subOver(layer,itemStr,sepStr){var menu=eval(layer);if(menu==null){return}var MenuURL=menu.document.links[0].href;var MenuText=menu.document.links[0].text;menu.document.open();menu.document.write("<a href="+MenuURL+"><font class='menuFonts' size='2' face='arial' color='"+g_PrimaryColor+"'>"+itemStr+"<font color='#999999'>"+sepStr+"</font></font></a>");menu.document.close()}function subOut(layer,itemStr,sepStr){var menu=eval(layer);if(menu==null){return}var MenuURL=menu.document.links[0].href;var MenuText=menu.document.links[0].text;menu.document.open();menu.document.write("<a href="+MenuURL+"><font class='menuFonts' size='2' face='arial' color='#000000'>"+itemStr+"<font color='#999999'>"+sepStr+"</font></font></a>");menu.document.close()}function writeDiv(menuID,left,divTop,tdID,width){var divID="menu"+menuID;var menuData=eval("menuData"+menuID);if(menuData==null){return 0}var divLeft=parseInt(left);divLeft=divLeft+(menuID%7);divTop=divTop-1;var mousey=" onMouseover=\"showDDNav('"+divID+"');\" onMouseout=\"hideDDNav('"+divID+"');\" ";if(g_hasGetElement){if(NS6){objDiv='<div class="dropDownContainer" id="'+divID+'" style="left: '+divLeft+"; width: "+(width+2)+"; visibility:hidden; top: "+divTop+"; z-index:2; background-color: "+g_menuBorderColor+'; " '+mousey+" >";objDiv+='<div style="background-color:'+g_menuBorderColor+"; z-index:3; width:"+(width+2)+'; height:1;"></div>'}else{objDiv='<div class="dropDownContainer" id="'+divID+'" style="left: '+divLeft+";visibility: hidden;top: "+divTop+'; z-index:2; " '+mousey+" >"}}else{if(g_hasAll){objDiv='<div class="dropDownContainer" id="'+divID+'" style="left: '+divLeft+";visibility: hidden;top: "+divTop+'; z-index:2; "  '+mousey+" >"}}var leftText=(g_hasAll)?"":"left:1;";for(y=0;y<menuData.length/2;y++){var strItem=menuData[(y*2)];var strUrl=menuData[(y*2)+1];var strItemTip=strItem.replace("'","\\'");if(strUrl.search(/^javascript:/i)==-1){strUrl="doJump('"+strUrl+"')"}if(g_hasAll||NS6){objDiv+='<div id="x'+tdID+'" style="background-color:'+g_menuColor+"; z-index:3; width:"+width+";"+leftText+'" onMouseover="this.style.color=\''+g_PrimaryColor+"';onText('"+strItemTip+'\');" onMouseout="this.style.color=\'#000000\';StatusOff();" class="dhtmlNav" onClick="'+strUrl+'">&nbsp;'+strItem+"&nbsp;</div>"}tdID=tdID+1}if(NS6){objDiv+='<div style="background-color:'+g_menuBorderColor+"; z-index:3; width:"+(width+1)+'; height:1;"></div>'}objDiv+="</div>";document.write(objDiv);return tdID}function PrimaryNewImageSuffix(menuImg,suffix){var imgName=eval("document.img"+menuImg);if(imgName==null){return}var currentSrc=imgName.src;var ix=currentSrc.lastIndexOf("_");imgName.src=currentSrc.slice(0,ix)+suffix}function PrimarySwapImg(a){PrimaryNewImageSuffix(a,"_sel.gif")}function PrimarySwapImgBack(b,a){if(a==g_ActiveTopIdx){PrimaryNewImageSuffix(b,"_sel.gif")}else{PrimaryNewImageSuffix(b,"_reg.gif")}}function writeLayer(x,left,top,width){var menuData=eval("menuData"+x);if(menuData==null){return}if(menuData.length==0){return}var nestLayerID=0;var startLeftPos=getLeftPos();var layerLeft=parseInt(left)-9;layerLeft=layerLeft+(startLeftPos)+(x%7);var layerTop=parseInt(top)-11;var layerID="menu"+x;var layerStyle;if(g_JS_isWin){layerStyle="netMenu"}else{layerStyle="netMenuMac"}var layerInc=11;var mousey=" onMouseover=\"showDDNav('"+layerID+"');\" onMouseout=\"hideDDNav('"+layerID+"');\" ";var objDiv='<layer id="'+layerID+'" Z-INDEX=30 BGCOLOR="'+g_menuBorderColor+'" WIDTH='+(width+2)+" LEFT="+layerLeft+" TOP="+(layerTop+40)+" VISIBILITY=HIDE "+mousey+">;";var nestTop=10;for(var y=0;y<menuData.length/2;y++){var strItem=menuData[(y*2)];var strUrl=menuData[(y*2)+1];if(strUrl.search(/^javascript:/i)==-1){strUrl="doJump('"+strUrl+"')"}objDiv+='<layer id="x'+(nestLayerID+"a")+'" class="'+layerStyle+'" BGCOLOR="'+g_menuColor+'" HEIGHT=13 WIDTH='+width+" LEFT=1 TOP="+(nestTop-9)+"></layer>";objDiv+='<layer id="x'+nestLayerID+'" class="'+layerStyle+'" Z-INDEX=37 HEIGHT=13 WIDTH='+(width-3)+" LEFT=5 TOP="+(nestTop-9)+" onmouseover=\"menuOver('document.layers[\\'"+layerID+"\\'].document.layers[\\'x"+nestLayerID+"\\']')\" onmouseout=\"menuOut('document.layers[\\'"+layerID+"\\'].document.layers[\\'x"+nestLayerID+"\\']')\" onClick=\""+strUrl+'"><a id=navstyle  href=JavaScript:'+strUrl+"><font class='menuFonts' size='2' face='arial' color='"+g_fontColorOff+"'>"+strItem;objDiv+="</font></a></layer>";nestLayerID=nestLayerID+1;nestTop=nestTop+layerInc+1}objDiv+='<layer id="lineEnd" BGCOLOR=\''+g_menuBorderColor+"' WIDTH=160 HEIGHT=0 Z-INDEX=37 TOP="+(nestTop-7)+"></layer>";objDiv+="</layer>";document.write(objDiv)}function writeMenuItem(m){var c="menu"+m;var f=m*7;var a=mainMenuData[f];var l=mainMenuData[f+1];var g=mainMenuData[f+3];var h=mainMenuData[f+4];var b=mainMenuData[f+5];if(m==g_ActiveTopIdx){l=l.slice(0,l.length-8);l=l+"_sel.gif"}var k=(m==0)?"":"navImage";var j=" onMouseover=\"showDDNav('"+c+"');PrimarySwapImg('"+c+"');return onText('"+b+"');\" onMouseout=\"hideDDNav('"+c+"');PrimarySwapImgBack('"+c+"',"+m+');StatusOff();" ';var e="";if(g_hasGetElement){e+="<img name='img"+c+"' src='"+l+"' width='"+g+"' height='"+h+"' border='0' "+j+">";e+="<img src='/source/images/clear.gif' height='1' width='7'>"}else{if(g_hasAll){e+="<a "+j+' href="#"  TARGET="_top">';e+="<img name='img"+c+"' src='"+l+"' width='"+g+"' height='"+h+"' border='0' class='"+k+"'></a>"}else{if(g_hasLayers){var d=((m%7)*121);e+="<layer class='navImage' left='"+d+"'>";e+="<a "+j+' href="JavaScript:return null;" TARGET="_top">';e+="<img name=img"+c+" src='"+l+"' width='"+g+"' height='"+h+"' border=0></a>";e+="</layer>"}}}document.write(e)}function writeMenuItems(){if(g_hasGetElement||g_hasAll){initMenus()}for(var a=0;a<g_TopMenuCount;a++){writeMenuItem(a)}if(g_hasGetElement||g_hasAll){writeHorizSubNav()}}function writeHorizSubNav(){var subMenuItem=g_ActiveTopIdx;var menuData=eval("menuData"+subMenuItem);if(menuData==null){return}if(menuData.length==0){return}var subtdID=0;var sepText=g_sepText;var objSubDiv="";if(g_hasGetElement||g_hasAll){objSubDiv+="<br />"}if(g_hasLayers){objSubDiv+="<layer id='subxContainer' visibility=hide left=20 top=50 width=759 height=32 z-index=0>"}for(var i=0;i<menuData.length/2;i++){if(i==menuData.length/2-1){sepText=""}var strItem=menuData[(i*2)];var strUrl=menuData[(i*2)+1];if(strUrl.search(/^javascript:/i)==-1){strUrl="javascript:doJump('"+strUrl+"'); "}var ix=strUrl.indexOf("void ");if(ix!=-1){var px="";if(ix>0){px+=strUrl.substr(0,ix)}px+=strUrl.substr(ix+5);strUrl=px}var hrefUrl=' href="'+strUrl+'"';var clickUrl=' onClick="'+strUrl+'"';var strItemTip=strItem.replace("'","\\'");if(g_hasGetElement||g_hasAll){if(i==g_ActiveSubIdx){if(IE40){objSubDiv+="<a "+hrefUrl+" style=\"color:'"+g_PrimaryColor+'\';" class="subNav40"							 onmouseover="return onText(\''+strItemTip+"');\">"+strItem+"</a>"}else{if(NS6){objSubDiv+='<span id="subx'+subtdID+'"'+clickUrl+' class="subNavOr"									 onmouseover="return onText(\''+strItemTip+"');\">"+strItem+"</span>"}else{objSubDiv+='<span id="subx'+subtdID+'"'+clickUrl+" style=\"color:'"+g_PrimaryColor+'\';" class="subNav" onmouseover="return onText(\''+strItemTip+"');\">"+strItem+"</span>"}}}else{if(IE40){objSubDiv+="<a "+hrefUrl+' class="subNav40"	+						   onmouseover="this.style.color=\''+g_PrimaryColor+"';return onText('"+strItemTip+"');\" onmouseout=\"this.style.color='#000000';StatusOff();\" >"+strItem+"</a>"}else{objSubDiv+='<span id="subx'+subtdID+'" class="subNav"'+clickUrl+" onmouseover=\"this.style.color='"+g_PrimaryColor+"';return onText('"+strItemTip+"');\" onmouseout=\"this.style.color='#000000';StatusOff();\" >"+strItem+"</span>"}}objSubDiv+=sepText}else{if(g_hasLayers){objSubDiv+='<layer id="subx'+subtdID+'" class="subNav" height=16 top=0 '+clickUrl;if(i==g_ActiveSubIdx){objSubDiv+='"><a '+hrefUrl+" onmouseover=\"return onText('"+strItemTip+'\');" onmouseout="StatusOff();">'}else{objSubDiv+=" onmouseover=\"subOver('document.layers[\\'subxContainer\\'].document.layers[\\'subx"+subtdID+"\\']','"+strItemTip+"', '"+sepText+"');\" onmouseout=\"subOut('document.layers[\\'subxContainer\\'].document.layers[\\'subx"+subtdID+"\\']','"+strItemTip+"', '"+sepText+"');\"><a href=javascript:doJump('"+strUrl+"') onmouseover=\"return onText('"+strItemTip+'\');" onmouseout="StatusOff()">'}var colora=(i==g_ActiveSubIdx)?g_PrimaryColor:"#000000";var colorx=(i==g_ActiveSubIdx)?"#000000":"#999999";objSubDiv+="<font class='menuFonts' size='2' face='arial' color='"+colora+"'>";objSubDiv+=strItem+"</font><font class=menuFonts color='"+colorx+"'>"+sepText+"</font></a></layer>"}}subtdID=subtdID+1}if(g_hasLayers){objSubDiv+="</layer>"}document.write(objSubDiv);if(g_hasLayers){bottomColumnStartIndex=setSubNavWidths();if(bottomColumnStartIndex>0){setSubNavHeights(bottomColumnStartIndex)}}}function parseSubArrays(TopMenuIndex){var menuArray=eval("menuData"+TopMenuIndex);if(menuArray==null){return}return g_ActiveTopIdx==TopMenuIndex}function initMenus(){var d=mainMenuData[4];var a=0;var e=0;for(var f=0;f<g_TopMenuCount;f++){var c=mainMenuData[f*7+2]-e;var b=parseInt(mainMenuData[f*7+6]);if(g_hasGetElement||g_hasAll){a=writeDiv(f,c,d,a,b)}else{if(g_hasLayers){writeLayer(f,c,d,b);if(g_ActiveTopIdx==f){writeHorizSubNav()}}}e++}}function setSubNavWidths(){var f=document.layers.subxContainer.layers;var d=0;var e=0;var a=0;for(var c=0;c<f.length;c++){if(e>600){e=0;a=c}d=f[c].clip.width;f[c].left=e;e=e+d}return a}function setSubNavHeights(c){var d=document.layers.subxContainer.layers;var b=d[0].clip.top+16;for(var a=c;a<d.length;a++){d[a].top=b}}function centerDiv(){var b=document.all.globalNav;if(b==null){return}var d=document.body.clientWidth;var a=b.offsetWidth;if(document.parentWindow.frameElement!=null){d-=16}var c=(d-a)/2;if(c<5){c=5}b.style.pixelLeft=c;b.style.visibility="visible"}function centerNS6(){var a=document.getElementById("globalNav");if(a==null){return}a.style.left=getLeftPos();a.style.visibility="visible"}function centerLayers(){var b=document.layers;var a=getLeftPos();if(b.subxContainer!=undefined){if(g_JS_isWin){if(location.href==parent.location.href){b.subxContainer.left=a-10}else{b.subxContainer.left=a-8}}else{b.subxContainer.left=a-9}b.subxContainer.visibility="show"}b.Cart.left=a+575;b.Cart.visibility="show";b.Logo.left=a-9;b.Logo.visibility="show";b.WelcomeBack.left=a+195;b.WelcomeBack.visibility="show";b.topNav.left=a-9;b.topNav.visibility="show"}function getLeftPos(){var c=window.innerWidth;var a=759;if(g_BrowserWidth>c){a=a-15}var b=(c-a)/2;b=Math.round(b);if(NS6||NS7){b-=8;if(b<5){b=5}}else{if(b<15){b=15}}return b}function doJump(a){if(a!=""){top.location.href=a}}function openClipPreviewWindow(b,a){openClipShowreelPreviewWindow(b,a,"Clip")}function openShowreelPreviewWindow(b,a){openClipShowreelPreviewWindow(b,a,"Showreel")}function openClipShowreelPreviewWindow(c,b,a){window.open(g_NSFilmDetectPluginPath+"?Type="+a+"&clipID="+c+"&brandID="+b,"previewWin","width=500,height=500,top=50,left=420,alwaysRaised=yes,toolbar=0,directories=0,menubar=0,status=1,resizable=yes,location=0,scrollbars=1,copyhistory=0")}var g_arrFrontDoors=new Array("/archivefilms/","/bavariabild/","/brandx/","/botanica/","/digitalvision/","/photodisc/","/photographerchoice/","/pix/","/rubberball_stills/","/stone/","/taxi/","/tcl/","/thinkstock/","/tibfilm/","/timelife/");var g_arrFrontDoorsUrl=new Array("/frontdoor/default_archivefilms.aspx","/frontdoor/default_taxi.aspx","/frontdoor/default_brandx.aspx","/frontdoor/default_botanica.aspx","/frontdoor/default_digitalvision.aspx","/frontdoor/default_photodisc.aspx","/frontdoor/default_choice.aspx","/frontdoor/default_taxi.aspx","/frontdoor/default_rubberball.aspx","/frontdoor/default_stone.aspx","/frontdoor/default_taxi.aspx","/frontdoor/default_taxi.aspx","/frontdoor/default_thinkstock.aspx","/frontdoor/default_tibfilm.aspx","/frontdoor/default_timelife.aspx");function SetCountry(e){var a=top.document.location.href.toLowerCase();var c="country=";if(a.indexOf("/frontdoor/")==-1){a=g_NSHomePath;for(var b=0;b<g_arrFrontDoors.length;b++){if(a.indexOf(g_arrFrontDoors[b])!=-1){a=g_arrFrontDoorsUrl[b];break}}}if(a.indexOf(c)!=-1){var d=a.indexOf(c)+c.length;a=a.slice(0,d)+e+a.slice(d+e.length)}else{if(a.indexOf("?")==-1){a+="?"+c+e}else{a+="&"+c+e}}doJump(a)}function demoMenu(){var a=0;for(i=0;i<document.forms.products.sm.length;i++){if(document.forms.products.sm[i].checked==true){a=a+1}}if(a==0){alert("Please select an asset")}if(a==1){genericPop("/xads/client_edit_single.html","editWin",813,600)}if(a>1){genericPop("/xads/client_edit_multiple.html","editWin",813,600)}document.forms.products.uploadMenu.selectedIndex=0;document.forms.products.publishMenu.selectedIndex=0;document.forms.products.toolsMenu.selectedIndex=0;return true}function whichWizard(wizName){strUrl=eval("document.forms.main."+wizName+"_url.value");strWidth=eval("document.forms.main."+wizName+"_width.value");strHeight=eval("document.forms.main."+wizName+"_height.value");openMenuItem(strUrl,strWidth,strHeight)}function openMenuItem(c,d,a){var b=0;var f="";var e=c;if(document.forms.main.sm){for(i=0;i<document.forms.main.sm.length;i++){if(document.forms.main.sm[i].checked==true){f=f+"object="+document.forms.main.sm[i].value+"&";b=b+1}}}if(b==0&&document.forms.main.sm){if(document.forms.main.sm.value){if(document.forms.main.sm.checked==true){f=f+"object="+document.forms.main.sm.value}}}if(f==""){alert("Please select something");document.forms.main.uploadMenu.selectedIndex=0;document.forms.main.publishMenu.selectedIndex=0;document.forms.main.toolsMenu.selectedIndex=0;return false}genericPop(e+".do?"+f+"&new=true","wizardWin",d,a);document.forms.main.uploadMenu.selectedIndex=0;document.forms.main.publishMenu.selectedIndex=0;document.forms.main.toolsMenu.selectedIndex=0}function onText(a){window.status=a;return true}function StatusOff(){return onText("")};