/* some commented stuff here; is it okay? */
var url_args = new Array();
allargs = document.URL.split("?");
if(allargs[1]) {
arg_pairs = allargs[1].split("&");
for(var x = 0; x < arg_pairs.length; x++){
tmp=arg_pairs[x].split("=");
eval("url_args[\""+tmp[0]+"\"]=\""+tmp[1]+"\";");
}
}
function geturlarg (value) {
if (url_val = url_args[value]) {
return url_val;
}
}
function getcookie(cookiename) {
var cookiestring=""+document.cookie;
var index1=cookiestring.indexOf(cookiename+"=");
if (index1==-1 || cookiename=="") return "";
var index2=cookiestring.indexOf(';',index1);
if (index2==-1) index2=cookiestring.length;
return unescape(cookiestring.substring(index1+cookiename.length+1,index2));
}
function SetCookie (name, value) {
var argv = SetCookie.arguments;
var argc = SetCookie.arguments.length;
var expires = (argc > 2) ? argv[2] : null;
var path = (argc > 3) ? '/' + argv[3]: '/';
var domain = (argc > 4) ? argv[4] : null;
var secure = (argc > 5) ? argv[5] : false;
document.cookie = name + "=" + escape (value) +
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
((path == null) ? "" : ("; path=" + path)) +
((domain == null) ? "" : ("; domain=" + domain)) +
((secure == true) ? "; secure" : "");
}
function trackcampaignhit (webtrends_campaign_tracking_id) {
// Webtrends campaign is activated by arg rather than url param
url_campaign_id = geturlarg('campaign_tracking_id');
cookie_campaign_id = getcookie('campaign_tracking_id');
if (webtrends_campaign_tracking_id || (url_campaign_id) && (url_campaign_id != cookie_campaign_id)) {
document.write('');
}
}
function setreferralidcookie (path) {
referral_id = geturlarg('referralid');
if (referral_id) {
SetCookie("referral_id",referral_id,null,path);
}
}
function setquixtarcookie() {
quixtar_id = geturlarg('eID');
if (quixtar_id) {
SetCookie("quixtarid",quixtar_id);
}
}
function writehiddenform(value) {
var ret_val = getcookie(value);
if (ret_val) {
document.write('');
}
}
function MM_findObj(n, d) {
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i'.
If the cookie does not exist let's set the cookie and
call disp_image() with unique set to 1. If it does exists
then exit.
disp_img(website_id, source,vh, unique) -
Description:
Function to request the track_website.cgi image
wrapper_uniq_hit() -
Description:
A wrapper function to track_uniq_hit(). This is being used for the Event listeners.
*/
function disp_img(website_id,source, vh, unique) {
var i=new Image(1,1)
if (unique != '1') unique = ''
var gifPath = "/cgis/track_website.cgi"
var gifParams = "website_id="+website_id+"&source="+source+"&vh="+vh+"&unique_visit="+unique
i.src = gifPath+"?"+gifParams
i.onload=function() { return; }
}
/*
Track Unique Hits only! Send an image request (from any non-secure page) when 'unique_visit_' cookie is not set and also set the cookie.
*/
function track_uniq_hit(website_id, source, vh) {
if (website_id) {
var cookieName = 'unique_visit_'+website_id
var exists_uniquev_cookie = getcookie(cookieName)
if (exists_uniquev_cookie!=1) {
var today = new Date()
var expire = new Date()
expire.setTime(today.getTime() + 3600000*24*1)
SetCookie(cookieName,1,expire)
disp_img(website_id, source, vh, 1)
}
}
}
/* Wrapper function to track_uniq_hit() */
function wrapper_track_uniq_hit() {
track_uniq_hit('505445485054536565', '', 'www.knaupfloral.com')
}
/* DO NOT REMOVE THE FOLLOWING CODE. */
//setup onload function to track UNIQUE HITS!
if(typeof window.addEventListener != 'undefined')
{
//.. gecko, safari, konqueror and standard
window.addEventListener('load', wrapper_track_uniq_hit, false);
}
else if(typeof document.addEventListener != 'undefined')
{
//.. opera 7
document.addEventListener('load', wrapper_track_uniq_hit, false);
}
else if(typeof window.attachEvent != 'undefined')
{
//.. win/ie
window.attachEvent('onload', wrapper_track_uniq_hit);
}
/* END DO NOT REMOVE THE FOLLOWING CODE. */
// Track splash page access.
function track_splash_access(website_id,page_id, type, location) {
var i=new Image(1,1)
var gifPath = "/cgis/track_splash.cgi"
var gifParams = "website_id="+website_id+"&page_id="+page_id+"&type="+type+"&location="+location
i.src = gifPath+"?"+gifParams
i.onload=function() { return; }
}
// Event Attributes from images and form input text fields
function addEvent(el, eType, fn, uC) {
if (!document.getElementById) return false;
if (el.addEventListener) {
el.addEventListener(eType, fn, uC);
return true;
} else if (el.attachEvent) {
return el.attachEvent('on' + eType, fn);
}
}
// To clear the advanced Search input field.
function advancedSearchOnClick() {
if (!document.getElementById) return false;
document.getElementById('search').value = "";
}
// Right click alert for Hacker Safe.
function hackerSafeOnContextMenu() {
alert('Copying Prohibited by Law - HACKER SAFE is a Trademark of McAfee, Inc.');
return false;
}
window.onload = function () {
if (document.getElementById('search')) {
addEvent(document.getElementById('search'), 'focus',advancedSearchOnClick,false);
}
if (document.getElementById('hackerSafe')) {
addEvent(document.getElementById('hackerSafe'), 'contextmenu',hackerSafeOnContextMenu,false);
}
}