//---TZPLCR(3.4.0)---
//---LOCKS: NONE---

//---TZVARIABLES---
var codebase_00002158 = tz_appBase_00002158+tz_advertBase_00002158;
var tz_impression_00002158=new Array;
var tz_url_00002158=new Array;
var tz_clickName_00002158=new Array;
if(typeof tz_vc_00002158=='undefined' || !tz_vc_00002158 || tz_vc_00002158=='%i') tz_vc_00002158='';
if(typeof tz_redirector_00002158=='undefined' || !tz_redirector_00002158 || tz_redirector_00002158=='%c')tz_redirector_00002158='';
if(typeof tz_vc!='undefined')tz_vc_00002158=tz_vc;
if(typeof tz_redirector!='undefined')tz_redirector_00002158=tz_redirector;
var tz_wrap_redirector_00002158 = (tz_redirector_00002158 != "" && tz_redirector_00002158.indexOf("%%TZ%%") != -1)?1:0;
var tz_url_prepend_00002158 = (tz_wrap_redirector_00002158)?'':tz_redirector_00002158;

tz_impression_00002158[0]=tz_vc_00002158+'http://view.atdmt.com/MDG/view/tlgrpvol00300004mdg/direct/01/';
tz_clickName_00002158[0]='VCCLink';
tz_url_00002158[0]=''+tz_url_prepend_00002158+'http://clk.atdmt.com/MDG/go/tlgrpvol00300004mdg/direct/01/';

if(typeof(tz_pv_00002158)!='undefined' && tz_pv_00002158)tz_impression_00002158[tz_impression_00002158.length]=tz_pv_00002158;
tz_flashFile_00002158 = new Array();tz_flashFile_00002158[0]='Yahoo_120x600x350_Product_UK_20_Mother.swf?tz_adnumber=00002158&tz_adbase='+tz_creative_codebase_00002158;
tz_flashFile_00002158[1]='Yahoo_120x600x350_Product_UK_20_Child.swf';
var tz_dynamicLogicUrl_00002158='';
var tz_expandedHeight_00002158=600;
var tz_expandedWidth_00002158=350;
var tz_expandRight_00002158=false;
var tz_flashPlaceHolder_00002158='';
var tz_flashVerRequired_00002158=6;
var tz_gifPlaceHolder_00002158='';
var tz_height_00002158=600;
var tz_hideApplets_00002158=true;
var tz_hideFlash_00002158=true;
var tz_hideIframes_00002158=true;
var tz_hideSelects_00002158=true;
var tz_mouseOff_00002158=false;
var tz_PCIE_00002158=false;
var tz_placeHolderRequired_00002158=false;
var tz_staticFile_00002158='120x600_product_UK.gif';
var tz_transparent_00002158=true;
var tz_width_00002158=120;

//---TZVARIABLESEND---
//---TZFUNCTIONS---
function tz_CheckBrowserVers(delim,reqVers){
  var temp=navigator.userAgent.split(delim);
  var version=parseFloat(temp[1]);
  if (version>=reqVers){ 
    return true;
  }else{
    return false;
  }
}
var tz_isIE5=false; var tz_isNN4x=false; var tz_isNN7=false;
var tz_isWin=navigator.userAgent.indexOf("Win")!=-1; var tz_isMac=navigator.userAgent.indexOf("Mac")!=-1;
var tz_isOp=(navigator.userAgent.indexOf("Opera")!=-1);
var tz_isIE=(!tz_isMac && !tz_isOp && navigator.appVersion.indexOf("MSIE")!=-1) || (tz_isMac && !tz_isOp && tz_CheckBrowserVers('MSIE',5.2)); 
var tz_isNN=((navigator.appName.indexOf("Netscape")!=-1)&&(navigator.userAgent.indexOf("Safari")==-1));
var tz_isMoz=(navigator.userAgent.indexOf("Mozilla/5")!=-1 && navigator.userAgent.indexOf("Safari") ==-1 && tz_CheckBrowserVers('rv:',1.3));
if(tz_isIE)tz_isIE5=!(tz_CheckBrowserVers('MSIE',5.5)); if(tz_isNN)tz_isNN4x=!(tz_CheckBrowserVers('Mozilla/',4.9));
var tz_isSaf=(navigator.userAgent.indexOf("Mozilla/5")!=-1 && navigator.userAgent.indexOf("Safari") !=-1 && tz_CheckBrowserVers('Safari/',100));
if(navigator.userAgent.indexOf("Netscape/7")!=-1)tz_isNN7=tz_CheckBrowserVers('Netscape/',7.02);
function tz_isFlash(tz_flashVerRequired){
    var tz_flashVersion = 0;
    if (tz_isWin && tz_isIE){
	function w2158(s) {
	    document.writeln(s);
	}
	w2158('<script language="VBscript">');
	w2158('Dim tz_detect_vb');
	w2158('tz_detect_vb = 0');
	w2158('If ScriptEngineMajorVersion >=2 then');
	w2158('    tz_detect_vb =1');
	w2158('End If');
	w2158('Function tz_activeXDetect(activeXname)');
	w2158('	on error resume next');
	w2158('	If ScriptEngineMajorVersion >=2 then');
	w2158('		tz_activeXDetect = False');
	w2158('		tz_activeXDetect = IsObject(CreateObject(activeXname))');
	w2158('		If (err) then');
	w2158('		tz_activeXDetect = False');
	w2158('		End If');
	w2158('	Else');
	w2158('		tz_activeXDetect = False');
	w2158('	End If');
	w2158('End Function');
	w2158('</scr' + 'ipt>');	
	if (typeof(tz_detect_vb)!='undefined' && tz_detect_vb){
	    for(i=1;i<10;i++){
		if(tz_activeXDetect('ShockwaveFlash.ShockwaveFlash.' + i)){
		    tz_flashVersion = i;
		}
	    }
	}
    } else if(navigator.plugins && navigator.mimeTypes && navigator.mimeTypes['application/x-shockwave-flash'] && navigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin){
	var tz_isVersion2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
	var tz_flashDescription = navigator.plugins["Shockwave Flash" + tz_isVersion2].description;
	tz_flashVersion = parseInt(tz_flashDescription.charAt(tz_flashDescription.indexOf(".") - 1));
    }   
    return (tz_flashVersion>=tz_flashVerRequired)?true:false;
}
function tz_trackView_00002158(ev){
  if(typeof(tz_tabsMode_00002158)=='undefined'){
    var tz_v = (ev)?'v_'+ev:'v';
    document.write("<div style='display:none'><img src='"+tz_appBase_00002158+"a/at/"+tz_v+"/2158/"+tz_referrer_id_00002158+"/"+tz_cid_00002158+";"+tz_rnd+"?' width='1' height='1' /></div>");
    for (i=0;i<tz_impression_00002158.length;i++) {
	document.write("<div style='display:none'><img src='"+tz_impression_00002158[i]+"' width='1' height='1' /></div>");
    }
    if(typeof(tz_seen_00002158)!='undefined') tz_seen_00002158();
  }
}
//---TZFUNCTIONSEND---
//---TZLOGIC---
// $Source: /home/0/cvs/adman/templates/formats/dhtml_expand/sky/v32.js,v $ $Revision: 1.3 $
var tziframe_00002158;
var tzscript_00002158;
var tz_banner_00002158;
var tz_flash_00002158;
var tz_adPosLeft_00002158;
var tz_adPosTop_00002158;
var tz_hideConflicts_00002158=false;
if(tz_hideIframes_00002158||tz_hideSelects_00002158||tz_hideFlash_00002158||tz_hideApplets_00002158)tz_hideConflicts_00002158=true;
var tz_divOffset_00002158=(typeof(tz_expandRight_00002158)!='undefined' && tz_expandRight_00002158)?0:-(tz_expandedWidth_00002158 - tz_width_00002158);
var tz_clipLeft_00002158=(tz_divOffset_00002158==0)?0:-tz_divOffset_00002158;
var tz_clipRight_00002158=(tz_divOffset_00002158==0)?tz_width_00002158:tz_expandedWidth_00002158;

function getRealLeft(imgElem) {
    xPos = eval(imgElem).offsetLeft;tempEl = eval(imgElem).offsetParent; while (tempEl != null) {          xPos += tempEl.offsetLeft;tempEl = tempEl.offsetParent;}return xPos;
}
function getRealTop(imgElem) {
    yPos = eval(imgElem).offsetTop;tempEl = eval(imgElem).offsetParent;while (tempEl != null) {
	yPos += tempEl.offsetTop;tempEl = tempEl.offsetParent;}return yPos;
}
function tz_isConflict(x1,y1,w1,h1,x2,y2,w2,h2){
    if((x2<=x1+w1) && (x2+w2>=x1) && (y2<=y1+h1) && (y2+h2>=y1)){
	return true;
    } else {
	return false;
    }
}
var tz_badEles_00002158 = new Array();
function tz_getConflictEles_00002158(x,y,w,h){
    var tz_badElesIndex_00002158 = 0;
    var badEleNames=new Array();	
    if(tz_hideIframes_00002158)badEleNames[badEleNames.length]="iframe";if(tz_hideSelects_00002158)badEleNames[badEleNames.length]="select";if(tz_hideApplets_00002158)badEleNames[badEleNames.length]="applet";
    if(tz_hideFlash_00002158){
      badEleNames[badEleNames.length]="object";
      badEleNames[badEleNames.length]="embed";
    }
    for(i=0;i<badEleNames.length;i++){
	var currentEles = document.getElementsByTagName(badEleNames[i]);
	for(j=0;j<currentEles.length;j++){
	    if(currentEles[j].id.indexOf('tz')==-1 && typeof currentEles[j].tz_bannerserver_00002158=='undefined' &&  tz_isConflict(x,y,w,h,getRealLeft(currentEles[j]),getRealTop(currentEles[j]),currentEles[j].offsetWidth,currentEles[j].offsetHeight && tz_isNotHidden_00002158(currentEles[j]))){
		tz_badEles_00002158[tz_badElesIndex_00002158] = currentEles[j];
		tz_badElesIndex_00002158++;
	    }
	}
    }
}
function tz_toggleBadEles_00002158(visi){
    for(i=0;i<tz_badEles_00002158.length;i++){
	tz_badEles_00002158[i].style.visibility=visi;
    }
}
function tz_findConflicts_00002158(){
    var tz_adpostop = getRealTop(tz_full_banner_00002158);
    var tz_adposleft =  getRealLeft(tz_full_banner_00002158);
    tz_getConflictEles_00002158(tz_adposleft,tz_adpostop,tz_expandedWidth_00002158,tz_expandedHeight_00002158);
}
function tz_isNotHidden_00002158(obj){
  thisVis=obj.style.visibility;
  parentEl = obj.offsetParent;
  while (parentEl != null) {
    parentVis = parentEl.style.visibility;
    if (thisVis=="hidden" || parentVis=="hidden"){
      return false;
    }else{
      parentEl = parentEl.offsetParent;
    }		
  }
  return true;
}
function tz_getFlashCode_00002158(){
  var tz_flashCode_00002158 = "<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' ID='tz_flashbanner_00002158'  WIDTH=" + tz_expandedWidth_00002158 + " HEIGHT=" + tz_expandedHeight_00002158 + "> <PARAM NAME=movie VALUE='" + tz_creative_codebase_00002158 + tz_flashFile_00002158[0] + "'><PARAM NAME=quality VALUE=high>";
  if(tz_transparent_00002158){tz_flashCode_00002158 += "<PARAM NAME=wmode VALUE=transparent>";}else{ tz_flashCode_00002158 += "<PARAM NAME=wmode VALUE=opaque>"; }
 tz_flashCode_00002158 += "<EMBED ID='tz_flashbanner_embed_00002158' src='"+tz_creative_codebase_00002158+tz_flashFile_00002158[0] +"' quality=high  WIDTH='"+ tz_expandedWidth_00002158 +"' HEIGHT='"+ tz_expandedHeight_00002158 +"' TYPE='application/x-shockwave-flash'"; 
 if(tz_transparent_00002158){tz_flashCode_00002158 +="wmode='transparent'";}else{tz_flashCode_00002158 +="wmode='opaque'";}
 tz_flashCode_00002158 += "></EMBED></OBJECT><script type='text/javascript' id='fscommandscript' for='tz_flashbanner_00002158' event='FSCommand(command,args)'>if(command.indexOf('tz')!=-1)eval(command);</scr" + "ipt>";

 return tz_flashCode_00002158; 
}
function tz_getObjRefs_00002158(){
  tz_objRef=(tz_isMoz || tz_isNN7)? "tz_flashbanner_embed_00002158" : "tz_flashbanner_00002158";
  tz_banner_00002158 = document.getElementById("tz_banner_holder_00002158");
  tz_full_banner_00002158 = document.getElementById("tz_bannerdiv_00002158");
  tz_flash_00002158 = document.getElementById(tz_objRef);
  if(tz_hideConflicts_00002158)tz_findConflicts_00002158();
}
//
function tz_clickthrough_00002158(num,clickType){
    if(!num) num = '0';
    clickNum = (typeof(clickType)!="undefined" && clickType!='rich')?clickType:num;
    var tz_dest= tz_appBase_00002158 + 'a/ac/c_' + clickNum + '/2158/'+tz_referrer_id_00002158+'/'+tz_cid_00002158+';'+tz_rnd+'?'+escape(tz_url_00002158[num],1);
    if (tz_wrap_redirector_00002158) {
	tz_bits_00002158 = tz_redirector_00002158.split("%%TZ%%");
	tz_dest_00002158 = tz_bits_00002158[0] + escape(tz_dest_00002158,1) + tz_bits_00002158[1];
    }
    window.open(tz_dest);
}

function tz_interaction_00002158(num){
    tz_track_00002158('i_' + num, tz_cid_00002158);	
}
function tz_contract_00002158(){
    tz_banner_00002158.style.zIndex=7000;
    tz_full_banner_00002158.style.clip="rect(0px "+tz_clipRight_00002158+"px "+tz_height_00002158+"px "+tz_clipLeft_00002158+"px)";
    if(tz_hideConflicts_00002158)tz_toggleBadEles_00002158('inherit');
    tz_expanded_00002158 = false;
    if(typeof tz_tabsMode_00002158 != "undefined") tz_tabs_reportevent('Ad Contracted');
}
function tz_closead_00002158(){
	tz_contract_00002158();
}
var tz_expanded_00002158 = false;
function tz_expand_00002158(num){
    if (!tz_expanded_00002158){
	if(tz_hideConflicts_00002158)tz_findConflicts_00002158();
	tz_expanded_00002158 = true;
    }
    if(!num) num = 0;
    tz_banner_00002158.style.zIndex=15000;
    tz_full_banner_00002158.style.clip="rect(0px "+tz_expandedWidth_00002158+"px "+tz_expandedHeight_00002158+"px 0px)";
    if(tz_hideConflicts_00002158) tz_toggleBadEles_00002158('hidden');
    tz_track_00002158('i_x' + num, tz_cid_00002158);
    if(tz_mouseOff_00002158)setTimeout("tz_attachMouseoff_00002158()",500);
    if(typeof tz_tabsMode_00002158 != "undefined") tz_tabs_reportevent('Ad Expanded');
}
function tz_writeBanner_00002158(){
    if (typeof tz_banner_00002158 != 'undefined'){
	document.write("<a href = 'javascript:tz_clickthrough_00002158(0,\"static\");void(0);'><IMG SRC ='" + tz_creative_codebase_00002158 + tz_staticFile_00002158 + "' WIDTH = " + tz_width_00002158 + " HEIGHT = " + tz_height_00002158 + " BORDER = '0'></a>");
    } else {
	tz_trackView_00002158();
	document.write( "<table border=0 cellpadding=0 cellspacing=0><tr><td><div id = 'tz_banner_holder_00002158' style = 'position:absolute;width:" + tz_width_00002158 + ";height:" + tz_height_00002158 + ";z-index:7000;'><div id='tz_bannerdiv_00002158' style='position:absolute;left:" + tz_divOffset_00002158 + ";top:0;clip:rect(0px "+tz_clipRight_00002158+"px "+tz_height_00002158+"px "+tz_clipLeft_00002158+"px)'>" + tz_getFlashCode_00002158() + "</div></div><table width=" + tz_width_00002158  + " height=" +tz_height_00002158 + " border=0 cellpadding=0 cellspacing=0><tr><td>&nbsp;</td></tr></table></td></tr></table>");
	setTimeout("tz_getObjRefs_00002158()",200);
    }
}
function writeStaticAd_00002158(){
    tz_trackView_00002158('static');
    document.write("<a href = 'javascript:tz_clickthrough_00002158(0,\"static\");void(0);'><IMG SRC ='" +  tz_creative_codebase_00002158 + tz_staticFile_00002158 + "' WIDTH = " + tz_width_00002158 + " HEIGHT = " + tz_height_00002158 + " BORDER = '0'></a>");
}

if(typeof tz_iframeSrc_00002158 != "undefined"){
    tz_calculateIframePos_00002158(); 
} else if(typeof tz_tabsMode_00002158 != "undefined"){
    tz_appendDiv_00002158();
} else {
    if (navigator.appName && (tz_isWin || (tz_isMac && !tz_PCIE_00002158 && tz_transparent_00002158)) && ((tz_isNN7 && !tz_PCIE_00002158) ||(tz_isMoz && !tz_PCIE_00002158) || (tz_isSaf && !tz_PCIE_00002158 && !tz_iframeHostFile_00002158) || tz_isIE) && navigator.userAgent.indexOf("Windows 3.1") == -1 && navigator.userAgent.indexOf("Opera") == -1 && document.getElementById && !(tz_isMac && tz_isIE) && navigator.userAgent.indexOf("MSN") == -1)
	{
	    if(!tz_isFlash(tz_flashVerRequired_00002158)){
		tz_track_00002158('b_flash', tz_cid_00002158);
		writeStaticAd_00002158();
	    } else {
        	(tz_isNN7 || tz_isMac || tz_isMoz)? tz_flashAction="true" : tz_flashAction="false";
        	tz_flashFile_00002158[0]+='&tz_flashAction='+tz_flashAction;
		if(typeof tz_dynamicLogicUrl_00002158 != 'undefined'){
			document.write("<iframe src='" + tz_dynamicLogicUrl_00002158 +"' width=0 height=0 style='visibility:hidden;'></iframe>");
		}
		if(tz_iframeHostFile_00002158){
		    tz_loadPlaceHolder_00002158();
		    onload = tz_loadIframe_00002158;
		} else {
		    if(tz_placeHolderRequired_00002158){
			tz_loadPlaceHolder_00002158();
			tz_attachOnLoad_00002158();	
		    } else {
			tz_writeBanner_00002158();
		    }
		}
	    }
	} else {
	    tz_track_00002158('b_browser',  tz_cid_00002158);
	    writeStaticAd_00002158();
	}    
}
//---TZLOGICEND---
