<!--
// (C)opyright Instadia A/S 2000-2005
// Date: 03/09/05  Source: js/gather/version_c2/clientstep_survey.js  Revision: 1.15
var ICSgs = "www.instadia.net/cgi-bin/";var ICSga = "gather";var ICSTopR = 1;var ICSretries = 5;var ICSimgArr;var ICSimgArrSize;var ICSonlh = null;if(CSurl) ICSgs = CSurl+"/";
function ICSIsDone(image){if (image.name == "undefined"){return image.complete;}else{return ((image.complete && (image.name == "Done")) || (image.name == "Abort"));}}
function ICSSave(){var arr = ICSimgArr;if (typeof arr == 'undefined'){return;}ICSimgArr = new Array();ICSimgArrSize = -1;var str = "";for (var i = 0; i < arr.length; i++){var img = arr[i];if (!ICSIsDone(img)){str += img.src + "|";ICSimgArr[++ICSimgArrSize] = img;}}if ((typeof navigator != 'undefined') && (typeof str != 'undefined')){navigator.ICSimgStr = str;}}
function ICSRetry(image, retries){if(ICSIsDone(image)) return;retries--;if (retries >= 0){var func = new Function("ICSRetry(this," + retries + ")");image.onerror = func;image.onabort = func;image.src     = image.src;}else{image.name    = "Abort";ICSSave();}}
function ICSDone(image){if(ICSIsDone(image)) return;image.name = "Done";ICSSave();}
function ICSInvoke(url){var protocol = document.location.protocol;if (protocol != "https:"){protocol = "http:";}var source = protocol + url.substring(url.indexOf(":")+1, url.length);if (ICSstartTracking == 1){var image = new Image(1,1);var func =  new Function("ICSRetry(this," + ICSretries + ");");image.onerror = func;image.onabort = func;image.onload  = new Function("if (typeof ICSDone == 'function') {ICSDone(this);}");image.name    = "Progress";image.src = source;ICSimgArr[++ICSimgArrSize] = image;ICSSave();}else{ICScache = ICScache + source + "|";}}
function ICS_SE(){return true;}
function Instadia_sendInfo(cId,ICSdesc,ICSsfname){var ICScId=(((cId?cId:"").length==5)?cId:"BADID");if (ICScId=="00000"){return}var ICSd=document;var ICSs=screen;var ICSn=navigator;var ICSN=(ICSn.appName=="Netscape"?1:0);var ICSt=new Date();var ICSbi="";var ICSm=((ICSd.lastModified)?Date.parse(ICSd.lastModified)/1000:0); ICSm=((ICSm>0)?ICSm:0);ICSbi+="4c"+ICScId+"&"+ICS_BID()+"&&";ICSbi+=ICSm+"&"+escape(ICSdesc?ICSdesc.slice(0,200):ICSd.title)+"&"+Math.round(ICSt.getTime()/1000)+"&";var ICSsw=ICSs.width;var ICSsh=ICSs.height;var ICSsd=(ICSN?ICSs.pixelDepth:ICSs.colorDepth);var ICSdb=ICSd.body;if(!ICSsd){ICSsd=0;}ICSbi+=escape(ICS_REF())+"&"+ICSsw+"&"+ICSsh+"&"+ICSsd+"&";ICSbi+=(ICSs.availWidth?ICSs.availWidth:0)+"&"+(ICSs.availHeight?ICSs.availHeight:0)+"&";ICSbi+=(ICSN?ICSn.language:ICSn.userLanguage)+"&";ICSbi+=(ICSN?innerWidth:ICSdb?ICSdb.clientWidth:0)+"&"+(ICSN?innerHeight:ICSdb?ICSdb.clientHeight:0);ICSbi+="&"+(ICS_CT()+(ICSn.javaEnabled()?2:0)+1)+"&"+escape(ICS_PAGE(ICSsfname));ICSInvoke(document.location.protocol+"//"+ICSgs+ICSga+"?"+ICSbi);Instadia_Survey_compatibilityHook(cId, ICSdesc);}
function Instadia_sessionCookies(){ICSga="sgather";}
function Instadia_sendInfoNoTop(cId,ICSdesc,ICSsfname){ICSTopR=0;Instadia_sendInfo(cId,ICSdesc,ICSsfname);}
function Instadia_sendInfoNoCache(cId,ICSdesc,ICSsfname){Instadia_sendInfo(cId,ICSdesc,ICSsfname);}
function Instadia_sendInfoNoRefresh(cId,ICSdesc,ICSsfname){var ics_lp=ICS_RC("ICS_trackedPage");var ics_cp=document.location;if (ics_lp==ics_cp) return;document.cookie="ICS_trackedPage="+escape(ics_cp)+"; path=/";Instadia_sendInfo(cId,ICSdesc,ICSsfname);}
function Instadia_sendEvent(cId, ICSdesc,ICSsfname, useSecure){var ICScId=(((cId?cId:"").length==5)?cId:"BADID");if (ICScId=="00000"){return}var ICSt=new Date();var ICSbi="";ICSbi+="4c"+ICScId+"&"+ICS_BID()+"&&&";var ICSdsc=""+(ICSdesc?ICSdesc:"");ICSbi+=escape(ICSdsc.length?ICSdsc.slice(0,200):"")+"&"+Math.round(ICSt.getTime()/1000);ICSbi+="&&&&&&&&&&&";var ICSsfn=ICS_PAGE(ICSsfname);ICSbi+=escape(ICSsfn);ICSInvoke((useSecure?"https":"http")+"://"+ICSgs+ICSga+"?"+ICSbi);}
function setPCID(cid){if (cid.length>8){var ICSe=new Date();ICSe.setTime(ICSe.getTime()+(3600*1000*24*365));var ICScdom=""+document.domain.replace(/^([^\.]*\.)?(.*\.)/,"$2");document.cookie="ICSPCID="+cid+";expires="+ICSe.toGMTString()+";path=/;domain="+ICScdom;}return;}
function setSCID(cid){if (cid.length>8){var ICScdom=""+document.domain.replace(/^([^\.]*\.)?(.*\.)/,"$2");document.cookie="ICSSCID="+cid+";path=/;domain="+ICScdom;}return;}
function ICS_BID(){var ICSpcid=ICS_RC("ICSPCID");var ICSscid=ICS_RC("ICSSCID");var ICScid=0;if (ICSpcid.length>8){ICScid=ICSpcid;}else{if (ICSscid.length>8){ICScid=ICSscid;}else{if (typeof navigator.ICSCID != "undefined"){var ICSntid=(navigator.ICSCID).toString();if (ICSntid.length>8){ICScid=navigator.ICSCID;}}}}if (ICScid==0){ICScid=(new Date()).getTime();}if (ICSpcid!=ICScid){setPCID(""+ICScid);}if (ICSscid!=ICSpcid){setSCID(""+ICScid);}if ((typeof navigator.ICSCID == "undefined") || (navigator.ICSCID!=ICScid)){navigator.ICSCID=ICScid;}return ICScid;}
function ICS_PAGE(synPage){var ICSpage="";if ( typeof document != 'undefined'){var ICSd=document;ICSpage=ICSd.location.toString();var server="";if ( typeof document.domain != 'undefined'){server=ICSd.domain.toString();}if (ICSd.location.protocol=='file:'){server="local_file";if ((typeof synPage == 'undefined') || (synPage.length==0)){synPage="/local_file";}}server=ICSd.location.protocol.toString()+"//"+server;if ((typeof synPage != 'undefined') && (synPage.length>0)){if ((synPage.indexOf("://")>1) && (synPage.indexOf("://")<10)){server="";}else if (synPage.indexOf('/')!=0){synPage="/"+synPage;}ICSpage=server+synPage;}}return ICSpage.slice(0,250);}
function ICS_REF(){var ICSr=ICS_RC("ICSref");var ICSrct=0;if (ICSr=="|"){ICSrct=1;}var ICScdom=""+document.domain.replace(/^([^\.]*\.)?(.*\.)/,"$2");if (ICSrct==0 && ICSr!="-"){ICSrct=1;}if ((ICSrct==0)&&(typeof(navigator) == 'object') && (typeof navigator.ICSREF != "undefined") &&(navigator.ICSREF!=null)){if (navigator.ICSREF!="|"){ICSr=navigator.ICSREF;}ICSrct=1;}if ((ICSrct==1) ){if (ICSr=='|'){ICSr=document.referrer;}document.cookie="ICSref=|;path=/;domain="+ICScdom;if (ICSr=="-")ICSr="";if (typeof navigator == 'object'){navigator.ICSREF="|";}}else{var isOpera=false;var isOldNs=false;var ngualc=navigator.userAgent.toLowerCase();if (ngualc.indexOf("opera")!=-1) { isOpera=true; }if ((ngualc.indexOf("netscape6")!=-1) || (ngualc.indexOf("mozilla/4.7")!=-1)){isOldNs=true;}if (!isOpera && !isOldNs && (typeof parent != 'undefined') && (parent.frames.length>0)){if (document.referrer!="" && (document.referrer.indexOf(document.domain)>=0)){document.cookie="ICSref=|;path=/;domain="+ICScdom;navigator.ICSREF="|";ICSr=(ICSTopR&&top.document.referrer)?top.document.referrer:document.referrer;}else{ICSr=document.referrer;document.cookie="ICSref=|;path=/;domain="+ICScdom;navigator.ICSREF="|";}}else{ICSr=document.referrer;}}var icsRre=/http[s]?[:]\/\/(.+)/;ICSr=ICSr.replace(icsRre, "http://$1");return ICSr?ICSr.slice(0,512):"";}
function ICS_CT(){var ICSe=new Date();ICSe.setTime(ICSe.getTime()+20000);document.cookie="Cookie=CookieTest"+((ICSe)?"; expires="+ICSe.toGMTString():"")+"; path=/";if(ICS_RC("Cookie")!="-")return 4;return 0;}
function Instadia_sendBigInfo(cId,ICSdesc,ICSsfname){Instadia_sendInfo(cId,ICSdesc,ICSsfname);}
function Instadia_sendSmallInfo(cId,ICSdesc,ICSsfname){Instadia_sendInfo(cId,ICSdesc,ICSsfname);}
function ICS_RC (ICScn){var ICScs=document.cookie.split(';');var ICScp;var ICSrv="-"; var ICSi=0;for (ICSi=0;((ICSi<ICScs.length)&&(ICSrv=="-"));ICSi++){ICScp=ICScs[ICSi].split('=');if(ICScp[0].substring(0,1)==' '){ICScp[0]=ICScp[0].substring(1,ICScp[0].length);}if(ICScp[0]==ICScn){ICSrv=unescape(ICScp[1]);}}if (ICSrv=="undefined"){ICSrv="";}return ICSrv;}var ICSfls="";
function Instadia_formEvent(cId,formf,ICSdesc,ICSfname,useSecure){var ff=formf; var f=ff.form?ff.form:ff;if (ICSfls!=ff.name){Instadia_sendEvent(cId,(ICSdesc?ICSdesc:"Form Interaction"),"form interaction/"+((typeof(f.ICSfident)!='undefined')?f.ICSfident.value:(f.name?f.name:(f.id==''?'noname':f.id)))+"/# " +(ICSfname?ICSfname:ff.name),useSecure);}ICSfls=formf.name;}
function ICSStart(){ICSimgArr = new Array();ICSimgArrSize = -1;ICSstartTracking = 1;var cache = "";if ((typeof navigator.ICSimgStr != "undefined") && navigator.ICSimgStr && navigator.ICSimgStr != ""){cache = navigator.ICSimgStr;navigator.ICSimgStr = "";}cache = cache + ICScache;ICScache = "";var urlArr = cache.split('|');for (var i = 0; i < urlArr.length; i++){var url = urlArr[i];if (url && url != ""){ICSInvoke(url);}}}
function ICSOnLoad(){var res = ICSonlh();ICSStart();return res;}if (typeof ICSLoaded == "undefined" || ICSLoaded != 1){var ICSLoaded = 0;}if (typeof ICSstartTracking == "undefined" || ICSstartTracking != 1){var ICSstartTracking = 0;}if (typeof Instadia_Use_Onload == "undefined" || Instadia_Use_Onload != 1){var Instadia_Use_Onload = 0;}if (typeof ICScache == "undefined"){var ICScache = "";}if (ICSLoaded == 0){if(typeof CSdebug == "undefined" || !CSdebug){if((typeof window.onerror == 'undefined') || (!window.onerror)){window.onerror=ICS_SE;}}if (Instadia_Use_Onload == 1){if (typeof window.onload == "function"){ICSonlh = window.onload;window.onload = ICSOnLoad;}else{window.onload = ICSStart;}}else{ICSStart();}ICSLoaded = 1;}var CSenable;var CSws;var CSid;var CSurl;var CSdebug;var CStitle;var CSsu;var CSsid;var CSsd;var CSsl;var CSspreview;var CSsc;var Instadia_Survey_context;var Instadia_Survey_uriPreview;var Instadia_Survey_uriAccounts;var Instadia_Survey_uriSurvey;var Instadia_Survey_uriImg;var Instadia_Survey_debugCookie = "instadia.survey.debug=1";
function Instadia_run(){if(CSenable == false) return;if(typeof CSid       == "undefined") CSid       = "";if(typeof CSsid      == "undefined") CSsid      = CSid;if(typeof CSurl      == "undefined") CSurl      = "www.instadia.net/cgi-bin";if(typeof CSdebug    == "undefined") CSdebug    = false;if(typeof CStitle    == "undefined") CStitle    = "";if(typeof CSsu       == "undefined") CSsu       = false;if(typeof CSsd       == "undefined") CSsd       = "";if(typeof CSsl       == "undefined") CSsl       = "survey.instadia.net";if(typeof CSspreview == "undefined") CSspreview = false;if(typeof CSsc       == "undefined") CSsc       = "www.clientstep.net";Instadia_Survey_bootstrap();}
function Instadia_Survey_bootstrap(){if(!CSsu) return;
function debug(type, message){if(!CSdebug) return;alert("DEBUG:\n" + type + ": " + message);}if(document.cookie.indexOf(Instadia_Survey_debugCookie) >= 0){CSdebug	= true;}if(!CSspreview && !CSsid){debug("ARG", "CSsid unspecified");return;}var domSupport = false;var appName    = window.navigator.appName;var userAgent  = window.navigator.userAgent;var appVersion = window.navigator.appVersion;var match;if(appName.toLowerCase() == "netscape"){if(userAgent.match(/safari\/([0-9]+).([^ ]+)/i)){}else if(userAgent.match(/gecko/i)){domSupport = true;}}else if((match=userAgent.match(/opera[ \/]?([0-9]+).([0-9]+)/i)) && match[1] > 6){domSupport = true;}else if(appName.toLowerCase() == "microsoft internet explorer" &&(match=appVersion.match(/msie ([0-9]+).([0-9]+)/i)) && match[1] > 4){domSupport = true;}if(!domSupport){debug("RES", "Browser does not support DOM/DHTML");return;}if(!CSspreview && !Instadia_Survey_context){var d = new Date();var n = d.getTime();d.setTime(n+4000);var p = "instadia.survey.test="+n+".";document.cookie = p+"; expires="+d.toGMTString()+"; path=/";if(document.cookie.indexOf(p) < 0){debug("RES", "Stored cookies are unavailable");return;}++n;p = "instadia.survey.test="+n+".";document.cookie = p+"; path=/";if(document.cookie.indexOf(p) < 0){debug("RES", "Session cookies are unavailable");return;}}var i;if(CSsd){i = location.hostname.indexOf(CSsd);if(i < 0 || i != location.hostname.length - CSsd.length){debug("RES", "Effective domain does not match CSsd");return;}}Instadia_Survey_uriPreview  = location.protocol + "//" + CSsc + "/survey/preview.js.php";Instadia_Survey_uriSurvey   = location.protocol + "//" + CSsl;Instadia_Survey_uriAccounts = Instadia_Survey_uriSurvey + "/survey-accounts";Instadia_Survey_uriImg      = Instadia_Survey_uriSurvey + "/img/survey";var uri;if(!CSspreview){var sessionIdName = "instadia.survey.session=";var sessionId;var l  = sessionIdName.length;var l2 = document.cookie.length;i = 0;while(i < l2){var j = i + l;if(document.cookie.substring(i, j) == sessionIdName){i = document.cookie.indexOf(";", j);if(i == -1) i = document.cookie.length;sessionId = unescape(document.cookie.substring(j, i));break;}++i;}var topDomain = location.hostname;if(!sessionId){sessionId = new Date().getTime() + Math.round(Math.random()*100000);document.cookie = sessionIdName + sessionId + "; domain=" + topDomain + "; path=/";}uri = Instadia_Survey_uriAccounts + "/" + CSsid + "/survey.js?" + sessionId;}else if(Instadia_Survey_context == "preview_popup"){if(!Instadia_Survey_uniqueId)debug("INT", "Missing survey ID in preview popup");uri = Instadia_Survey_uriPreview + "?s=" +Instadia_Survey_uniqueId + "&p=1&c=1&r=" +new Date().getTime() + Math.round(Math.random()*100000);}else uri = Instadia_Survey_uriSurvey + "/survey/main.js";var onload = function(){var script = document.createElement("script");script.type = "text/javascript";script.src  = uri;document.body.appendChild(script);};if(typeof window.attachEvent != "undefined"){window.attachEvent("onload", onload);}else if(window.addEventListener){window.addEventListener("load", onload, false);}}
function Instadia_Survey_debugSession(){document.cookie = Instadia_Survey_debugCookie+"; path=/";}
function Instadia_Survey_compatibilityHook(cId, ICSdesc){if(Instadia_Survey_compatibilityHookCalled) return;Instadia_Survey_compatibilityHookCalled = true;if(typeof cId     == "undefined") cId     = "";if(typeof ICSdesc == "undefined") ICSdesc = "";CSenable = true;CSid     = cId;CSurl    = ICSgs;CStitle  = ICSdesc;Instadia_run();}var Instadia_Survey_compatibilityHookCalled;if(Instadia_Survey_context) Instadia_run();
<!-- -->
