                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                if(!window.__td){window.__MT=100;window.__ti=0;window.__td=[];window.__td.length=__MT;window.__noTrace=false;}var CurrentImage=0;
var Images=null;
var Urls=new Array();

function AddUrl(Url,Index)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
Urls[Index]=Url;
}

function hideImage()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
this.setVisibility("none");
}

function showImage()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
if(!this.Shown){
this.Image.src=this.Url;
this.Shown=true;
}
this.setVisibility("block");
}

function setImageVisibility(Value)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
this.Image.style.display=Value;
this.TopBox.style.display=Value;
this.BottomBox.style.display=Value;
}

function ImageControl(Index)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
this.Image=document.getElementById("samples-img-"+Index);
this.TopBox=document.getElementById("samples-span-top-"+Index);
this.BottomBox=document.getElementById("samples-span-bottom-"+Index);
this.hide=hideImage;
this.show=showImage;
this.setVisibility=setImageVisibility;
this.Shown=Index===0;
this.Url=Urls[Index];
}

function ShowSample(Index)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
if(!Images){
Images=new Array();
var i=0;
for(i=0;;i++){
var Doc=document.getElementById("samples-img-"+i);
if(!Doc){break;}
Images[i]=new ImageControl(i);
}
}

Images[CurrentImage].hide();
Images[Index].show();
CurrentImage=Index;
return false;
}

function showCreativeServicesVideo(sWindowTitle,sUrl)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
var oDialog=vp.dialog.IFrameDialog.open("video",sWindowTitle,sUrl,vp.dialog.chrome.Primary,504,424,{scrollType:DIALOG_SCROLL_TYPE_NO});
var fnHandler=function pv_fnHandler(e){if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}vp.ui.get("video_iframe").src="";};
oDialog.onclose.addHandler(fnHandler);
}