var remote_flash = 'http://www.werkgeversdrechtsteden.nl/_content_/flash/'; var flashVer=0; vbFlash6=false,vbFlash7=false; vbFlash8=false; vbFlash9=false; vbFlash10=false; vbFlash11=false; vbFlash12=false; if(navigator.plugins["Shockwave Flash"]){ flashVer=parseInt(navigator.plugins["Shockwave Flash"].description.substr(16)); } else { document.write('\n'); document.write('on error resume next\n'); document.write('vbFlash6=(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6")))\n'); document.write('vbFlash7=(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.7")))\n'); document.write('vbFlash8=(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.8")))\n'); document.write('vbFlash9=(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.9")))\n'); document.write('vbFlash10=(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.10")))\n'); document.write('vbFlash11=(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.11")))\n'); document.write('vbFlash12=(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.12")))\n'); document.write('\n'); flashVer=(vbFlash6)?6:flashVer; flashVer=(vbFlash7)?7:flashVer; flashVer=(vbFlash8)?8:flashVer; flashVer=(vbFlash9)?9:flashVer; flashVer=(vbFlash10)?10:flashVer; flashVer=(vbFlash11)?11:flashVer; flashVer=(vbFlash12)?12:flashVer; } function Widget_FlashTag(src, width, height, version, groep, soort, info,full) { this.src = src; this.width = width; this.height = height; this.version = version; this.id = 'flashfloater'; this.flashVars = null; this.flashVarsStr = null; this.genericParam = new Object(); this.genericParam['menu'] = 'false'; this.genericParam['scale'] = 'noscale'; this.genericParam['quality'] = 'high'; if (full == '' || full == undefined) { full = false; } else { this.genericParam['allowFullScreen'] = 'true'; } this.addFlashVar('typert', groep); this.addFlashVar('melding', soort); this.addFlashVar('info', info); this.genericParam['wmode'] = 'transparent'; this.addFlashVar('ID', 'flashfloater'); this.genericParam['allowScriptAccess'] = 'always'; this.ie = (navigator.appName.indexOf ("Microsoft") != -1) ? 1 : 0; } Widget_FlashTag.prototype.setSource = function(src) { this.src = src; } Widget_FlashTag.prototype.setWidth = function(w) { this.width = width; } Widget_FlashTag.prototype.setHeight = function(h) { this.h = height; } Widget_FlashTag.prototype.setVersion = function(v) { this.version = v; } Widget_FlashTag.prototype.setId = function(id) { this.id = id; } Widget_FlashTag.prototype.setBgcolor = function(bgc) { if (bgc.charAt(0) != '#') { bgc = '#' + bgc; } this.genericParam['bgcolor'] = bgc; } Widget_FlashTag.prototype.addFlashVars = function(fvs) { this.flashVarsStr = fvs; } Widget_FlashTag.prototype.addFlashVar = function(n, v) { if (this.flashVars == null) { this.flashVars = new Object(); } this.flashVars[n] = unescape(v); } Widget_FlashTag.prototype.removeFlashVar = function(n) { if (this.flashVars != null) { this.flashVars[n] = undefined; } } Widget_FlashTag.prototype.setSwliveconnect = function(swlc) { this.genericParam['swliveconnect'] = swlc; } Widget_FlashTag.prototype.setPlay = function(p) { this.genericParam['play'] = p; } Widget_FlashTag.prototype.setLoop = function(l) { this.genericParam['loop'] = l; } Widget_FlashTag.prototype.setMenu = function(m) { this.genericParam['menu'] = m; } Widget_FlashTag.prototype.setQuality = function(q) { if (q != 'low' && q != 'high' && q != 'autolow' && q != 'autohigh' && q != 'best') { alert('Supported values are "low", "high", "autolow", "autohigh", and "best".'); } this.genericParam['quality'] = q; } Widget_FlashTag.prototype.setScale = function(sc) { if (sc != 'showall' && sc != 'noborder' && sc != 'exactfit') { alert('Supported values are "showall", "noborder", and "exactfit".'); } this.genericParam['scale'] = sc; } Widget_FlashTag.prototype.setAlign= function(a) { if (a != 'l' && a != 't' && a != 'r' && a != 'b') { alert('Supported values are "l", "t", "r" and "b".'); } this.genericParam['align'] = a; } Widget_FlashTag.prototype.setSalign= function(sa) { if (sa != 'l' && sa != 't' && sa != 'r' && sa != 'b' && sa != 'tl' && sa != 'tr' && sa != 'bl' && sa != 'br') { alert('Supported values are "l", "t", "r", "b", "tl", "tr", "bl" and "br".'); } this.genericParam['salign'] = sa; } Widget_FlashTag.prototype.setWmode = function(wm) { if (wm != 'window' && wm != 'opaque' && wm != 'transparent') { alert('Supported values are "window", "opaque", and "transparent".'); } this.genericParam['wmode'] = wm; } Widget_FlashTag.prototype.setBase = function(base) { this.genericParam['base'] = base; } Widget_FlashTag.prototype.toString = function() { var flashTag = new String(); if (this.ie) { flashTag += ''; flashTag += ''; for (var n in this.genericParam) { if (this.genericParam[n] != undefined && 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; } Widget_FlashTag.prototype.write = function(doc) { doc.write(this.toString()); } Widget_FlashTag.prototype.getFlashVarsAsString = function() { var qs = new String(); for (var n in this.flashVars) { if (this.flashVars[n] != undefined && 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); } var container = ''; container += '$xml_url=http://www.werkgeversdrechtsteden.nl/xml/[@]type[is]BE[en]mode[is]carrousel'; container += '$link_target=_blank'; function show_widget_carrousel(divID) { if (flashmap == undefined) { var flashmap = remote_flash; } if (divID == undefined) { var divID = 'widget'; } var tag = new Widget_FlashTag(flashmap+'widget_carrousel.swf'+'?v=','316','360', '6,0,0,0','','',container); widgetDiv = document.getElementById(divID); widgetDiv.innerHTML = tag; }