var accountid_33 = "33";var groupid_33 = "";var chartid_33 = "";var accountName_33 = "AAArena_Waterfront";var custom_33 = "False";var v_33 = "1_b4";var baseURL = "http://www.myvenueviews.com/";var sVer_33 = "9.0.28";var linkID_33 = "vv_link_33";var inlineID_33 = "vv_inline_33";
// Instance variables
var bolVVIntefaceBuilt_33 = false;
var bolVVIntefaceLoaded_33 = false;
function addLoadEvent_33(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
} else {
window.onload = function() {
if (oldonload) {
oldonload();
}
func();
}
}
}
addLoadEvent_33 (function () {
_initVVInterface_33();
});
// _initVVInterface();
function _initVVInterface_33(){
// load styles
var style = document.createElement("link");
var sFile = 'styles/venueviews.css';
if(custom_33 != "False") sFile = 'styles/venueviews_'+accountName_33 + '.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_33'))){
// set onclick event for link + remove href and target
var link = document.getElementById(linkID_33);
link.setAttribute('onclick', '_openVVInterface_33(true);return false;');
link.setAttribute('href', 'javascript:_openVVInterface_33(true);');
link.removeAttribute('target');
}
if(null != document.getElementById(inlineID_33)){
//alert('Inline version requested');
_buildInlneInterface_33();
}
}
function _buildInlneInterface_33(){
var sDivId = "vv_inlineflash_holder_"+accountid_33;
// build interface elements
var holder = document.getElementById(inlineID_33);
var content = holder.appendChild(document.createElement("div"));
content.id = "vv_content_"+accountid_33;
content.className = "vv_content";
var flash_holder = content.appendChild(document.createElement("div"));
flash_holder.id = sDivId;
flash_holder.className = "vv_inlineflash_holder";
callSwfObject_33(sDivId);
}
function _buildOverlayInterface_33(onload){
// alert(onload);
// build interface elements
var holder = document.getElementsByTagName("body")[0].appendChild(document.createElement("div"));
holder.id = "vv_holder_"+accountid_33;
holder.style.display = "none";
holder.className = "vv_holder";
var overlay = holder.appendChild(document.createElement("a"));
overlay.id = "vv_overlay_"+accountid_33;
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_33;
content.className = "vv_content";
var flash_holder = content.appendChild(document.createElement("div"));
flash_holder.id = "vv_flash_holder_"+accountid_33;
flash_holder.className = "vv_flash_holder";
var closeBtn = content.appendChild(document.createElement("a"));
closeBtn.id = "vv_closebtn_"+accountid_33;
closeBtn.className = "vv_closebtn";
closeBtn.setAttribute('title', 'Close');
closeBtn.setAttribute('onclick', '_openVVInterface_33(false);return false;');
closeBtn.setAttribute('href', 'javascript:_openVVInterface_33(false);');
closeBtn.innerHTML = 'Close';
bolVVIntefaceBuilt_33 = true;
if (!onload) {
var aOffest = getScrollXY();
holder.style.top = String(aOffest[1])+'px';
holder.style.display = 'block';
_loadVVInterface_33();
}
}
// v will determine which flash swf to load
function _loadVVInterface_33(){
window.onresize = _realignVVInterface_33;
window.onscroll = _realignVVInterface_33;
_loadVVFlash_33();
}
function _loadVVFlash_33(){
var sDivId = "vv_flash_"+accountid_33;
var flash_holder_target = "vv_flash_holder_"+eval('accountid_33');
var flash_holder = document.getElementById(flash_holder_target);
var flash = flash_holder.appendChild(document.createElement("div"));
flash.id = sDivId;
flash.className = "vv_flash";
callSwfObject_33(sDivId);
}
function callSwfObject_33(div){
var sFlashURL = baseURL+'flash/venueviews_v'+v_33+'.swf';
var att = {data:sFlashURL, width:"100%", height:"100%"}
var configFile = 'flash/config/config_public.xml';
if(custom_33 != "False") configFile = 'flash/config/config_'+accountName_33 + '.xml';
// NOTE: hard coded the position of loader since size
var flashvars = {
accountid: accountid_33,
groupid: groupid_33,
chartid: chartid_33,
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_33)){
swfobject.createSWF(att, params, div);
bolVVIntefaceLoaded_33 = true;
};
}
function buildVarString(o){
var s = '';
for(var prp in o){
s += prp+"="+o[prp]+"&";
};
return s;
};
function _removeVVFlash_33(){
//alert('_removeVVFlash(accountid:'+accountid_33+', chartid:'+chartid+', v:'+v+')');
swfobject.removeSWF("vv_flash_"+accountid_33);
bolVVIntefaceLoaded_33 = false;
}
function _openVVInterface_33(bol){
// alert(bol);
if (bol) {
if (!bolVVIntefaceBuilt_33) {
_buildOverlayInterface_33(false);
} else {
var aOffest = getScrollXY();
//var scrollY = (window.pageYOffset)? window.pageYOffset : document.documentElement.scrollTop;
var holder = document.getElementById('vv_holder_'+accountid_33);
holder.style.top = String(aOffest[1])+'px';//window.pageYOffset
holder.style.display = 'block';
_realignVVInterface_33();
if (!bolVVIntefaceLoaded_33) {
_loadVVInterface_33();
} else {
_realignVVInterface_33();
}
}
} else {
document.getElementById('vv_holder_'+accountid_33).style.display = 'none';
_removeVVFlash_33();
}
}
function _realignVVInterface_33() {
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("