var allow = 1; function FlashTag(src) { // Required this.type = src; if (src=='crossword') this.src = 'http://data.websitepuzzles.com/swf/'+src+'/'+src+'.swf?pid=271'; if (src=='sudoku') this.src = 'http://data.websitepuzzles.com/swf/'+src+'/'+src+'.swf?pid=270'; if (src=='wordsearch') this.src = 'http://data.websitepuzzles.com/swf/'+src+'/'+src+'.swf?pid=464'; if (src=='codecracker') this.src = 'http://data.websitepuzzles.com/swf/'+src+'/'+src+'.swf?pid=463'; this.width = 100; this.height = 100; this.version = '8,0,0,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.websitepuzzles.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 = '7,0,14,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.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("
"); var m3_u = (location.protocol=='https:'?'https://srv1.youplay.com/www/delivery/ajs1.php':'http://srv1.youplay.com/www/delivery/ajs1.php'); var m3_r = Math.floor(Math.random()*99999999999); if (!document.MAX_used) document.MAX_used = ','; document.write ("
<\/scr"+"ipt>
"); document.write("
"); document.write (""); document.write('
'); 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); } document.write('');