var destination ="";var GenJS = true;var loc = document.location.href;if (loc.indexOf("acgoto=")>0){ GetDestination(loc);}else if(typeof adclip_ResultConf != 'undefined'){ if (typeof adclip_ResultConf.onLoad_goTo!='undefined') destination = "http://www.adclip.com/JS/AdClipHome/"+adclip_ResultConf.onLoad_goTo.config.publicKey+".js"; else GetDestination(loc); }else{ destination = "http://www.adclip.com/JS/AdClipHome/adclip.js";} if (GenJS){ var frag = ""; document.write(frag);}else{ var frag = ""; document.write(frag);} function resizeIframe(height){ document.getElementById('f_mainadclip').height = parseInt(height);}function GetDestination(loc){ if (loc.indexOf("/pk_")>0) { var pubkeyi = loc.indexOf("/pk_") + 4; var PubKey = loc.substring(loc.indexOf("/pk_") + 4, loc.indexOf("/", pubkeyi)); destination = "http://www.adclip.com/JS/AdClipHome/"+PubKey+".js"; } if (loc.indexOf("acgoto=")>0) { var acgotoi = loc.indexOf("acgoto=") + 7; var acgoto =""; if (loc.indexOf("&", acgotoi)>0) { acgoto = loc.substring(acgotoi, loc.indexOf("&", acgotoi)); } else { acgoto = loc.substring(acgotoi) }; destination = "http://www.adclip.com/clips/goto.aspx?npf=1&clip="+acgoto; GenJS=false; } if (loc.indexOf("/clip/")>0) { var pubkeyi = loc.indexOf("/clip/") + 6; var PubKey = loc.substring(loc.indexOf("/clip/") + 6, loc.indexOf("/", pubkeyi)); destination = "http://www.adclip.com/JS/AdClipHome/"+PubKey+".js"; } else if (loc.indexOf("&clip=")>0) { var pubkeyi = loc.indexOf("&clip=") + 6; var PubKey = loc.substring(loc.indexOf("&clip=") + 6, loc.indexOf("&", pubkeyi)); destination = "http://www.adclip.com/JS/AdClipHome/"+PubKey+".js"; }}