// JavaScript Document1

function chgImg(id,newImg) {
	document.getElementById(id).src = newImg;
}

function chgSubnav(id,color) {
	document.getElementById(id).style.backgroundColor = color;
}

function chgContent(targetID,newID) {
	document.getElementById(targetID).innerHTML=document.getElementById(newID).innerHTML;
}

function thisYear() {
	thisYear = new Date();
	currYear = thisYear.getFullYear();
	document.write(currYear);
}

function popup(URL,w,h,sb) {
        day = new Date();
        id = day.getTime();
        eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=no,scrollbars=' + sb + ',location=no,statusbar=no,menubar=yes,resizable=yes,width=' + w + ',height=' + h + '');");
}

function popupchat(URL, w, h, sb) {
    day = new Date();
    id = day.getTime();
    eval("chatroom = window.open(URL, 'chatroom', 'toolbar=no,scrollbars=' + sb + ',location=no,statusbar=no,menubar=yes,resizable=yes,width=' + w + ',height=' + h + '');");
    chatroom.focus();
}

function ShowContent(id) {
    if (document.getElementById) {
        obj = document.getElementById(id);
        if (obj.style.display == "none") {
            obj.style.display = "";
        } else {
            obj.style.display = "none";
        }
    }

}

function ShowTeam(id,event) {
    if (document.getElementById) {
        obj = document.getElementById(id);
        if (obj.style.display == "none") {
            obj.style.display = "";
            setCookie("team" + event, "on", 1);
        } else {
            obj.style.display = "none";
            setCookie("team" + event, "off", 1);
        }
    }
}

function ShowChat(id) {
    if (document.getElementById) {
        obj = document.getElementById('showchat');
        if (obj.style.display == "none") {
            obj.style.display = "";
        } else {
            obj.style.display = "none";
        }
        ShowContent(id);
    }
}

function ShowRoom() {
    if (document.getElementById) {
        obj = document.getElementById('flashchat');
        obj2 = document.getElementById('roomtab');
        obj3 = document.getElementById('chatbox');
        if (obj.style.width == "254px") {
            obj.style.width = "495px";
            obj2.src = "img/tab_hide_users.png";
        } else {
            obj3.style.display = "none";
            obj.style.width = "254px";
            setTimeout("obj3.style.display = ''", 1);
            obj2.src = "img/tab_show_users.png";
        }
    }
}


// Generic Lightbox

var screenW, screenH;

function openLB(src) {
	var newLoc = src;
	new Ajax.Updater('productTourContainer', newLoc, { 
		method: 'get',
		onComplete: function() {
			screenW = document.body.scrollWidth;
			document.getElementById('productTour').style.left = (screenW-980)/2+"px";
			document.getElementById('productTour').style.top = "30px";
			document.getElementById('overlayB').style.display = "block";
			document.getElementById('productTour').style.display = "block";
		}
	});
}

function closeLB() {
	document.getElementById('overlayB').style.display = "none";
	document.getElementById('productTour').style.display = "none";
	document.getElementById('vmediaplayer').stop();
}

function openLB2(src) {
	var newLoc = src;
	new Ajax.Updater('productTourContainer2', newLoc, { 
		method: 'get',
		onComplete: function() {
			screenW = document.body.scrollWidth;
			document.getElementById('productTour2').style.left = (screenW-340)/2+"px";
			document.getElementById('productTour2').style.top = "30px";
			document.getElementById('overlayB2').style.display = "block";
			document.getElementById('productTour2').style.display = "block";
		}
	});
}

function closeLB2() {
	document.getElementById('overlayB2').style.display = "none";
	document.getElementById('productTour2').style.display = "none";
}


function buildplayerwcbig2(show) {
    document.write('<OBJECT ID="vmediaplayer" width="960" height="540" '); 
    document.write('classid  ="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"');
    document.write('codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"');
    document.write('standby="Loading Video..." type="application/x-oleobject">');
    document.write('<param name="fileName" value="' + show + '">');
    document.write('<param name="animationatStart" value="1">');
    document.write('<param name="transparentatStart" value="1">');
    document.write('<param name="EnableContextMenu" value="false">');
    document.write('<param name="autoStart" value="1" >');
    document.write('<param name="autosize" value="1" >');
    document.write('<param name="showControls" value="0" >');
    document.write('<param name="UImode" value="mini"  />');
    document.write('<param name="loop" value="0" >');
    document.write('<param name="clickToPlay" value="1" >');
    document.write('<EMBED type="application/x-mplayer2"');
    document.write('pluginspage="http://microsoft.com/windows/mediaplayer/en/download/"');
    document.write('id="vmediaplayer" ');
    document.write('name="vmediaplayer" ');
    document.write('displaysize="1" ');
    document.write('EnableContextMenu="false" ');
    document.write('uimode="mini"');
    document.write('autosize="1" ');
    document.write('bgcolor="darkblue" ');
    document.write('showcontrols="0"   ');  
    document.write('showtracker="0" ');
    document.write('showdisplay="0" ');
    document.write('showstatusbar="0" ');
    document.write('videoborder3d="0" ');
    document.write('width="960" ');
    document.write('height="540"');
    document.write('src="' + show + '"'); 
    document.write('autostart="1" ');
    document.write('designtimesp="5311" ');
    document.write('loop="0">');
    document.write('</EMBED>');
    document.write('</OBJECT>');
}
function buildplayerODS09(show) {
    document.write('<OBJECT ID="vmediaplayer" width="960" height="585" '); 
    document.write('classid  ="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"');
    document.write('codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"');
    document.write('standby="Loading Video..." type="application/x-oleobject">');
    document.write('<param name="fileName" value="' + show + '">');
	document.write('<param name="EnableContextMenu" value="false">');
    document.write('<param name="animationatStart" value="true">');
    document.write('<param name="transparentatStart" value="false">');
    document.write('<param name="autoStart" value="true" >');
    document.write('<param name="autosize" value="true" >');
    document.write('<param name="showControls" value="true" >');
    document.write('<param name="UImode" value="mini"  />');
    document.write('<param name="loop" value="false" >');
    document.write('<param name="clickToPlay" value="true" >');
    document.write('<EMBED type="application/x-mplayer2"');
    document.write('pluginspage="http://microsoft.com/windows/mediaplayer/en/download/"');
    document.write('id="vmediaplayer" ');
    document.write('name="vmediaplayer" ');
    document.write('displaysize="1" ');
	document.write('EnableContextMenu="false" ');
    document.write('uimode="mini"');
    document.write('autosize="true" ');
    document.write('bgcolor="darkblue" ');
    document.write('showcontrols="true"   ');  
    document.write('showtracker="true" ');
    document.write('showdisplay="0" ');
    document.write('showstatusbar="true" ');
    document.write('videoborder3d="false" ');
    document.write('width="960" ');
    document.write('height="585"');
    document.write('src="' + show + '"'); 
    document.write('autostart="true" ');
    document.write('designtimesp="5311" ');
    document.write('loop="false">');
    document.write('</EMBED>');
    document.write('</OBJECT>');
}
function buildplayerODS10(show) {
    document.write('<OBJECT ID="vmediaplayer" width="960" height="650" '); 
    document.write('classid  ="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"');
    document.write('codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"');
    document.write('standby="Loading Video..." type="application/x-oleobject">');
    document.write('<param name="fileName" value="' + show + '">');
	document.write('<param name="EnableContextMenu" value="false">');
    document.write('<param name="animationatStart" value="true">');
    document.write('<param name="transparentatStart" value="false">');
    document.write('<param name="autoStart" value="true" >');
    document.write('<param name="autosize" value="true" >');
    document.write('<param name="showControls" value="true" >');
    document.write('<param name="UImode" value="mini"  />');
    document.write('<param name="loop" value="false" >');
    document.write('<param name="clickToPlay" value="true" >');
    document.write('<EMBED type="application/x-mplayer2"');
    document.write('pluginspage="http://microsoft.com/windows/mediaplayer/en/download/"');
    document.write('id="vmediaplayer" ');
    document.write('name="vmediaplayer" ');
    document.write('displaysize="1" ');
	document.write('EnableContextMenu="false" ');
    document.write('uimode="mini"');
    document.write('autosize="true" ');
    document.write('bgcolor="darkblue" ');
    document.write('showcontrols="true"   ');  
    document.write('showtracker="true" ');
    document.write('showdisplay="0" ');
    document.write('showstatusbar="true" ');
    document.write('videoborder3d="false" ');
    document.write('width="960" ');
    document.write('height="650"');
    document.write('src="' + show + '"'); 
    document.write('autostart="true" ');
    document.write('designtimesp="5311" ');
    document.write('loop="false">');
    document.write('</EMBED>');
    document.write('</OBJECT>');
}

function buildplayerSLOD(show) {
			document.write('<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="960" height="580" id="slp">');
			document.write('<param name="source" value="ClientBin/OVP.xap" />');
            document.write('<param name="minRuntimeVersion" value="4.0.50401.0" />');
            document.write('<param name="background" value="white" />');
			document.write('<param name="initparams" value="showstatistics=false, autoplay=true, muted=false, playlistoverlay=false, loglevel=Debug, theme=sl4themes/SmoothHD.xaml,smfPlugins=ClientBin/BasicMediaPlugin.xap ClientBin/OverlayLogWriter.xap, stretchmode=Fit, stretchmodefullscreen=Fit,mediasource=' + show + '" />');
			document.write('<a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;">');
			document.write('<img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none" /></a>');
			document.write('</object>');


}
function buildplayerSLOD2(show) {
    document.write('<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="960" height="580" id="slp">');
    document.write('<param name="source" value="ClientBin/OVP.xap" />');
    document.write('<param name="minRuntimeVersion" value="4.0.50401.0" />');
    document.write('<param name="background" value="white" />');
    document.write('<param name="windowless" value="true"/>');
    document.write('<param name="initparams" value="showstatistics=false, autoplay=true, muted=false, playlistoverlay=false, loglevel=Debug, theme=sl4themes/SmoothHD.xaml,smfPlugins=ClientBin/BasicMediaPlugin.xap ClientBin/OverlayLogWriter.xap, stretchmode=Fit, stretchmodefullscreen=Fit,mediasource=' + show + '" />');
    document.write('<a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;">');
    document.write('<img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none" /></a>');
    document.write('</object>');

}

function buildplayerSLOD3(show) {
    document.write('<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="770" height="472" id="slp">');
    document.write('<param name="source" value="ClientBin/OVP.xap" />');
    document.write('<param name="minRuntimeVersion" value="4.0.50401.0" />');
    document.write('<param name="background" value="white" />');
    document.write('<param name="windowless" value="true"/>');
    document.write('<param name="initparams" value="showstatistics=false, autoplay=true, muted=false, playlistoverlay=false, loglevel=Debug, theme=sl4themes/SmoothHD.xaml,smfPlugins=ClientBin/BasicMediaPlugin.xap ClientBin/OverlayLogWriter.xap, stretchmode=Fit, stretchmodefullscreen=Fit,mediasource=' + show + '" />');
    document.write('<a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;">');
    document.write('<img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none" /></a>');
    document.write('</object>');

}


function buildplayerSLPL(show) {
    document.write('<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="960" height="580" id="slp">');
    document.write('<param name="source" value="ClientBin/OVP.xap" />');
    document.write('<param name="minRuntimeVersion" value="4.0.50401.0" />');
    document.write('<param name="background" value="white" />');
    document.write('<param name="windowless" value="true"/>');
    document.write('<param name="initparams" value="showstatistics=false, autoplay=true, muted=false, playlistoverlay=true, loglevel=all, theme=sl4themes/SmoothHD.xaml,smfPlugins=ClientBin/BasicMediaPlugin.xap ClientBin/OverlayLogWriter.xap, stretchmode=Fit, stretchmodefullscreen=Fit,playlistsource=' + show + '" />');
    document.write('<a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;">');
    document.write('<img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none" /></a>');
    document.write('</object>');

}

function buildplayerSLHelp(show) {
    document.write('<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="650" height="400" id="slp">');
    document.write('<param name="source" value="/vconference/ClientBin/OVP.xap" />');
    document.write('<param name="minRuntimeVersion" value="4.0.50401.0" />');
    document.write('<param name="initparams" value="showstatistics=true, autoplay=false, muted=true, playlistoverlay=false, loglevel=All, theme=/vconference/sl4themes/SmoothHD.xaml,smfPlugins=/vconference/ClientBin/BasicMediaPlugin.xap /vconference/ClientBin/OverlayLogWriter.xap, stretchmode=Fit, stretchmodefullscreen=Fit,mediasource=' + show + '" />');
    document.write('<a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;">');
    document.write('<img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none" /></a>');
    document.write('</object>');
}

function buildplayerSLDash(show) {
    document.write('<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="200" height="123" id="slp">');
    document.write('<param name="source" value="/vconference/ClientBin/OVP.xap" />');
    document.write('<param name="minRuntimeVersion" value="4.0.50401.0" />');
    document.write('<param name="windowless" value="true"/>');
    document.write('<param name="initparams" value="showstatistics=true, autoplay=false, muted=true, playlistoverlay=false, loglevel=All, theme=/vconference/sl4themes/SmoothHD.xaml,smfPlugins=/vconference/ClientBin/BasicMediaPlugin.xap /vconference/ClientBin/OverlayLogWriter.xap, stretchmode=Fit, stretchmodefullscreen=Fit,mediasource=' + show + '" />');
    document.write('<a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;">');
    document.write('<img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none" /></a>');
    document.write('</object>');
}

function buildplayerSL(show) {
    document.write('<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="960" height="580" id="slp">');
    document.write('<param name="source" value="/vconference/ClientBin/OVP.xap" />');
    document.write('<param name="minRuntimeVersion" value="4.0.50401.0" />');
    document.write('<param name="background" value="white" />');
    document.write('<param name="windowless" value="true"/>');
    document.write('<param name="initparams" value="showstatistics=false, autoplay=true, muted=false, playlistoverlay=true, loglevel=all, theme=/vconference/sl4themes/SmoothHD.xaml,smfPlugins=/vconference/ClientBin/BasicMediaPlugin.xap /vconference/ClientBin/OverlayLogWriter.xap, stretchmode=Fit, stretchmodefullscreen=Fit,playlistsource=' + show + '" />');
    document.write('<a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;">');
    document.write('<img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none" /></a>');
    document.write('</object>');
}
//VCONF1 //
var stream7 = "http://a1369.l4603045368.c46030.n.lm.akamaistream.net/D/1369/46030/v0001/reflector:45368"

// vconf11 //
var stream1 = "http://a1481.l4603035480.c46030.n.lm.akamaistream.net/D/1481/46030/v0001/reflector:35480"

// VCONF2-6 //
var stream2 = "http://a57.l4603020056.c46030.n.lm.akamaistream.net/D/57/46030/v0001/reflector:20056"
var stream3 = "http://a1957.l4603021956.c46030.n.lm.akamaistream.net/D/1957/46030/v0001/reflector:21956"
var stream4 = "http://a1520.l4603021519.c46030.n.lm.akamaistream.net/D/1520/46030/v0001/reflector:21519"
var stream5 = "http://a428.l4603020427.c46030.n.lm.akamaistream.net/D/428/46030/v0001/reflector:20427"
var stream6 = "http://a46.l4603034045.c46030.n.lm.akamaistream.net/D/46/46030/v0001/reflector:34045"

//vconf 7-10 //
var stream8 = "http://a223.l4603052222.c46030.n.lm.akamaistream.net/D/223/46030/v0001/reflector:52222"
var stream9 = "http://a1419.l4603055418.c46030.n.lm.akamaistream.net/D/1419/46030/v0001/reflector:55418"
var stream10 = "http://a73.l4603020072.c46030.n.lm.akamaistream.net/D/73/46030/v0001/reflector:20072"
var stream11 = "http://a1891.l4603059890.c46030.n.lm.akamaistream.net/D/1891/46030/v0001/reflector:59890"

// VCONF 12 //
var stream12 = "http://a73.l4603024072.c46030.n.lm.akamaistream.net/D/73/46030/v0001/reflector:24072"

var odmms = "http://a1100.v46030f.c46030.g.vm.akamaistream.net/7/1100/46030/v0001/smb2.download.akamai.com/46030/"

var BrowserDetect = {
	init: function () {
		this.browser = this.searchString(this.dataBrowser) || "An unknown browser";
		this.version = this.searchVersion(navigator.userAgent)
			|| this.searchVersion(navigator.appVersion)
			|| "an unknown version";
		this.OS = this.searchString(this.dataOS) || "an unknown OS";
	},
	searchString: function (data) {
		for (var i=0;i<data.length;i++)	{
			var dataString = data[i].string;
			var dataProp = data[i].prop;
			this.versionSearchString = data[i].versionSearch || data[i].identity;
			if (dataString) {
				if (dataString.indexOf(data[i].subString) != -1)
					return data[i].identity;
			}
			else if (dataProp)
				return data[i].identity;
		}
	},
	searchVersion: function (dataString) {
		var index = dataString.indexOf(this.versionSearchString);
		if (index == -1) return;
		return parseFloat(dataString.substring(index+this.versionSearchString.length+1));
	},
	dataBrowser: [
		{
			string: navigator.userAgent,
			subString: "Chrome",
			identity: "Chrome"
		},
		{ 	string: navigator.userAgent,
			subString: "OmniWeb",
			versionSearch: "OmniWeb/",
			identity: "OmniWeb"
		},
		{
			string: navigator.vendor,
			subString: "Apple",
			identity: "Safari",
			versionSearch: "Version"
		},
		{
			prop: window.opera,
			identity: "Opera"
		},
		{
			string: navigator.vendor,
			subString: "iCab",
			identity: "iCab"
		},
		{
			string: navigator.vendor,
			subString: "KDE",
			identity: "Konqueror"
		},
		{
			string: navigator.userAgent,
			subString: "Firefox",
			identity: "Firefox"
		},
		{
			string: navigator.vendor,
			subString: "Camino",
			identity: "Camino"
		},
		{		// for newer Netscapes (6+)
			string: navigator.userAgent,
			subString: "Netscape",
			identity: "Netscape"
		},
		{
			string: navigator.userAgent,
			subString: "MSIE",
			identity: "Explorer",
			versionSearch: "MSIE"
		},
		{
			string: navigator.userAgent,
			subString: "Gecko",
			identity: "Mozilla",
			versionSearch: "rv"
		},
		{ 		// for older Netscapes (4-)
			string: navigator.userAgent,
			subString: "Mozilla",
			identity: "Netscape",
			versionSearch: "Mozilla"
		}
	],
	dataOS : [
		{
			string: navigator.platform,
			subString: "Win",
			identity: "Windows"
		},
		{
			string: navigator.platform,
			subString: "Mac",
			identity: "Mac"
		},
		{
			   string: navigator.userAgent,
			   subString: "iPhone",
			   identity: "iPhone/iPod"
	    },
		{
			string: navigator.platform,
			subString: "Linux",
			identity: "Linux"
		}
	]

};
function setCookie(c_name, value, exdays) {
    var exdate = new Date();
    exdate.setDate(exdate.getDate() + exdays);
    var c_value = escape(value) + ((exdays == null) ? "" : "; expires=" + exdate.toUTCString());
    document.cookie = c_name + "=" + c_value;
}
function get_cookie(cookie_name) {
    var results = document.cookie.match('(^|;) ?' + cookie_name + '=([^;]*)(;|$)');
    if (results)
        return (unescape(results[2]));
    else
        return null;
}


function closeLBHelp(dontclose) {
    if (dontclose == undefined) {
        closePageHelp();
    }
    document.getElementById('overlayBHelp').style.display = "none";
    document.getElementById('divMiniButtons').style.position = "";
    document.getElementById('divMiniButtons').style.width = "110px";    
    document.getElementById('divMiniButtons').style.right = "";
    document.getElementById('divMiniButtons').style.top = "";
    document.getElementById('divMiniButtonsBlank').style.width = "0px";
    document.getElementById('imgShare').style.margin = "0px 0px 0px 8px";
    document.getElementById('divTeam1').style.margin = "0px 12px 0px 0px";    
    
    var temp = "";
    for (var i = 0; i <= 10; i++) {
        temp = "HelpDiv" + i;
        try {
            document.getElementById('HelpDiv' + i).style.display = "none";
        }
        catch (err) {

        }
    }
}

function openLBHelp() {
    try {
        //alert(document.getElementById('divIE7fix').style.zIndex);
        document.getElementById('divIE7fix').style.zIndex = 1;
    }
    catch (err) { }



    try {                  
            closePageHelp();
        }
    catch (err) { }
    document.getElementById('divtopbar').style.zIndex = 10000;
    try {
        document.getElementById('divFav1').style.zIndex = 9998;
        }
        catch(err) { } 

    document.getElementById('overlayBHelp').style.display = "";
    document.getElementById('divMiniButtons').style.width = "35px";
    document.getElementById('divMiniButtonsBlank').style.width = "110px";
    document.getElementById('divMiniButtons').style.position = "absolute";
    document.getElementById('divMiniButtons').style.right = "100px";
    document.getElementById('divMiniButtons').style.top = "300px";
    document.getElementById('imgShare').style.margin = "0px 0px 0px 0px";
    document.getElementById('divTeam1').style.margin = "0px 5px 0px 0px";

    var temp = "";
    for (var i = 0; i <= 10; i++) {
        temp = "HelpDiv" + i;
        try {
            document.getElementById('HelpDiv' + i).style.display = "block";
        }
        catch(err)
        { }            
    }
}


function closePageHelp() {
    try {
        document.getElementById('divFav1').style.top = "10px";
        document.getElementById('divFav1').style.right = "25px";
        document.getElementById('divFav1').style.width = "";
        document.getElementById('divFav1').style.zIndex = 9998;
    }
    catch (err) { }

    try {
        document.getElementById('ctl00_ContentPlaceHolder1_divFavoriteCover1').style.zIndex = 9998;
    }
    catch (err) { }

    try {
        document.getElementById('divChatHelp').style.zIndex = 9998;
        document.getElementById('divChatHelp1').style.zIndex = 9998;

        document.getElementById('divButtonNavChatHelp').style.zIndex = 9998;
                
        var timer = $find('ctl00_ContentPlaceHolder1_timer1');
        timer.set_enabled(true);
        timer._startTimer();
    }
    catch (err) { }    

    var temp = "";
    for (var i = 0; i <= 20; i++) {
        temp = "HelpDivSub" + i;
        try {
            document.getElementById('HelpDivSub' + i).style.display = "none";
        }
        catch (err) {}
    }
}


function openPageHelp() {
    try {
        var FoundIE7 = CheckForIE7();
        if (FoundIE7) {
            document.getElementById('divIE7fix').style.zIndex = 9999;
        }
    }
    catch (err) { }

    try {
        closeLBHelp('true');
    }
    catch (err) { }
    document.getElementById('overlayBHelp').style.display = "";

    try {
        document.getElementById('divtopbar').style.zIndex = 9998;
    }
    catch (err) { }

    try {
        document.getElementById('ctl00_ContentPlaceHolder1_divFavoriteCover1').style.zIndex = 9999;
    }
    catch (err) { }

    try {
        document.getElementById('divChatHelp').style.zIndex = 9999;
        document.getElementById('divChatHelp1').style.zIndex = 9999;

        document.getElementById('divButtonNavChatHelp').style.zIndex = 9999;
    }
    catch (err) { }


    try {
        var timer = $find('ctl00_ContentPlaceHolder1_timer1');
        timer.set_enabled(false);
        timer._stopTimer();
    }
    catch (err) { }
    //var timer2 = $find('ctl00_ContentPlaceHolder1_timer2');

//    timer2.set_interval(50000000);
//    timer2.set_enabled(false);
//    timer2._stopTimer();

    //timer.set_interval(50000000);
    

    //timer.set_enabled(false);
    //alert(timer.get_enabled());
    //document.getElementById('ctl00_ContentPlaceHolder1_timer2')._stopTimer();
    //document.getElementById('ctl00_ContentPlaceHolder1_Timer1')._stopTimer();

    //document.getElementById('ctl00_ContentPlaceHolder1_Timer1').control._stopTimer();
    //document.getElementById('ctl00_ContentPlaceHolder1_timer2').control._stopTimer();   


    try {
        document.getElementById('divFav1').style.top = "250px";
        document.getElementById('divFav1').style.right = "200px";
        document.getElementById('divFav1').style.width = "25px";
    }
    catch (err) { }
    
    try {
        if (document.getElementById('ctl00_ContentPlaceHolder1_title').innerHTML.length < 20) {
            document.getElementById('HelpDivSub1').style.right = "-60px";
        }
    }
    catch (err) { }

    try {        
        document.getElementById('divFav1').style.zIndex = 99999;
    }
    catch (err) { }

    var temp = "";
    for (var i = 0; i <= 20; i++) {
        temp = "HelpDivSub" + i;
        try {
            document.getElementById('HelpDivSub' + i).style.display = "block";
        }
        catch (err) { }
    }
}



function CloseAllHelp() {
    closePageHelp();
    closeLBHelp();
}



function CheckForIE7() {
    var IE7Found = false;
    //alert("IE7Found=" & IE7Found);
    IE7Found = (navigator.appVersion.indexOf("MSIE 7.") == -1) ? false : true;
    //alert("IE7Found B=" & IE7Found);
    //return "1";
    return IE7Found;
}

