function goCreateAnchor(objImage)
{
	var anchor1 = document.getElementById('tempa');
	var imagesrc = objImage.src.replace('_cmsthumbclick','');
	anchor1.setAttribute('href',imagesrc);
	anchor1.setAttribute('rel','contentimage');	
	anchor1.setAttribute('title',objImage.alt);	
	myLightbox.start(anchor1); 
	return false;	
}
function CreateBookmarkLink() 
{
	title = "Online Innovations";
	url = "http://www.onlineinnovations.co.za/";
	if (window.sidebar) {
		window.sidebar.addPanel(title, url,"");
	} 
	else if( window.external ) 
	{
		window.external.AddFavorite( url, title);
	}
	else if(window.opera && window.print) 
	{
	return true; 
	}
}
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 sizeLayer (layer1) {

var obj = MM_findObj(layer1);
var PageHeight = document.body.scrollHeight;
var PageWidth = document.body.clientWidth;
	obj.style.height = PageHeight;
	obj.style.width = PageWidth;
var obj = MM_findObj('BrochureTable');
	obj.style.left = ((PageWidth-760)/2);
	obj.style.top = 50;
}

function showLayer (layer1,layer2,url,target)  {
	var obj1 = MM_findObj(layer1);
	var obj2 = MM_findObj(layer2);
	obj1.style.visibility = 'visible';
	obj1.style.display = '';
	obj2.style.visibility = 'visible';
	obj2.style.display = '';
	if(url!=""){
		window.open(url,target);
	}
	
}

function hideLayer (layer1,layer2,target)  {
	var obj1 = MM_findObj(layer1);
	var obj2 = MM_findObj(layer2);
	obj1.style.visibility = 'hidden';
	obj1.style.display = 'none';
	obj2.style.visibility = 'hidden';
	obj2.style.display = 'none';
	window.open('blank.html',target);
}

