

var isIE = (navigator.appName.indexOf("Microsoft") != -1);
var isNav = (navigator.appName.indexOf("Netscape") != -1);
var isMacOS = (navigator.userAgent.indexOf("Mac") != -1);

var ie_version = getInternetExplorerVersion();


//this function is directly from microsoft: http://msdn.microsoft.com/en-us/library/ms537509%28VS.85%29.aspx
function getInternetExplorerVersion()
// Returns the version of Internet Explorer or a 100
// (indicating the use of another browser).
{ 
  var rv = 100; // Return value assumes failure.
  if (navigator.appName == 'Microsoft Internet Explorer')
  {
    var ua = navigator.userAgent;
    var re  = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
    if (re.exec(ua) != null)
      rv = parseFloat( RegExp.$1 );
  }
  return rv;
}



function urlEncode(url)
{ 
  var encodedURL = "";
  
  for(var i=0; i<url.length; ++i)
  { 
    //if it's not one of the acceptable character codes, encode it.
    var c = url.charCodeAt(i);
    if(!(( c >= 65 && c <= 90) || (c >= 97 && c <= 122) || (c >= 48 && c <= 57)))
      encodedURL += ("%" + decToHex(c, 16));
    else
      encodedURL += url.charAt(i);
  }
  
  return encodedURL;
}


var hexVals = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F");

function decToHex(num, radix)
{ 
  var hexString = "";
  while(num >= radix)
  { 
    temp = num % radix;
    num = Math.floor(num / radix);
    hexString = hexVals[temp] + hexString;
  }
  
  hexString = hexVals[num] + hexString;
  return hexString;
}






function changeClass(id, newClass) 
{ 
	var identity=document.getElementById(id);
	identity.className=newClass;
}



function setObjectAlpha(obj, alphaValue)
{ 
  if(isIE)
    obj.style.filter = "progid:DXImageTransform.Microsoft.Alpha(opacity=" + alphaValue + ")";
  else if(isNav)
    obj.style.MozOpacity = alphaValue + "%";
  
}

function setObjectAlpha_FC(obj, alphaValue)
{ 
  var theobj = getStyleObject_FC(obj);
  
  if(isIE)
    theobj.filter = "progid:DXImageTransform.Microsoft.Alpha(opacity=" + alphaValue + ")";
  else
  { 
    //alert("MozOpacity = " + alphaValue + "%");
    theobj.MozOpacity = (alphaValue/100);
  }
  
}

function setObjectAlpha_FC_xxx(obj, alphaValue)
{ 
  var styleobj = getStyleObject_FC(obj);
  //alert("setObjectAlpha_FC: " + typeof(styleobj) + ", styleobj: " + styleobj);
  
  if(isIE)
    styleobj.filter = "progid:DXImageTransform.Microsoft.Alpha(opacity=" + alphaValue + ")";
  else
  { 
    //alert("MozOpacity = " + alphaValue + "%");
    styleobj.MozOpacity = "" + (alphaValue/100);
  }
  
}

//retrieves the position of an element with respect to the page, not its immediate container.
function getRealTopPos(el) {
	iPos = 0
	while (el!=null) {
		iPos += el.offsetTop;
		el = el.offsetParent;
	}
	return iPos;

}

function getRealLeftPos(el) {
	iPos = 0
	while (el!=null) {
		iPos += el.offsetLeft;
		el = el.offsetParent;
	}
	return iPos;

}

function SE_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=SE_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}


function StrRight(str, n)
{ 
  if (n <= 0)
    return "";
  else if (n > String(str).length)
    return str;
  else 
  { 
    var iLen = String(str).length;
    return String(str).substring(iLen, iLen - n);
  }
  
}


function SE_toggleImageSimple(imgobj_or_name, sUrl1, sUrl2)
{ 
  //get the image object
  var imgobj = getObject_FC(imgobj_or_name);
  
  //now comparable image locations:
  //--------------------------------------------------
  var bImgObjSrcEqualUrl1 = true;
  if (StrRight(imgobj.src, sUrl1.length) != sUrl1)
    bImgObjSrcEqualUrl1 = false;
  
  if (bImgObjSrcEqualUrl1)
    imgobj.src = sUrl2;
  else
    imgobj.src = sUrl1;
  
}


function SE_toggleImage(sNewImgURL, evt, imgGroupName)
{ 
  if(sNewImgURL == null || sNewImgURL == "")
  {	
    //restore the previously toggled img...
    if(imgGroupName != null && imgGroupName != "" && document.toggleImages!=null && document.toggleImages[imgGroupName] != null)
      var imgElement = document.toggleImages[imgGroupName];
    else
      var imgElement = document.lastToogledImg;
    
    var imgsrctemp = imgElement.src;	
    imgElement.src = imgElement.oSrc; 
    imgElement.oSrc = imgsrctemp;
    
  }
  else
  {	
    if(isNav) var imgElement = evt.target;
    if(isIE)  var imgElement = window.event.srcElement;
		
		if(document.toggleImages==null) document.toggleImages = new Object();
		if(imgGroupName != null && imgGroupName != "") 
      document.toggleImages[imgGroupName] = imgElement;
    else
      document.lastToogledImg = imgElement;
    
    imgElement.oSrc = imgElement.src;
    imgElement.src = sNewImgURL;
  }	
}




var fadeTimerID = 0;
var fadeAlpha = 0;
function fadeInCallback(theitem)
{ 
  fadeAlpha+=10;
  setObjectAlpha_FC(theitem, fadeAlpha)
  
  if(fadeAlpha>=100)
  { clearTimeout(fadeTimerID);
    fadeTimerID=0;
  }
  else
  { 
    clearTimeout(fadeTimerID);
    fadeTimerID = setTimeout("fadeInCallback('" + theitem + "')", 50); 
  }
  
}

function fadeObjectIn_FC(theitem, speed)
{ 
  
  setObjectAlpha_FC(theitem, 1);
  setVisibility_FC(theitem, true);
  
  //stop any previous fades
  clearTimeout(fadeTimerID);
  fadeAlpha=0;
  fadeTimerID=0;
  fadeTimerID = setTimeout("fadeInCallback('" + theitem + "')", speed);
  
}





var fadeoutTimerID = 0;
var fadeoutAlpha = 100;
function fadeOutCallback(theitem)
{ 
  var obj = getObject_FC(theitem);
  obj.fadeoutAlpha -= obj.fadeoutStep;
  
  if (obj.fadeoutAlpha <= 0)
  { 
    clearInterval(obj.fadeoutTimerID);
    obj.fadeoutTimerID = 0;
    
    //set alpha to zero
    setObjectAlpha_FC(theitem, 0);
    
    //make it invisible now, because even though an object alpha is zero it is 
    //still on the screen receiving user input!
    setVisibility_FC(theitem, false);
    
  }
  else
    setObjectAlpha_FC(theitem, obj.fadeoutAlpha);
  
}

function fadeObjectOut_FC(theitem, speed, step)
{ 
  //stop any previous fades
  clearInterval(theitem.fadeoutTimerID);
  theitem.fadeoutTimerID = 0;
  theitem.fadeoutAlpha = 100;
  theitem.fadeoutStep = step;
  
  setObjectAlpha_FC(theitem.id, fadeoutAlpha);
  setVisibility_FC(theitem, true);
  theitem.fadeoutTimerID = setInterval("fadeOutCallback('" + theitem.id + "')", speed);
  
}












function popup(mylink, windowname)
{ 
  if (!window.focus)
    return true;
  
  var href;
  if (typeof(mylink) == 'string') href=mylink; else href=mylink.href;
  window.open(href, windowname, 'resizable=yes,width=400,height=300,scrollbars=yes');
  return false;
}


function popup2(mylink, windowname, w, h, other)
{ 
  if (!window.focus)return true;
  var href;
  if (typeof(mylink) == 'string') href=mylink; else href=mylink.href;
  window.open(href, windowname, 'resizable=yes,width='+w+',height='+h+',scrollbars=yes'+other);
  return false;
}

function popup3(mylink, windowname, w, h, scrollbar, nleft, ntop, other)
{ 
  if (!window.focus)return true;
  var href;
  if (typeof(mylink) == 'string') href=mylink; else href=mylink.href;
  window.open(href, windowname, 'resizable=yes,left='+nleft+',top='+ntop+',width='+w+',height='+h+',scrollbars='+scrollbar+other);
  return false;
}

function popup4(mylink, windowname, w, h, l, t, scrollbar)
{ 
  if (!window.focus)return true;
  var href;
  if (typeof(mylink) == 'string') href=mylink; else href=mylink.href;
  window.open(href, windowname, 'resizable=yes,width='+w+',height='+h+',scrollbars='+scrollbar+',left='+l+',top='+t);
  return false;
}










//change the opacity for different browsers
function changeOpac(opacity, id) 
{ 
  var object = document.getElementById(id).style;
  object.opacity = (opacity / 100);
  object.MozOpacity = (opacity / 100);
  object.KhtmlOpacity = (opacity / 100);
  object.filter = "alpha(opacity=" + opacity + ")";
} 


function opacity(id, opacStart, opacEnd, millisec) 
{ 
  //speed for each frame
  var speed = Math.round(millisec / 100);
  var timer = 0;
  
  //determine the direction for the blending, if start and end are the same nothing happens
  if (opacStart > opacEnd) 
  { 
    for (i = opacStart; i >= opacEnd; i--) 
    { 
      setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
      timer++;
    }
  } 
  else if (opacStart < opacEnd) 
  { 
    for (i = opacStart; i <= opacEnd; i++)
    { 
      setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
      timer++;
    }
  }
}


function getInsideWindowWidth()
{	
	if(isNav)
		return window.innerWidth;
	else
		return document.body.clientWidth;
}

function getInsideWindowHeight()
{	
	if(isNav)
		return window.innerHeight;
	else
		return document.body.clientHeight;
}

function getPageScrollTop(){
	if(isNav)
		return window.pageYOffset;
	else
		return window.document.body.scrollTop;
}

function getPageScrollLeft(){	
	if(isNav)
		return window.pageXOffset;
	else
		return window.document.body.scrollLeft;
}


function setObjectWidth(obj, w)
{
  if(isNav)
    obj.style.width = w + "px";
  else
    obj.style.pixelWidth = w;
}

function setObjectHeight(obj, h)
{ 
  if(isNav)
    obj.style.height = h + "px";
  else
    obj.style.pixelHeight = h;
}


function getObjectWidth(obj)
{
  if(isNav)
    return parseInt(obj.style.width);
  else
    return obj.style.pixelWidth;
}

function getObjectHeight(obj)
{ 
  if(isNav)
    return parseInt(obj.style.height);
  else
    return obj.style.pixelHeight;
}



function setPossition(obj, x, y)
{ 
  if(isNav)
	{ obj.style.left = x + "px";
  	obj.style.top = y + "px";	
	}
	else
	{ obj.style.pixelLeft = x;
  	obj.style.pixelTop = y;
	}
}



//--------------------------------------------------------------------------------------//
//  COMPATIBILITY FUNCTIONS 
//--------------------------------------------------------------------------------------//

function getObject_FC(obj)
{ 
  var theObj = null;
  
  if(typeof obj == "string")
  { 
  	if(isNav)
  	{ 
      theObj = eval("document." + obj);
      
      if(theObj == null)
        theObj = document.getElementById(obj);
    }
    else 
      theObj = document.getElementById(obj);
  }
  else
    theObj = obj;
  
  return theObj;
}

function getStyleObject_FC(obj)
{ 
  var theObj = null;
  
  if (typeof(obj) == "string")
    theObj = document.getElementById(obj);
  else
    theObj = obj;
  
  return theObj.style;
  
}


function appendLayerContent_FC(layername, newLayerContent)
{ 
  
  var layerObj = getObject_FC(layername);
  
  //TODO:  use wc3 standard functions for appending content! appendChild(aNode), createElement( aTagName ), createTextNode( aTextValue ) ... etc.
  if(isNav)
  { 
    layerObj.innerHTML = layerObj.innerHTML + "\n" + newLayerContent;
  }
  else
    layerObj.insertAdjacentHTML("BeforeEnd", newLayerContent);
  
}


function setBackgroundColor_FC(obj, newcolor)
{ 
  var theObj = getStyleObject_FC(obj);
  theObj.backgroundColor = newcolor;
  
}


function setZIndex_FC(obj, zOrder)
{ 
  var theobj = getStyleObject_FC(obj);
  theobj.zIndex = zOrder;
}


function setPossition_FC(obj, x, y)
{ 
  var theobj = getStyleObject_FC(obj);
  if(isNav)
  { 
    theobj.left = x + "px";
    theobj.top = y + "px";
  }
  else
  {
    theobj.pixelLeft = x;
    theobj.pixelTop = y;
  }
}


function setObjectTop_FC(obj, x)
{ 
  var theobj = getStyleObject_FC(obj);
  if(isNav)
    theobj.top = x + "px";
  else
    theobj.pixelTop = x;
  
}


function setObjectLeft_FC(obj, y)
{ 
  var theobj = getStyleObject_FC(obj);
  if(isNav)
    theobj.left = y + "px";
  else
    theobj.pixelLeft = y;
  
}

function setSize_FC(obj, w, h)
{ 
  var theobj = getStyleObject_FC(obj);
  if(isNav)
  { theobj.width = w + "px";
    theobj.height = h + "px";
  }
  else
  { theobj.pixelWidth = w;
    theobj.pixelHeight = h;
  }
}

function setObjectWidth_FC(obj, w)
{
  var theobj = getStyleObject_FC(obj);
  if(isNav)
    theobj.width = w + "px";
  else
    theobj.pixelWidth = w;
}

function setObjectHeight_FC(obj, h)
{ 
  var theobj = getStyleObject_FC(obj);
  if(isNav)
    theobj.height = h + "px";
  else
    theobj.pixelHeight = h;
  
}

function setVisibility_FC(obj_or_id, vis)
{ 
  var obj = obj_or_id;
  if (typeof(obj_or_id) == "string")
    obj = document.getElementById(obj_or_id);
  
  //var theobj = getStyleObject_FC(obj);
  //if(theobj == null) return;
  
  if (vis == true || vis == "true" || vis == "True")
    obj.style.visibility = "visible";
  else
    obj.style.visibility = "hidden";
}

function getVisibility_FC(obj)
{ 
  var theobj = getStyleObject_FC(obj);
  if(theobj == null) return false;
  if(theobj.visibility.toLowerCase() == "visible")
    return true;
  
  return false;
  
}

function toggleDisplay(obj_or_name)
{ 
  var obj = null;
  if(typeof obj_or_name == "string")
    obj = document.getElementById(obj_or_name);
  else
    obj = obj_or_name;
  
  if (obj.style.display=="block" || obj.style.display=="inline" || obj.style.display=="" || obj.style.display=="null")
    obj.style.display="none"; //inline | none | block
  else 
    obj.style.display="block";
  
  
}

function toggleDisplayReadMoreLess(obj_or_name, anchorElement)
{ 
  var obj = null;
  if(typeof obj_or_name == "string")
    obj = document.getElementById(obj_or_name);
  else
    obj = obj_or_name;
  
  var objAnchorElement = null;
  if(typeof anchorElement == "string")
    objAnchorElement = document.getElementById(anchorElement);
  else
    objAnchorElement = anchorElement;
  
  
  if (obj.style.display=="block" || obj.style.display=="inline" || obj.style.display=="" || obj.style.display=="null")
  { 
    obj.style.display="none"; //inline | none | block
    objAnchorElement.innerHTML = "[read more]";
  }
  else
  {
    obj.style.display="block";
    objAnchorElement.innerHTML = "[read less]";
  }
  
}

function getObjectTop_FC(obj)
{ 
  var theobj = getStyleObject_FC(obj);
  if(isNav)
    return parseInt(theobj.top);
  else
    return theobj.pixelTop;
}

function getObjectLeft_FC(obj)
{ 
  var theobj = getStyleObject_FC(obj);
  if(isNav)
    return parseInt(theobj.left);
  else
    return theobj.pixelLeft;
  
}


function getObjectWidth_FC(obj)
{ 
  var theobj = getStyleObject_FC(obj);
  if(isNav)
    return parseInt(theobj.width);
  else
    return theobj.pixelWidth;
	
}

function getObjectHeight_FC(obj)
{ 
  var theobj = getStyleObject_FC(obj);
  if(isNav)
    return parseInt(theobj.height);
  else
    return theobj.pixelHeight;
  
}

function setObjectClip_FC(obj, ileft, iright, itop, ibottom)
{ 
  var theobj = getStyleObject_FC(obj);
  theobj.clip = "rect(" + itop + " " + iright + " " + ibottom + " " + ileft + ")";
  
}


function createLayer_FC(name, left, top, visible, content) 
{ 
  return  '<div id="' + name + '" style="position:absolute; overflow:none; left:' + left + 'px; top:' + top + 'px; visibility:' + (visible ? 'visible;' : 'hidden;') +  '">' +
                  '\n' + content + '\n</div>';
  
}







function f_clientWidth() {
	return f_filterResults (
		window.innerWidth ? window.innerWidth : 0,
		document.documentElement ? document.documentElement.clientWidth : 0,
		document.body ? document.body.clientWidth : 0
	);
}
function f_clientHeight() {
	return f_filterResults (
		window.innerHeight ? window.innerHeight : 0,
		document.documentElement ? document.documentElement.clientHeight : 0,
		document.body ? document.body.clientHeight : 0
	);
}
function f_scrollLeft() {
	return f_filterResults (
		window.pageXOffset ? window.pageXOffset : 0,
		document.documentElement ? document.documentElement.scrollLeft : 0,
		document.body ? document.body.scrollLeft : 0
	);
}
function f_scrollTop() {
	return f_filterResults (
		window.pageYOffset ? window.pageYOffset : 0,
		document.documentElement ? document.documentElement.scrollTop : 0,
		document.body ? document.body.scrollTop : 0
	);
}
function f_filterResults(n_win, n_docel, n_body) {
	var n_result = n_win ? n_win : 0;
	if (n_docel && (!n_result || (n_result > n_docel)))
		n_result = n_docel;
	return n_body && (!n_result || (n_result > n_body)) ? n_body : n_result;
}



//--------------------------------------------------------------------------------------//
// END OF COMPATIBILITY FUNCTIONS
//--------------------------------------------------------------------------------------//




//////////////// MACROMEDIA //////////////
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}


function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}











//--------------------------------------------------------------------------------------//
// AJAX COMMUNICATION
//--------------------------------------------------------------------------------------//
function CreateAjaxRequest() {
	//activeX versions to check for in IE
	var activexmodes = ["Msxml2.XMLHTTP", "Microsoft.XMLHTTP"];

	//Test for support for ActiveXObject in IE first (as XMLHttpRequest in IE7 is broken)
	if (window.ActiveXObject) {
		for (var i = 0; i < activexmodes.length; i++) {
			try {
				return new ActiveXObject(activexmodes[i])
			}
			catch (e) {
				//suppress error
			}
		}
	}
	else if (window.XMLHttpRequest) // if Mozilla, Safari etc
	{
		return new XMLHttpRequest()
	}
	else {
		return false
	}
}
//--------------------------------------------------------------------------------------//
// END AJAX COMMUNICATION
//--------------------------------------------------------------------------------------//




//--------------------------------------------------------------------------------------//
// AUTOMATIC SEAT AVAILABILITY CHECK
//--------------------------------------------------------------------------------------//
var checkSeatAvailabilityTimerId = 0;

function startTrackingSeats() 
{	
	checkSeatAvailabilityTimerId = setTimeout("CheckSeatAvailability(se_cas_user_id)", 120000) //180,000 = 3 minutes
}

function stopTrackingSeats() 
{	
	clearTimeout(checkSeatAvailabilityTimerId);
}

function CheckSeatAvailability(userid) 
{	
	
	var myajaxrequest = CreateAjaxRequest();
	myajaxrequest.onreadystatechange = function() 
	{	
		if (myajaxrequest.readyState == 4) 
		{	
			if (myajaxrequest.status == 200 || window.location.href.indexOf("http") == -1) 
			{	
				//alert(myajaxrequest.responseText);
				if (myajaxrequest.responseText == "ok") 
				{	
					stopTrackingSeats();
					openFrameBox("Information", "There are available seats now on your account. Would you like to try to sign in? <div style='margin-top: 3em; text-align: center;'><div class='FrameBoxButton' onClick='TryToSignIn();'>Try to sign in</div> &nbsp;&nbsp; <div class='FrameBoxButton' onClick='closeFrameBox();'>Close</div></div>", false);
				}
				else 
				{	
					startTrackingSeats();
					//openFrameBox("Information", "Seats are stil occupied!")
				}
			}
			else 
			{	
				///never write to document, it clears it completely
				/////document.writeln("An error has occured making the request<br/>");
			}
		}
	}
	
	myajaxrequest.open("GET", "/account/CheckAvailableSeats.ashx?userid=" + userid, true)
	myajaxrequest.send(null);
}

function TryToSignIn()
{	
	window.location.href = "/login.aspx?dest=" + urlEncode(window.location.href);
}

//--------------------------------------------------------------------------------------//
// END AUTOMATIC SEAT AVAILABILITY CHECK
//--------------------------------------------------------------------------------------//



//--------------------------------------------------------------------------------------//
// FRAME BOX
//--------------------------------------------------------------------------------------//
var SEFrameBoxInitialized = false;

function SE_InitFrameBox() 
{
	if (!SEFrameBoxInitialized) 
	{
		document.writeln('<div id="divFrameBox">');
		document.writeln('  <div id="divFrameBoxPanel">');
		document.writeln('		<div id="divFrameBoxPanelClose" onClick="closeFrameBox();">Close</div>');
		document.writeln('		<div id="divFrameBoxPanelHeader">Information</div>');
		document.writeln('		<div id="divFrameBoxPanelMain"></div>');
		document.writeln('  </div>');
		document.writeln('</div>');
		SEFrameBoxInitialized = true;
	}
}

function openFrameBox(title, text, showCloseButton) 
{	
	SE_InitFrameBox()
	var divFrameWin = document.getElementById("divFrameBox");
	var divFrameWindowHead = document.getElementById("divFrameBoxPanelHeader");
	var divFrameWindowMain = document.getElementById("divFrameBoxPanelMain");
	
	divFrameWindowMain.innerHTML = '<div style="padding:10px;">' + text + '</div>';
	divFrameWindowHead.innerHTML = title;
	
	//divFrameWin.style.visibility = "visible";
	divFrameWin.style.display = "block";
	
	if (typeof showCloseButton != "undefined" && !showCloseButton)
		document.getElementById("divFrameBoxPanelClose").style.visibility = "hidden";
	else
		document.getElementById("divFrameBoxPanelClose").style.visibility = "visible";
	
}

function closeFrameBox()
{	
	var divFrameWin = document.getElementById("divFrameBox");
	//divFrameWin.style.visibility = "hidden";
	divFrameWin.style.display = "none";
}
//--------------------------------------------------------------------------------------//
// END FRAME BOX
//--------------------------------------------------------------------------------------//


