// version 1.1.09 function sc(nm, value) { var ex = new Date(); ex.setHours(ex.getHours()+9999); document.cookie = nm+'='+value+'; exires='+ex.toGMTString()+'; path=/'; } function gc(v) { var cv = document.cookie; var csa = cv.indexOf(" "+v+"="); if (csa == -1) { csa = cv.indexOf(v+"="); } if (csa == -1) { cv = null; } else { csa = cv.indexOf("=", csa)+1; var cea = cv.indexOf(";", csa); if (cea == -1) { cea = cv.length; } cv = unescape(cv.substring(csa, cea)); } return cv; } function sl() { sc("bw", "low"); window.location.reload(); s = document.location.search; document.location.search = s.replace("high", "low"); } function sh() { sc("bw", "high"); window.location.reload(); s = document.location.search; document.location.search = s.replace("low", "high"); } fo = function (nm, ls, hs, tp) { this.gb(); this.rd(this.gb()); this.sd(ls, hs); this.width = w; this.height = h; this.swf = this.ss(nm, tp); this.id = "flashvideo"; this.align = "middle"; this.ps = new Object(); this.vs = new Object(); this.ap('quality', 'high'); this.av("isLocal", "true"); }; fo.prototype.ce = function() { var cke = false; sc("test", "true"); if (!gc("test")) { cke = false; } else { cke = true; } return cke; }; fo.prototype.gb = function() { s = document.location.search; if (this.ce() && gc("bw")) { bw = gc("bw"); } else if (s.search("low") != -1) { bw = "low"; sc("bw", "low"); } else if (s.search("high") != -1) { bw = "high"; sc("bw", "high"); } else { bw = null; } return bw; }; fo.prototype.rd = function(b) { if (b == null) { location.replace("http://www.filestreams.com/dev/blogger/detect.html?"+location.href); } }; fo.prototype.sd = function(ls, hs) { tmp = ls.split("x"); lw = tmp[0]; lh = tmp[1]; tmp = hs.split("x"); hw = tmp[0]; hh = tmp[1]; if (bw.search("high") != -1) { w = hw; h = hh; } else { w = lw; h = lh; } }; fo.prototype.ss = function(nm, tp) { if (tp == "swf") { sn = p+nm+"_"+bw+".swf"; } else { sn = p+"fsplayer.swf?flv="+nm+"_"+bw+".flv"; } return sn; }; fo.prototype.ap = function(nm, value) { this.ps[nm] = value; }; fo.prototype.gps = function() { return this.ps; }; fo.prototype.gp = function(nm) { return this.ps[nm]; }; fo.prototype.av = function(nm, value) { this.vs[nm] = value; }; fo.prototype.gv = function(nm) { return this.vs[nm]; }; fo.prototype.gvs = function() { return this.vs; }; fo.prototype.gpt = function() { var pt = ""; for (var param in this.gps()) { pt += ''; } if (pt == "") { pt = null; } return pt; }; fo.prototype.gh = function() { var fh = ""; if (window.ActiveXObject && navigator.userAgent.indexOf('Mac') == -1) { fh += ''; fh += ''; if (this.gpt() != null) { fh += this.gpt(); } if (this.gvp() != null) { fh += ''; } fh += ''; } else { fh += '