function FlashTag(src, w, h) { // Required this.type = src; if ((src=='crossword')||(src=='fb_crossword')) { this.src = 'http://data.puzzlexperts.com/swf/'+src+'/'+src+'.swf?pid=271&zoneID=127'; this.width = w; this.height = h; } if (src=='crossword_us') { this.src = 'http://data.puzzlexperts.com/swf/'+src+'/'+src+'.swf?pid=100000012&zoneID=127'; this.width = w; this.height = h; // this.width = 560; // this.height = 415; } if (src=='cryptic') { this.src = 'http://data.puzzlexperts.com/swf/'+src+'/'+src+'.swf?pid=100000001&zoneID=126'; this.width = w; this.height = h; // this.width = 560; // this.height = 415; } if ((src=='sudoku')||(src=='fb_sudoku')) { this.src = 'http://data.puzzlexperts.com/swf/'+src+'/'+src+'.swf?pid=270&zoneID=128'; this.width = w; this.height = h; if (w==undefined) this.width = 435; if (h==undefined) this.height = 500; } if ((src=='wordsearch')||(src=='fb_wordsearch')) { this.src = 'http://data.puzzlexperts.com/swf/'+src+'/'+src+'.swf?pid=463&zoneID=122'; this.width = w; this.height = h; // this.width = 560; // this.height = 415; } if ((src=='codecrackers')||(src=='fb_codecrackers')) { this.src = 'http://data.puzzlexperts.com/swf/'+src+'/'+src+'.swf?pid=464&zoneID=121'; this.width = w; this.height = h; // this.width = 560; // this.height = 510; } if ((src=='trivia_general')||(src=='fb_trivia_general')) { this.src = 'http://data.puzzlexperts.com/swf/'+src+'/'+src+'.swf?pid=547&zoneID=125'; this.width = w; this.height = h; // this.width = 560; // this.height = 510; } this.version = '9,0,124,0'; this.id = 'WSP'; this.flashVars = null; this.flashVarsStr = null; this.genericParam = new Object(); this.setAllowScriptAccess = "always"; this.ie = (navigator.appName.indexOf ("Microsoft") != -1) ? 1 : 0; } Puzzle = FlashTag; FlashTag.prototype.setSource = function(src) { this.src = 'http://data.puzzlexperts.com/swf/'+src+'/'+src+'.swf?pid=271'; } FlashTag.prototype.setWidth = function(w) { this.width = width; } FlashTag.prototype.setHeight = function(h) { this.h = height; } FlashTag.prototype.setVersion = function(v) { this.version = '9,0,124,0'; } FlashTag.prototype.setId = function(id) { this.id = id; } FlashTag.prototype.setBgcolor = function(bgc) { if (bgc.charAt(0) != '#') { bgc = '#' + bgc; } this.genericParam['bgcolor'] = bgc; } FlashTag.prototype.addFlashVars = function(fvs) { this.flashVarsStr = fvs; } FlashTag.prototype.addFlashVar = function(n, v) { if (this.flashVars == null) { this.flashVars = new Object(); } this.flashVars[n] = v; } FlashTag.prototype.removeFlashVar = function(n) { if (this.flashVars != null) { this.flashVars[n] = null; } } FlashTag.prototype.setSwliveconnect = function(swlc) { this.genericParam['swliveconnect'] = swlc; } FlashTag.prototype.setPlay = function(p) { this.genericParam['play'] = p; } FlashTag.prototype.setLoop = function(l) { this.genericParam['loop'] = l; } FlashTag.prototype.setMenu = function(m) { this.genericParam['menu'] = m; } FlashTag.prototype.setQuality = function(q) { this.genericParam['quality'] = q; } FlashTag.prototype.setScale = function(sc) { this.genericParam['scale'] = sc; } FlashTag.prototype.setAlign= function(a) { this.genericParam['align'] = a; } FlashTag.prototype.setSalign= function(sa) { this.genericParam['salign'] = sa; } FlashTag.prototype.setWmode = function(wm) { this.genericParam['wmode'] = wm; } FlashTag.prototype.setBase = function(base) { this.genericParam['base'] = base; } FlashTag.prototype.setAllowScriptAccess = function(sa) { this.genericParam['allowScriptAccess'] = sa; } FlashTag.prototype.toStringX = function() { var flashTag = new String(); flashTag += ""; flashTag += ""; return flashTag; } FlashTag.prototype.toString = function() { var flashTag = new String(); if (this.ie) { flashTag += ''; flashTag += ''; for (var n in this.genericParam) { if (this.genericParam[n] != null) { flashTag += ''; } } if (this.flashVars != null) { var fv = this.getFlashVarsAsString(); if (fv.length > 0) { flashTag += ''; } } flashTag += ''; } else { flashTag += ' 0) { flashTag += ' flashvars="'+fv+'"'; } } flashTag += ' pluginspage="http://www.macromedia.com/go/getflashplayer">'; flashTag += ''; } return flashTag; } FlashTag.prototype.write = function(doc) { google_ad_client = "pub-4799626540510986"; /* 468x60, created 12/03/09 */ google_ad_slot = "1972375947"; google_ad_width = 468; google_ad_height = 60; if ((this.type == 'crossword')||(this.type == 'crossword_test')||(this.type == 'lovatts_big_crossword')) { openXZone = 70; } else if ((this.type == 'sudoku')||(this.type == 'sudoku_test')) { openXZone = 106; } else if (this.type == 'wordsearch') { openXZone = 108; } else if (this.type == 'codecrackers') { openXZone = 107; } else { // default to crosswords openXZone = 70; } document.write(""); document.write("'); document.write("'); document.write("
"); document.write("Find your favourite free puzzles at Lovatts Crosswords & Puzzles"); document.write('
"); document.write("To order puzzles for your website click here"); document.write('
"); } FlashTag.prototype.getFlashVarsAsString = function() { var qs = new String(); for (var n in this.flashVars) { if (this.flashVars[n] != null) { qs += (escape(n)+'='+escape(this.flashVars[n])+'&'); } } if (this.flashVarsStr != null) { return qs + this.flashVarsStr; } return qs.substring(0, qs.length-1); }