var key_ex = ''; var ads = ""; var userno = ""; function ifrm_hv(thisobj) { var obj = document.getElementById('nlchatwin'); if(obj.style.display == "inline") { obj.style.display = "none"; thisobj.innerHTML = "+"; } else{ obj.style.display = "inline"; thisobj.innerHTML = "X"; } resizevent(document.getElementById('nlmenu')); } function make_style() { var sheet = "\n"; return sheet; } function truebody() { return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body; } function getedge(o, is_top) { var edge; edge = o.menupos=='left'? 0 : truebody().clientWidth? truebody().clientWidth - 30 : window.innerWidth&&truebody().offsetHeight<=window.innerHeight? window.innerWidth : window.innerWidth? window.innerWidth-20 : 0; return edge; } function resizevent(o) { o.style.bottom = '0' o.style.left = getedge(o)-o.offsetWidth+'px'; } function get_domain(val) { var tmp = val.split('http://'); var domain = tmp[1].split('/'); var retval = 'http://' + domain[0] + '/'; return retval; } function make_style_make_menu() { document.write(make_style()); var top_url = top.window.location.href; var host_d = get_domain(top_url); if(key_ex == '' && (host_d != 'http://www.tostito.com/' && host_d != 'http://tostito.com/')) { alert("You tried invalid access to http://www.tostito.com/."); return false; } var dc = "
"; document.write(dc); resizevent(document.getElementById('nlmenu')); } function generate_chat() { make_style_make_menu(); } window.onresize=function(){ var obj = document.getElementById('nlmenu'); resizevent(obj); }; function getCookie(name) { //Without this, it will return the first value //in document.cookie when name is the empty string. if(name == '') return(''); name_index = document.cookie.indexOf(name + '='); if(name_index == -1) return(''); cookie_value = document.cookie.substr(name_index + name.length + 1, document.cookie.length); //All cookie name-value pairs end with a semi-colon, except the last one. end_of_cookie = cookie_value.indexOf(';'); if(end_of_cookie != -1) cookie_value = cookie_value.substr(0, end_of_cookie); //Restores all the blank spaces. space = cookie_value.indexOf('+'); while(space != -1) { cookie_value = cookie_value.substr(0, space) + ' ' + cookie_value.substr(space + 1, cookie_value.length); space = cookie_value.indexOf('+'); } return(cookie_value); } generate_chat()