var loc=new Array(6)
loc[0]='CODE_aboutUs.htm'
loc[1]='CODE_products.htm'
loc[2]='CODE_departments.htm'
loc[3]='CODE_staff.htm'
loc[4]='CODE_jobOffers.htm'
loc[5]='CODE_contactUs.htm'
function setLocInd_ov(ind)
{
	if(ind!=currentInd) document.images[ind].src=imgPath+img_cl[ind];
}
function setLocInd_ot(ind)
{
	if(ind!=currentInd) document.images[ind].src=imgPath+img_ot[ind];
}
function setLocInd(ind)
{
	if(currentInd!=-1) document.images[currentInd].src=imgPath+img_ot[currentInd];
	currentInd=ind;
	document.images[ind].src=imgPath+img_cl[ind];
}
function setLoc(ind)
{
	return false;
}
function setLocInd_cl(ind)
{
	if(ind!=currentInd) setLocInd(ind);
	setLoc(ind);
}
function writeFrameset(menuFile,contentFile)
{
	var partFrameset=' frameborder=no framespacing=0 border=0>';
	var partFrame=' marginwidth=0 marginheight=0 noresize border=0 frameborder=no framespacing=0>';	
	var output='<html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">'+
				'<title>Code Assistance Home Site</title></head><frameset rows="125,45,1*"'+partFrameset+
				'<frame src="logo.htm" name="logo" scrolling=no'+partFrame+
				'<frame src="menuTop.htm" name="menuTop" scrolling=no'+partFrame+
				'<frameset cols="150,1*"'+partFrameset+
				'<frame src="'+menuFile+'" name="menuLeft" scrolling=no'+partFrame+
				'<frame src="'+contentFile+'" name="content" scrolling=yes'+partFrame+
				'</frameset></frameset></html>';			
	parent.document.write(output);
}
function setLocIndAnoth(frameInd,imgInd)
{
	ref=parent.document.frames[frameInd];
	if(ref.document.images.length>0)
	{
		ref.document.images[imgInd].src=ref.imgPath+ref.img_cl[imgInd];
		ref.currentInd=imgInd;
	}
}
function goHome()
{
	top.document.location='http://www.code.bg/';
	//'default.htm';
}
function setContentLoc(frameInd,locDocument)
{
	parent.document.frames[frameInd].document.location=locDocument;
}
function textVersion()
{
	var ref=parent.frames;
	var subDir="textVersion/";
	ref[1].document.location=subDir+extractFile(ref[1].document.location);
	if(ref.length==4) ref[2].document.location=subDir+extractFile(ref[2].document.location);
}
function extractFile(fullPath)
{
	fullPath=fullPath+""
	return fullPath.substring(fullPath.lastIndexOf('/')+1,fullPath.length);
}
function doOver()
{
	if(window.event.srcElement.tagName=='A')
	{
		window.status = window.event.srcElement.innerText
		return true
	}	
}
function doOut()
{
	if(window.event.srcElement.tagName=='A')
	{
		window.status=""
		return false
	}
}
