var accountid_36 = "36";var groupid_36 = "";var chartid_36 = "48";var accountName_36 = "TampaBayTimesForumFootball";var custom_36 = "False";var v_36 = "1_b4";var baseURL = "http://www.myvenueviews.com/";var sVer_36 = "9.0.28";var linkID_36 = "vv_link_3648";var inlineID_36 = "vv_inline_3648"; // Instance variables var bolVVIntefaceBuilt_36 = false; var bolVVIntefaceLoaded_36 = false; function addLoadEvent_36(func) { var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload = func; } else { window.onload = function() { if (oldonload) { oldonload(); } func(); } } } addLoadEvent_36 (function () { _initVVInterface_36(); }); // _initVVInterface(); function _initVVInterface_36(){ // load styles var style = document.createElement("link"); var sFile = 'styles/venueviews.css'; if(custom_36 != "False") sFile = 'styles/venueviews_'+accountName_36 + '.css'; style.href = baseURL+sFile; style.type="text/css"; style.rel="stylesheet"; style.media="all"; document.getElementsByTagName("head")[0].appendChild(style); // determine if the needed dom elements are in place then proceed if(null != document.getElementById(eval('linkID_36'))){ // set onclick event for link + remove href and target var link = document.getElementById(linkID_36); link.setAttribute('onclick', '_openVVInterface_36(true);return false;'); link.setAttribute('href', 'javascript:_openVVInterface_36(true);'); link.removeAttribute('target'); } if(null != document.getElementById(inlineID_36)){ //alert('Inline version requested'); _buildInlneInterface_36(); } } function _buildInlneInterface_36(){ var sDivId = "vv_inlineflash_holder_"+accountid_36; // build interface elements var holder = document.getElementById(inlineID_36); var content = holder.appendChild(document.createElement("div")); content.id = "vv_content_"+accountid_36; content.className = "vv_content"; var flash_holder = content.appendChild(document.createElement("div")); flash_holder.id = sDivId; flash_holder.className = "vv_inlineflash_holder"; callSwfObject_36(sDivId); } function _buildOverlayInterface_36(onload){ // alert(onload); // build interface elements var holder = document.getElementsByTagName("body")[0].appendChild(document.createElement("div")); holder.id = "vv_holder_"+accountid_36; holder.style.display = "none"; holder.className = "vv_holder"; var overlay = holder.appendChild(document.createElement("a")); overlay.id = "vv_overlay_"+accountid_36; overlay.className = "vv_overlay"; overlay.setAttribute('onclick', '_openVVInterface(false);return false;'); overlay.setAttribute('href', 'javascript:_openVVInterface(false);'); var content = holder.appendChild(document.createElement("div")); content.id = "vv_content_"+accountid_36; content.className = "vv_content"; var flash_holder = content.appendChild(document.createElement("div")); flash_holder.id = "vv_flash_holder_"+accountid_36; flash_holder.className = "vv_flash_holder"; var closeBtn = content.appendChild(document.createElement("a")); closeBtn.id = "vv_closebtn_"+accountid_36; closeBtn.className = "vv_closebtn"; closeBtn.setAttribute('title', 'Close'); closeBtn.setAttribute('onclick', '_openVVInterface_36(false);return false;'); closeBtn.setAttribute('href', 'javascript:_openVVInterface_36(false);'); closeBtn.innerHTML = 'Close'; bolVVIntefaceBuilt_36 = true; if (!onload) { var aOffest = getScrollXY(); holder.style.top = String(aOffest[1])+'px'; holder.style.display = 'block'; _loadVVInterface_36(); } } // v will determine which flash swf to load function _loadVVInterface_36(){ window.onresize = _realignVVInterface_36; window.onscroll = _realignVVInterface_36; _loadVVFlash_36(); } function _loadVVFlash_36(){ var sDivId = "vv_flash_"+accountid_36; var flash_holder_target = "vv_flash_holder_"+eval('accountid_36'); var flash_holder = document.getElementById(flash_holder_target); var flash = flash_holder.appendChild(document.createElement("div")); flash.id = sDivId; flash.className = "vv_flash"; callSwfObject_36(sDivId); } function callSwfObject_36(div){ var sFlashURL = baseURL+'flash/venueviews_v'+v_36+'.swf'; var att = {data:sFlashURL, width:"100%", height:"100%"} var configFile = 'flash/config/config_public.xml'; if(custom_36 != "False") configFile = 'flash/config/config_'+accountName_36 + '.xml'; // NOTE: hard coded the position of loader since size var flashvars = { accountid: accountid_36, groupid: groupid_36, chartid: chartid_36, loaderx: 342.5, loadery: 277.5, configfile: configFile, datafile: 'flash/config/getXMLContent.asp' }; // flash variables need to be passed as query string for createSWF // i.e. flashvars = accountid=1234&chartid=12 var params = { wmode : "transparent", base : baseURL, menu : false, flashvars : buildVarString(flashvars) }; if(swfobject.hasFlashPlayerVersion(sVer_36)){ swfobject.createSWF(att, params, div); bolVVIntefaceLoaded_36 = true; }; } function buildVarString(o){ var s = ''; for(var prp in o){ s += prp+"="+o[prp]+"&"; }; return s; }; function _removeVVFlash_36(){ //alert('_removeVVFlash(accountid:'+accountid_36+', chartid:'+chartid+', v:'+v+')'); swfobject.removeSWF("vv_flash_"+accountid_36); bolVVIntefaceLoaded_36 = false; } function _openVVInterface_36(bol){ // alert(bol); if (bol) { if (!bolVVIntefaceBuilt_36) { _buildOverlayInterface_36(false); } else { var aOffest = getScrollXY(); //var scrollY = (window.pageYOffset)? window.pageYOffset : document.documentElement.scrollTop; var holder = document.getElementById('vv_holder_'+accountid_36); holder.style.top = String(aOffest[1])+'px';//window.pageYOffset holder.style.display = 'block'; _realignVVInterface_36(); if (!bolVVIntefaceLoaded_36) { _loadVVInterface_36(); } else { _realignVVInterface_36(); } } } else { document.getElementById('vv_holder_'+accountid_36).style.display = 'none'; _removeVVFlash_36(); } } function _realignVVInterface_36() { var aOffest = getScrollXY(); var windowH = (window.innerHeight)? window.innerHeight : document.getElementsByTagName("body"); //alert(document.documentElement.clientHeight+','+aOffest); var ol = document.getElementById('vl_overlay'); if(null != ol){ ol.style.top = String(aOffest[1] - findPosY(document.getElementById('vl_holder'))) + 'px'; ol.style.height = String(windowH) + 'px'; } } function findPosY(obj) { var curtop = 0; if(obj.offsetParent) while(1) { curtop += obj.offsetTop; if(!obj.offsetParent) break; obj = obj.offsetParent; } else if(obj.y) curtop += obj.y; return curtop; } function getScrollXY() { var scrOfX = 0, scrOfY = 0; if( typeof( window.pageYOffset ) == 'number' ) { //Netscape compliant scrOfY = window.pageYOffset; scrOfX = window.pageXOffset; } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) { //DOM compliant scrOfY = document.body.scrollTop; scrOfX = document.body.scrollLeft; } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) { //IE6 standards compliant mode scrOfY = document.documentElement.scrollTop; scrOfX = document.documentElement.scrollLeft; } return [ scrOfX, scrOfY ]; } /* SWFObject v2.1 Copyright (c) 2007-2008 Geoff Stearns, Michael Williams, and Bobby van der Sluis This software is released under the MIT License */ var swfobject=function(){var b="undefined",Q="object",n="Shockwave Flash",p="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave-flash",m="SWFObjectExprInst",j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J,Z=null,M=null,l=null,e=false,A=false;var h=function(){var v=typeof K.getElementById!=b&&typeof K.getElementsByTagName!=b&&typeof K.createElement!=b,AC=[0,0,0],x=null;if(typeof T.plugins!=b&&typeof T.plugins[n]==Q){x=T.plugins[n].description;if(x&&!(typeof T.mimeTypes!=b&&T.mimeTypes[P]&&!T.mimeTypes[P].enabledPlugin)){x=x.replace(/^.*\s+(\S+\s+\S+$)/,"$1");AC[0]=parseInt(x.replace(/^(.*)\..*$/,"$1"),10);AC[1]=parseInt(x.replace(/^.*\.(.*)\s.*$/,"$1"),10);AC[2]=/r/.test(x)?parseInt(x.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof j.ActiveXObject!=b){var y=null,AB=false;try{y=new ActiveXObject(p+".7")}catch(t){try{y=new ActiveXObject(p+".6");AC=[6,0,21];y.AllowScriptAccess="always"}catch(t){if(AC[0]==6){AB=true}}if(!AB){try{y=new ActiveXObject(p)}catch(t){}}}if(!AB&&y){try{x=y.GetVariable("$version");if(x){x=x.split(" ")[1].split(",");AC=[parseInt(x[0],10),parseInt(x[1],10),parseInt(x[2],10)]}}catch(t){}}}}var AD=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),AA=/webkit/.test(AD)?parseFloat(AD.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,q=false,z=r?/win/.test(r):/win/.test(AD),w=r?/mac/.test(r):/mac/.test(AD);/*@cc_on q=true;@if(@_win32)z=true;@elif(@_mac)w=true;@end@*/return{w3cdom:v,pv:AC,webkit:AA,ie:q,win:z,mac:w}}();var L=function(){if(!h.w3cdom){return }f(H);if(h.ie&&h.win){try{K.write("