// Universal event handler
// Please don't use "onload = functionName" etc
// use instead this "addEvent(window, 'load', functionName);"
function addEvent(obj, strEvent, objFunction)
{ 
	if (obj.addEventListener)
	{ 
		obj.addEventListener(strEvent, objFunction, true); 
		return true; 
	}
	else if (obj.attachEvent)
	{ 
		var returnValue = obj.attachEvent("on"+strEvent, objFunction); 
		return returnValue; 
	} 
	else return false; 
}



///////////////////// FLASH ///////////////////////

function showBan(divName,width,height,wmode,src,spec,xparams) {
	var d=document.getElementById(divName);
	d.innerHTML='<OBJECT '+spec+' classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0	 WIDTH='+width+' HEIGHT='+height+'><PARAM NAME=movie VALUE="'+src+'"><PARAM NAME=wmode value=transparent><PARAM NAME=quality VALUE=best><PARAM NAME=AllowScriptAccess VALUE=always>'+xparams+'<EMBED src="'+src+'" quality=best WIDTH='+width+' HEIGHT='+height+' WMODE=transparent AllowScriptAccess=always TYPE=application/x-shockwave-flash PLUGINSPAGE=http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash  type=application/x-shockwave-flash></EMBED></OBJECT>';
}

////////////////////////////////////////////////////////////////////




if(screen.width == 1280) {
document.write('<link rel="stylesheet" href="../_css/1024.css" type="text/css" media="screen, projection, print, all">');
} else if (screen.width <= 800) {
document.write('<link rel="stylesheet" href="../_css/800.css" type="text/css" media="screen, projection, print, all">');
} else {
document.write('<link rel="stylesheet" type="text/css" href="general.css">');
}



////////////////////////////////////////////////////////////////////////


function resizeHpBoxes() 
{
	if (document.getElementById('homeBody'))
	{
		var arrPageDivs = document.getElementsByTagName('DIV');
		var arrBoxes;
		var lBoxHeadCurHeight, lBoxCellCurHeight;
		var lBoxHeadMaxHeight = 0;
		var lBoxCellMaxHeight = 0;
		var i, j;
		var lPadCompTH = document.all ? 8 : 0;
		var lPadCompTD = document.all ? 12 : 0;
		for (i = 0; i < arrPageDivs.length; i++ )
		{
			if (arrPageDivs[i].className == 'hpFeaturesLine')
			{
				arrBoxes = arrPageDivs[i].getElementsByTagName('TABLE');
				for (j = 0; j < arrBoxes.length; j++)
				{
					lBoxHeadCurHeight = arrBoxes[j].getElementsByTagName('TH')[0].offsetHeight;
					lBoxCellCurHeight = arrBoxes[j].getElementsByTagName('TD')[0].offsetHeight;
					if (lBoxHeadCurHeight > lBoxHeadMaxHeight) lBoxHeadMaxHeight = lBoxHeadCurHeight;
					if (lBoxCellCurHeight > lBoxCellMaxHeight) lBoxCellMaxHeight = lBoxCellCurHeight;
				}
				for (j = 0; j < arrBoxes.length; j++)
				{
					arrBoxes[j].getElementsByTagName('TH')[0].style.height = (lBoxHeadMaxHeight - lPadCompTH) + 'px';
					arrBoxes[j].getElementsByTagName('TD')[0].style.height = (lBoxCellMaxHeight - lPadCompTD) + 'px';
				}
			}
		}
	}
}
addEvent(window, 'load', resizeHpBoxes);

function pausescroller(content, divId, divClass, delay){
	this.content=content //message array content
	this.tickerid=divId //ID of ticker div to display information
	this.delay=delay //Delay between msg change, in miliseconds.
	this.mouseoverBol=0 //Boolean to indicate whether mouse is currently over scroller (and pause it if it is)
	this.hiddendivpointer=1 //index of message array for hidden div
	document.write('<div id="'+divId+'" class="'+divClass+'" style="position: relative; overflow: hidden"><div class="innerDiv" style="position: absolute; width: 100%" id="'+divId+'1">'+content[0]+'</div><div class="innerDiv" style="position: absolute; width: 100%; visibility: hidden" id="'+divId+'2">'+content[1]+'</div></div>')
	var scrollerinstance=this
	if (window.addEventListener) //run onload in DOM2 browsers
	window.addEventListener("load", function(){scrollerinstance.initialize()}, false)
	else if (window.attachEvent) //run onload in IE5.5+
	window.attachEvent("onload", function(){scrollerinstance.initialize()})
	else if (document.getElementById) //if legacy DOM browsers, just start scroller after 0.5 sec
	setTimeout(function(){scrollerinstance.initialize()}, 500)
}

// -------------------------------------------------------------------
// initialize()- Initialize scroller method.
// -Get div objects, set initial positions, start up down animation
// -------------------------------------------------------------------

pausescroller.prototype.initialize=function(){
this.tickerdiv=document.getElementById(this.tickerid)
this.visiblediv=document.getElementById(this.tickerid+"1")
this.hiddendiv=document.getElementById(this.tickerid+"2")
this.visibledivtop=parseInt(pausescroller.getCSSpadding(this.tickerdiv))
//set width of inner DIVs to outer DIV's width minus padding (padding assumed to be top padding x 2)
this.visiblediv.style.width=this.hiddendiv.style.width=this.tickerdiv.offsetWidth-(this.visibledivtop*2)+"px"
this.getinline(this.visiblediv, this.hiddendiv)
this.hiddendiv.style.visibility="visible"
var scrollerinstance=this
document.getElementById(this.tickerid).onmouseover=function(){scrollerinstance.mouseoverBol=1}
document.getElementById(this.tickerid).onmouseout=function(){scrollerinstance.mouseoverBol=0}
if (window.attachEvent) //Clean up loose references in IE
window.attachEvent("onunload", function(){scrollerinstance.tickerdiv.onmouseover=scrollerinstance.tickerdiv.onmouseout=null})
setTimeout(function(){scrollerinstance.animateup()}, this.delay)
}


// -------------------------------------------------------------------
// animateup()- Move the two inner divs of the scroller up and in sync
// -------------------------------------------------------------------

pausescroller.prototype.animateup=function(){
var scrollerinstance=this
if (parseInt(this.hiddendiv.style.top)>(this.visibledivtop+5)){
this.visiblediv.style.top=parseInt(this.visiblediv.style.top)-5+"px"
this.hiddendiv.style.top=parseInt(this.hiddendiv.style.top)-5+"px"
setTimeout(function(){scrollerinstance.animateup()}, 50)
}
else{
this.getinline(this.hiddendiv, this.visiblediv)
this.swapdivs()
setTimeout(function(){scrollerinstance.setmessage()}, this.delay)
}
}

// -------------------------------------------------------------------
// swapdivs()- Swap between which is the visible and which is the hidden div
// -------------------------------------------------------------------

pausescroller.prototype.swapdivs=function(){
var tempcontainer=this.visiblediv
this.visiblediv=this.hiddendiv
this.hiddendiv=tempcontainer
}

pausescroller.prototype.getinline=function(div1, div2){
div1.style.top=this.visibledivtop+"px"
div2.style.top=Math.max(div1.parentNode.offsetHeight, div1.offsetHeight)+"px"
}

// -------------------------------------------------------------------
// setmessage()- Populate the hidden div with the next message before it's visible
// -------------------------------------------------------------------

pausescroller.prototype.setmessage=function(){
var scrollerinstance=this
if (this.mouseoverBol==1) //if mouse is currently over scoller, do nothing (pause it)
setTimeout(function(){scrollerinstance.setmessage()}, 100)
else{
var i=this.hiddendivpointer
var ceiling=this.content.length
this.hiddendivpointer=(i+1>ceiling-1)? 0 : i+1
this.hiddendiv.innerHTML=this.content[this.hiddendivpointer]
this.animateup()
}
}

pausescroller.getCSSpadding=function(tickerobj){ //get CSS padding value, if any
if (tickerobj.currentStyle)
return tickerobj.currentStyle["paddingTop"]
else if (window.getComputedStyle) //if DOM2
return window.getComputedStyle(tickerobj, "").getPropertyValue("padding-top")
else
return 0
}




//////////////////////////////////////////////////////////////////////////////////
// set functions to work with a forms											//
// writed by Leonid Volkov /leon@catom.com/, Minicy Catom Ltd. /www.catom.com/	//
// updated by Kossovsky Alex feb 2006											//
// updated by Leonid Volkov may 11 2006											//
// v. 3.3, jul 11 2006															//
//////////////////////////////////////////////////////////////////////////////////

/////////// standard trim function - clean spaces, tabs and new line symbols at the beginning and the end of the string ////////
function trim(str)
{
	var lead = 0, trail = str.length - 1;
	while(str.charCodeAt(lead)  < 33) lead++;
	while(str.charCodeAt(trail)  < 33) trail--;
	return lead > trail ? '' : str.substring(lead, trail + 1);
}

function notValidCharsInValue(fldValue, fldNotValidChars)
{
	var notGoodChars = fldNotValidChars;
	var i = 0;
	for (i =0; i < fldValue.length; i++)
	{
		if (notGoodChars.indexOf(fldValue.charAt(i)) != -1)	return true; 
	}
	return false;
}

function ValidCharsInValue(fldValue, fldValidChars)
{
	var goodChars = fldValidChars;
	var i = 0;	

	for (i =0; i < fldValue.length; i++)
	{
		if (goodChars.indexOf(fldValue.charAt(i)) == -1) return false; 
	}
	return true;
}

////////// Check the Search forms //////////////
function checkSearch(frmObj)
{
	for (i=0; i<frmObj.length; i++)
	{
		if (frmObj[i].type.indexOf('text') == 0)
		{
			frmObj[i].value = trim(frmObj[i].value);
			if (frmObj[i].value.length == 0)
			{
				alert('Please type the keyword to search');
				frmObj[i].focus();
				return false;
				break;
			}
		}
	}
	return true;
}

////////// Check all other forms //////////////
function isValidEmail(strEmail)
{
	if (notValidCharsInValue(strEmail, "!#$%^&*()+=<>?/,\|~`\"[]") || strEmail.indexOf('@') <= 0 || strEmail.indexOf('.') <= 0) 
	{
		alert('Please type a valid e-mail address!');
		return false;
	}
	return true;
}

function isValidPhone(strPhone) 
{
	if (!ValidCharsInValue(strPhone, "0123456789()-+ ") || strPhone.length < 6)
	{
		alert('Please type a valid phone number!');
		return false;
	}
	return true;
}

function isNumber(strNumber) 
{
	if (!ValidCharsInValue(strNumber, "0123456789 "))
	{
		alert('Please type a valid number!');
		return false;
	} 
	return true;
}

function isHumanName(strName) 
{
	if (notValidCharsInValue(strName, "0123456789!@#$%^&*()_+=<>?/.,\|~`\"[]"))
	{
		alert('Please type a valid human name!');
		return false;
	} 
	return true;
}

function isValidCVFileName(fileName) 
{
	var strExt = fileName.substring(fileName.length - 4, fileName.length);
	strExt = strExt.toLowerCase();	
	if (strExt != ".txt" && strExt != ".rtf" && strExt != ".doc" && strExt != ".pdf")
	{
		alert('Please send a file in one of the following formats: \n \".txt\", \".rtf\", \".doc\", \".pdf\"!');
		return false;
	}
	return true;
}


function isValidPassword(curField)
{
	var strValue=curField.value;
	if ( notValidCharsInValue(strValue, "!#@$%^&*()_+=<>?/,\|~`\"[]") || strValue.length < 6 ) return false;
	return true;
}

function isValidUserName(curField)
{
	var strValue=curField.value;
	if ( notValidCharsInValue(strValue, "!#@$%^&*()_+=<>?/,\|~`\"[]") || strValue.length < 6 ) return false;
	return true;
}

function isValidNickName(curField)
{
	var strValue=curField.value;
	if ( notValidCharsInValue(strValue, "!#@$%^&*()_+=<>?/,\|~`\"[]") || strValue.length < 6 ) return false;
	return true;
}


function containValidChars(curField)
{
	var curName = curField.name;
	var curFldType = String(curField.getAttribute('fldType')).toUpperCase();
	
	if (curFldType=='EMAIL')
	{ 
		return isValidEmail(curField.value); 
	}
	else if (curFldType=='PHONE' || curFldType=='FAX' || curFldType=='MOBILEPHONE' || curFldType=='CELLPHONE') 
	{ 
		return isValidPhone(curField.value); 
	}
	else if (curFldType=='NUMERIC')
	{ 
		return isNumber(curField.value); 
	}
	else if (curFldType=='FIRSTNAME' || curFldType=='FULLNAME' || curFldType=='LASTNAME' || curFldType=='MIDDLENAME') 
	{ 
		return isHumanName(curField.value); 
	}
	else if (curFldType=='CVFILE')
	{ 
		return isValidCVFileName(curField.value);
	}
	return true;
}

function showAlert(curField)
{
	if ( curField.verefication_alert!=undefined)
	{
		strAlert = curField.getAttribute('verefication_alert').toString();
		alert(strAlert);
	}
	else
	{
		strAlert = 'Please provide all required information';
		alert(strAlert);
	}
}

function checkForm(frmObj)
{
	var found;
	var i, ii;
	var curField, curName, curType;
	var isFilled, isRequired;	
	var passCounter = 0;
	var passField1;
	var curFldType;
	with(frmObj)
	{
		for (i = 0; i < elements.length; i++)
		{
			curField = elements[i];
			if (curField.disabled || curField.tagName == 'FIELDSET' || curField.tagName == 'OBJECT') continue;
			curField.value = trim(curField.value);
			curName = curField.name;
			curType = curField.type;
			isFilled =  trim(curField.value) != '' ? true : false;
			isRequired = String(curField.getAttribute('IsMandatory')).toUpperCase() == 'TRUE' ? true : false;
			curFldType = String(curField.getAttribute('fldType')).toUpperCase();

			if(curType == 'text' && isFilled && !containValidChars(curField))
			{
					openRelevantTab(curField, frmObj);
					curField.focus();
					curField.select();
					return false;
			}
			else if (elements[curName].length && isRequired &&  (curType == 'radio' || curType == 'checkbox'))
			{
				found = 0;
				for (ii = 0; ii < elements[curName].length; ii++)
				{
					if (elements[curName][ii].checked)
					{
						found = 1;
						break;
					}
				}
				if (found == 0)
				{
					showAlert(curField);
					openRelevantTab(curField, frmObj);
					elements[curName][0].focus();	
					//elements[curName][0].click();
					return false;
				}
			}
			else if (isRequired && curType == 'select-one')
			{
				if (curField.selectedIndex == 0)
				{
					showAlert(curField);
					openRelevantTab(curField, frmObj);
					curField.focus();
					return false;
				}
			}
			else if (isRequired && curType == 'select-multiple')
			{
				if (curField.selectedIndex == -1)
				{
					showAlert(curField);
					openRelevantTab(curField, frmObj);
					curField.focus();
					return false;
				}
			}
			else if (isRequired && (curType == 'text' || curType == 'textarea' || curType == 'password'))
			{
				if (!isFilled)
				{
					showAlert(curField);
					openRelevantTab(curField, frmObj);
					curField.focus();
					return false;
				}
				if ( curType == 'text' && curFldType=='USERNAME' && !isValidUserName(curField))
				{
					alert('Username length have to be more than 6 chars.');
					openRelevantTab(curField, frmObj);
					curField.focus();
					return false;
				}
				if ((curType == 'password' || curFldType=='PASSWORD') && !isValidPassword(curField))
				{
					alert('Password length have to be more than 6 chars.');
					openRelevantTab(curField, frmObj);
					curField.focus();
					return false;
				}
			}
			else if (isRequired && curType == 'hidden')
			{
				if (!isFilled)
				{
					showAlert(curField);
					openRelevantTab(curField, frmObj);
					eval(curField.getAttribute('errorEval'));
					return false;
				}
			}
			else if(curType == 'file' && isFilled && !containValidChars(curField))
			{
					openRelevantTab(curField, frmObj);
					curField.focus();
					curField.select();
					return false;
			}

			if ((curType == 'password' || curFldType=='PASSWORD') && curFldType!='ORIGINALPASSWORD' && passCounter == 0)
			{
				passCounter++;
				passField1 = curField;
			}
			else if ((curType == 'password' || curFldType=='PASSWORD') && curFldType!='ORIGINALPASSWORD' && passCounter == 1)
			{
				if (passField1.value != curField.value)
				{
					alert('The entered passwords do not match.\nPlease re enter them.');
					curField.value = "";
					openRelevantTab(curField, frmObj);
					passField1.focus();
					passField1.select();
					return false;
				}
			}
			
		}
	}
	return true;
}

function manualSubmit(frmObj)
{	
	if(checkForm(frmObj)) frmObj.submit();
}

function manualReset(frmObj)
{
	frmObj.reset();
}
//////////////// if the user check/uncheck 'All' checkbox ////////////////
function switchBoxesGroup(boxObj)
	{
		var bStatus = boxObj.checked;
		var parentObj = boxObj.form[boxObj.name];

		for(var i=1; i<parentObj.length; i++)
		{
			parentObj[i].checked = bStatus;
			parentObj[i].disabled = bStatus;
			boxObj.value = bStatus ? boxObj.value + arrBoxes[i].value + ', ' : '';
		}
		boxObj.title = bStatus ? 'Uncheck all' : 'Check all';
		if(boxObj.value.length > 0) boxObj.value = boxObj.value.substring(0, boxObj.value.length - 2);
	}
//////////////// if the user check/uncheck 'All' checkbox ////////////////
function switchBoxesGroupByContainerId(boxObj, strContainerId)
	{
		var bStatus = boxObj.checked;
		var parentObj = document.getElementById(strContainerId);
		var arrBoxes = parentObj.getElementsByTagName('INPUT');

		for(var i=1; i<arrBoxes.length; i++)
		{
			if (arrBoxes[i].type == 'checkbox' && arrBoxes[i].name == boxObj.name )
			{
				arrBoxes[i].checked = bStatus;
				arrBoxes[i].disabled = bStatus;
				boxObj.value = bStatus ? boxObj.value + arrBoxes[i].value + ', ' : '';
			}
		}
		boxObj.title = bStatus ? 'Uncheck all' : 'Check all';
		if(boxObj.value.length > 0) boxObj.value = boxObj.value.substring(0, boxObj.value.length - 2);
	}
//////////////// Setup - called on window.onload in init() function /////////////////////
function buttonsMouseEventHandler()
{
	if (!document.layers && document.forms && document.forms.length)
	{
		var i, ii;
		var curElem;
		var strTypes = 'button submit reset';
		for  (i = 0;i < document.forms.length; i++)
		{
			for (ii =0; ii < document.forms[i].length; ii++)
			{
				curElem = document.forms[i][ii];
				if (curElem.className && strTypes.indexOf(curElem.type) != -1)
				{
					curElem.onmouseover = curElem.onfocus = buttonOver;
					curElem.onmouseout = curElem.onblur = buttonOut;
				}
			}
		}
	}
}
function buttonOver() {if (this.className.indexOf('Over') == -1) this.className += 'Over'}
function buttonOut() {if (this.className.indexOf('Over') != -1) this.className = this.className.substring(0,this.className.indexOf('Over'))}
///////////// set focus to the first text field of the first form on page //////////////
function setFocusToField()
{	
	if (!document.layers && document.forms && document.forms.length)
	{
		var frmObj = document.forms[0]; 
		for (i=0; i<frmObj.length; i++)
		{
			if (frmObj[i].type == 'text' && !frmObj[i].disabled)
			{
				frmObj[i].focus();
				break;
			}
		}
	}
}

////////////// onload function ///////////////////////////////////////
//function init()
//{
//	//buttonsMouseEventHandler();
//	//setFocusToField();
//}
//addEvent function placed in general.js
//addEvent(window, 'load', init);


////////////////////////////////////////////////////////////
// this function toggles tabs and related content divs on same page
////////////////////////////////////////////////////////////

function toggleTab(tabID, objA)
{
	//open related div by ID
	var arrAllDivs = document.getElementsByTagName('DIV');
	for (i=0; i<arrAllDivs.length; i++)
	{
		if (arrAllDivs[i].id.indexOf('tabDiv_') == 0) arrAllDivs[i].style.display = 'none';
	}
	document.getElementById('tabDiv_'+tabID).style.display = 'block';

	//set current tab selected ( <TD class="this"> )
	var objTabTd = objA.parentNode.parentNode.firstChild;
	do
	{
		objTabTd.className="";
		objTabTd = objTabTd.nextSibling; 
	}
	while (null != objTabTd)

	objA.parentNode.className = "this";
}

////////////////////////////////////////////////////////////
// if we need open a tab immediately onload
// place this JS+ASP code on the page:
// addEvent(window, 'load', function(){toggleTabOnLoad(<%=strCurrentTab%>)});
////////////////////////////////////////////////////////////
function toggleTabOnLoad(tabID)
{
	if(document.getElementById('tabA_' + tabID))
	{
		toggleTab(tabID, document.getElementById('tabA_' + tabID))
	}
}

//////////////////////////////////////////////////////////////////////
// if we work with tabs, we must first open the relevant tab
// the function begins work if we have any tab with 'tabDiv_' string in ID
// each div with 'tabDiv_X' string in ID must have related '<a id="tabA_X">' element
//////////////////////////////////////////////////////////////////////
function openRelevantTab(curObj, objForm)
{
	var arrDivs = objForm.getElementsByTagName('DIV');
	var bTabsFound = false;
	var lDivIdNum;
	for (i = 0; i < arrDivs.length; i++ )
	{
		if(arrDivs[i].id.indexOf('tabDiv_') == 0)
		{
			bTabsFound = true;
			break;
		}
	}
	if(bTabsFound)
	{
		while(curObj.tagName != 'FORM' && curObj.style.display != 'none') curObj = curObj.parentNode;
		if(curObj.style.display == 'none' && curObj.id.indexOf('tabDiv_') == 0)
		{
			lDivIdNum = curObj.id.substring(curObj.id.lastIndexOf('_')+1, curObj.id.length);
			toggleTab(lDivIdNum, document.getElementById('tabA_' + lDivIdNum));
		}
	}
}






function ProjectPicture(num)
{ 
	var strPath = '../Templates/ProjectPicture.asp?DBID=' + lDatabaseID + '&LNGID=' + lLanguageID + '&FID=' + lFolderID + '&PID=' + lPageID + "&num=" +num;
	var sendToFriendWin = window.open(strPath,'PopUp','width=480,height=550,scrollbars,resizable');
	sendToFriendWin.focus();
}


function viewPersonalInfo(PersonID)
{
	var strPath = '../about/personal_info.asp?PersonID=' +PersonID;
	var personalWin = window.open(strPath, 'PerWin', 'width=500, height=500, scrollbars');
	personalWin.focus();
}

function viewNewsItem(NewsID)
{
	var strPath = '../news/news_item.asp?NewsID=' +NewsID;
	var newsWin = window.open(strPath, 'NewsWin', 'width=500, height=500, scrollbars');
	newsWin.focus();
}

function viewPressItem(PressID)
{
	var strPath = '../news/press_item.asp?PressID=' +PressID;
	var PressWin = window.open(strPath, 'PressWin', 'width=500, height=500, scrollbars');
	PressWin.focus();
}

function sendToFriend() 
{ 
	var strPath = '../send_to_friend/send_to_friend.asp?DBID=' + lDatabaseID + '&LNGID=' + lLanguageID;
	var sendToFriendWin = window.open(strPath,'PopUp','width=520,height=500,scrollbars,resizable');
	sendToFriendWin.focus();
}
function openImagesBrowser(imgID)
{
	var strPath = 'images_browser.asp?imgID=' + imgID;
	var imgBrowserWin = window.open(strPath, 'imgBrowser', 'width=800,height=500,scrollbars,resizable');
	imgBrowserWin.focus();
}

function openOneImage(lVI_ID, lFI_ID,lPI_ID)
{
	var strPath = 'NewsAndEvents/CorporateImages/PopUp_CorporateImages.asp?vid=' + lVI_ID + '&FID=' + lFI_ID + '&pid=' + lPI_ID;
	var imgBrowserWin = window.open(strPath, 'imgBrowser', 'width=800,height=500,scrollbars,resizable');
	imgBrowserWin.focus();
}

///////////////////////////////////////////////////// fix #investorsFrame width for IE4 - 5 browsers
if(navigator.appVersion.indexOf("MSIE 5.") != -1 || navigator.appVersion.indexOf("MSIE 4.") != -1)
{
	document.write('<style type="text/css"> #investorsFrame { width: expression(screen.width - 235) } </style>');
	
}

function openVideo(strLang)
	{
		var videoWin = window.open('../_includes/video1.asp?video=small','video','resizable=yes,width=500,height=380');
		videoWin.focus();
	}
function openVideo2(strLang)
{
	var videoWin = window.open('../_includes/video2.asp?video=small','video','resizable=yes,width=500,height=380');
	videoWin.focus();
}
function openTopVideo(strLang)
	{
		var videoWin = window.open('../_includes/video_top_viewer.asp','video','resizable=yes,width=500,height=380');
		videoWin.focus();
	}
