var scr_res = '800X600';if (screen.height&&screen.width){scr_res=screen.width+'X'+screen.height;}
function get_cookie(name) {var start = document.cookie.indexOf(name + '=');var len = start + name.length + 1;if ((!start) && (name != document.cookie.substring(0,name.length)))return null;if (start == -1)return null;var end = document.cookie.indexOf(';',len);if (end == -1) end = document.cookie.length;return unescape(document.cookie.substring(len,end));}
function set_cookie(name,value,expires,path,domain,secure) {document.cookie = name + '=' + escape(value) + ( (expires) ? ';expires=' + expires.toGMTString() : '') + ( (path) ? ';path=' + path : '') +  ( (domain) ? ';domain=' + domain : '') + ( (secure) ? ';secure' : '');}
function delete_cookie(name,path,domain) {if (get_cookie(name))document.cookie = name + '=' + ( (path) ? ';path=' + path : '') + ( (domain) ? ';domain=' + domain : '') + ';expires=Thu, 01-Jan-1970 00:00:01 GMT';}
var winpop;
function fcs_tlc(src, dest, tag, ispopup, isbank) {if (dest=='') {return;}url = 'http://www.mweb.co.za/applications/focus/track.aspx?tag=' + tag +'&src=' + src + '&dest=' + escape(dest);if (ispopup){options = 'location=yes,resizable=yes,height=500,width=780,screeny=0,screenx=0,left=0,top=0,scrollbars=yes,toolbar=yes,menu=yes';if (isbank) {options += ',status=yes';}winpop = window.open(url,'',options);if (winpop.focus){setTimeout('winpop.focus();',250);}return;}else{window.location.href = url;return;}}
function fcs_tlc_ws(src, dest, tag, ispopup, isbank, w, h) {if (dest=='') {return;}url = 'http://www.mweb.co.za/applications/focus/track.aspx?tag=' + tag +'&src=' + src + '&dest=' + escape(dest);if (ispopup){options = 'location=no,resizable=no,height=' + h + ',width=' + w + ',screeny=0,screenx=0,left=0,top=0,scrollbars=no,toolbar=no,menu=no';if (isbank) {options += ',status=yes';}winpop = window.open(url,'',options);if (winpop.focus){setTimeout('winpop.focus();',250);}return;}else{window.location.href = url;return;}}
function track_location(src, dest, ispopup, isbank) {if (dest=='') {return;}url = 'http://www.mweb.co.za/system/clstat.aspx?src=' + src + '&dest=' + escape(dest);if (ispopup){options = 'location=yes,resizable=yes,height=500,width=780,screeny=0,screenx=0,left=0,top=0,scrollbars=yes,toolbar=yes,menu=yes';if (isbank) {options += ',status=yes';}winpop = window.open(url,'',options);if (winpop.focus){setTimeout('winpop.focus();',250);}return;}else{window.location.href = url;return;}}
function track_location_windowsize(src, dest, ispopup, isbank, windowwidth, windowheight){if (dest==''){return;}url = 'http://www.mweb.co.za/system/clstat.aspx?src=' + src + '&dest=' + escape(dest);if (ispopup){options = 'location=no,height=' + windowheight + ',width=' + windowwidth + ',screeny=0,screenx=0,left=0,top=0,scrollbars=no,toolbar=no,menu=no,resizable=yes';if (isbank) {options += ',status=yes';}winpop = window.open(url,'',options);if (winpop.focus){setTimeout('winpop.focus();',250);}return;}else{window.location.href = url;return;}}
function track_location_windowsize_sb(src, dest, ispopup, isbank, windowwidth, windowheight){if (dest==''){return;}url = 'http://www.mweb.co.za/system/clstat.aspx?src=' + src + '&dest=' + escape(dest);if (ispopup){options = 'location=no,height=' + windowheight + ',width=' + windowwidth + ',screeny=0,screenx=0,left=0,top=0,scrollbars=yes,toolbar=no,menu=no,resizable=yes';if (isbank) {options += ',status=yes';}winpop = window.open(url,'',options);if (winpop.focus){setTimeout('winpop.focus();',250);}return;}else{window.location.href = url;return;}}
function browser_sniffer(){var agt=navigator.userAgent.toLowerCase();	this.ie4=document.all&&!document.getElementById;this.ie5=document.all&&document.getElementById;this.ie6=document.all&&document.getElementById;	this.ns4=document.layers;this.ns6=document.getElementById&&!document.all;this.is_win=((agt.indexOf("win")!=-1)||(agt.indexOf("16bit")!=-1));this.is_mac=(agt.indexOf("mac")!=-1);}
var objB=new browser_sniffer();
function getElementById(id){if (objB.ie4){return document.all[id];}else if(objB.ns6||objB.ie5){return document.getElementById(id);}}
function flash_able(ver){result=false;if(navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]){var plugin=navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin;if (navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&parseInt(plugin.description.substring(plugin.description.indexOf(".")-1))>=ver){result=true}}else if(document.all&&(navigator.appVersion.indexOf("Mac")==-1)){eval('try {var xObj=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+ver);if (xObj) result=true;xObj=null;}catch(e){}');}return result;}
function rvar(){var ddndt = new Date();var strVariable = Math.round(ddndt.getTimezoneOffset()/60) + 'DDS' + ddndt.getTime()+'-'+Math.random();return strVariable;}
function ad_script(s,a,t,p,as){var strTag;var strRandomVariable=rvar();var strAdDetail = 'site=' + s + '&affiliate='+ a + '&target=' + t + '&position=' + p + '&adsize=' + as + '&number='+ strRandomVariable;strTag = ('<' + 'SCRIPT LANGUAGE="JavaScript1.1" SRC="http://a.coza.com/js.ng/'+ strAdDetail +'"></' + 'script>');strTag += ('<NOSCRIPT><A HREF="http://a.coza.com/click.ng/' + strAdDetail + '">');strTag += ('<IMG SRC="http://a.coza.com/image.ng/' + strAdDetail + '"></A></NOSCRIPT>');document.write(strTag);}
function ad_script_res(s,a,t,p,as, scr){var strTag;var strRandomVariable=rvar();var strAdDetail = 'site=' + s + '&affiliate='+ a + '&target=' + t + '&position=' + p + '&adsize=' + as + '&number='+ strRandomVariable + '&scr=' + scr;strTag = ('<' + 'SCRIPT LANGUAGE="JavaScript1.1" SRC="http://a.coza.com/js.ng/'+ strAdDetail +'"></' + 'script>');strTag += ('<NOSCRIPT><A HREF="http://a.coza.com/click.ng/' + strAdDetail + '">');strTag += ('<IMG SRC="http://a.coza.com/image.ng/' + strAdDetail + '"></A></NOSCRIPT>');document.write(strTag);}
function user_greeting (p, l){Now=new Date();TheHour=Now.getHours();if(l=="English"){if(TheHour<12){Greeting='Good Morning '+p;}else if(TheHour<17){Greeting='Good Afternoon '+p;}else {Greeting='Good Evening '+p;}}else if(l=="Afrikaans"){if(TheHour<12){Greeting='Goeiem&ocirc;re '+p;}else if(TheHour<17){Greeting='Goeiemiddag '+p;}else {Greeting='Goeienaand '+p;}}else if(l=="isiXhosa"){if(TheHour<12){Greeting='Molo '+p;}else if(TheHour<17){Greeting='Molo '+p;}else {Greeting='Molo '+p;}}else if(l=="isiZulu"){if(TheHour<12){Greeting='Sawubona '+p;}else if(TheHour<17){Greeting='Sawubona '+p;}else {Greeting='Sawubona '+p;}}else if(l=="Sesotho"){if(TheHour<12){Greeting='Dumela '+p;}else if(TheHour<17){Greeting='Dumela '+p;}else {Greeting='Dumela '+p;}}else if(l=="Sepedi"){if(TheHour<12){Greeting='Dumela '+p;}else if(TheHour<17){Greeting='Dumela '+p;}else {Greeting='Dumela '+p;}}else if(l=="Setswana"){if(TheHour<12){Greeting='Dumela '+p;}else if(TheHour<17){Greeting='Dumela '+p;}else {Greeting='Dumela '+p;}}else if(l=="Tsivenda"){if(TheHour<12){Greeting='Ndi matsheloni '+p;}else if(TheHour<17){Greeting='Ndi masiari '+p;}else {Greeting='Ndi madekwana '+p;}}else if(l=="isiNdebele"){if(TheHour<12){Greeting='Sawubona '+p;}else if(TheHour<17){Greeting='Sawubona '+p;}else {Greeting='Sawubona '+p;}}else if(l=="siSwati"){if(TheHour<12){Greeting='Kusile '+p;}else if(TheHour<17){Greeting='Lishonili '+p;}else {Greeting='Kuhlwile '+p;}}else if(l=="Xitsonga"){if(TheHour<12){Greeting='Avuxeni '+p;}else if(TheHour<17){Greeting='Avuxeni '+p;}else {Greeting='Avuxeni '+p;}}else if(l=="Souf_Efrikan"){if(TheHour<12){Greeting='Hoesit '+p;}else if(TheHour<17){Greeting='Jooit! '+p;}else {Greeting='Heita! '+p;}}document.write(Greeting);}
function track_locationwithoption(src, dest, ispopup, isbank,soption) {if (dest=='') {return;}url = 'http://www.mweb.co.za/system/clstat.aspx?src=' + src + '&dest=' + escape(dest);if (ispopup){options =soption;if (isbank) {options += ',status=yes';}winpop = window.open(url,'',options);if (winpop.focus){setTimeout('winpop.focus();',250);}return;}else{window.location.href = url;return;}}
