function pressedButton(divId){
	document.getElementById('button' + divId).id = 'button' + divId + 'hover';
}

function unPressedButton(divId){
	if(document.getElementById('button' + divId + 'hover')){
	document.getElementById('button' + divId + 'hover').id = 'button' + divId;}
}

/* This script shows/hides the selected div */
var state = 'none';
function showhide(layer_ref) {
	
	if (state == 'block') { 
	state = 'none'; 
	} 
	else { 
	state = 'block'; 
	} 
	if (document.all) { //IS IE 4 or 5 (or 6 beta) 
	eval( "document.all." + layer_ref + ".style.display = state"); 
	} 
	if (document.layers) { //IS NETSCAPE 4 or below 
	document.layers[layer_ref].display = state; 
	} 
	if (document.getElementById &&!document.all) { 
	hza = document.getElementById(layer_ref); 
	hza.style.display = state; 
	} 
} 


function pressedframeMenuButton(divId){
	document.getElementById('frameMenuButton' + divId).setAttribute("class", "frameMenuButtonPressed");
}

function pressedframeMenuButtonHigher(divId){
	document.getElementById('frameMenuButton' + divId).setAttribute("class", "frameMenuHigherButtonPressed");
}

function unpressedframeMenuButton(divId){
	document.getElementById('frameMenuButton' + divId).setAttribute("class", "frameMenuButton");
}

var productBullitsContent=new Array()
	productBullitsContent[0]='<div style="background:transparent url(\'images/ProductsOffroad.jpg\') top center no-repeat; padding-left:10px; padding-right:10px;"><p style="text-align:center;"><strong>Landguide</strong> - Offroad navigation</p>LandGuide allows the user to plan navigation routes and drive it outdoors.<br/>The program build in native Mobile/CE devices environment for optimal hardware and resources utilization. It doesn&#8217;t require any additional 3rd party libraries or frameworks and offers full compatibility to major door to door navigation programs.<br/>In addition to the private use, Landguide was also tested and chosen for a veriety of uses by industrial and secutiry entities.</div>'
	productBullitsContent[1]='<div style="background:transparent url(\'images/ProductsPrototype.jpg\')  top center no-repeat; padding-left:10px; padding-right:10px;"><strong>Prototypes &amp; Proof of concept</strong><br/>In some cases a prototype or a partly functional proof-of-concept version of the product requires less resources then fine presentation yet undoubtfuly more impressive!<br/><br/>Full understanding of the available tools as well as the technical aspects of the goal allows us offer our clients quick development of these kind of products.</div>'
	productBullitsContent[2]='<div style="background:transparent url(\'images/ProductsSecurity.jpg\') top center no-repeat; padding-left:10px; padding-right:10px;"><p style="text-align:center;"><strong>Security and encryption</strong></p>Nowadays there&#8217;s no doubt that data encryption and protection is more important than ever. However, complicated algorithms alone are often not the optimal solution. Well implemented hardware based protection is the most simple yet the most effective.<br/>Our acquaintance with the abilities and limitations of dedicated hardware allows us to suit almost every dedicated hardware with a reliable protection, lock or encryption.</div>'
	productBullitsContent[3]='<div style="background:transparent url(\'images/ProductsAdv.jpg\') top center no-repeat; padding-left:10px; padding-right:10px;"><p style="text-align:center;"><strong>Branded Applications</strong></p>With different levels of content and functionality, Branded applications are probably the fastest growing advertising medium.<br/>The Branded application continuously exposes the user to the product&#8217;s theme, content and messages that might be dynamically customized.<br/>We offer our customers a wide variety of branded software products as well as our knowledge and experience that can carry out almost any unique and &quot;out of the box&quot; idea.</div>'

function bullitsContent(divId){
	document.getElementById('productBullit1').src='images/BullitDeSelected.png';
	document.getElementById('productBullit2').src='images/BullitDeSelected.png';
	document.getElementById('productBullit3').src='images/BullitDeSelected.png';
	document.getElementById('productBullit4').src='images/BullitDeSelected.png';
	document.getElementById('productBullit' + divId).src='images/BullitSelected.png';
	document.getElementById('productsContect').innerHTML=productBullitsContent[divId-1];
	currentProductPointer = divId-1;
}

function fadetransition(contentdiv,effectType){
	if (effectType=="reset"){
		contentdiv.style.opacity = (1);
	}

	if (effectType=="down"){
		contentdiv.style.opacity = parseFloat(contentdiv.style.opacity) - parseFloat(0.2);
	}

	if (effectType=="up"){
		contentdiv.style.opacity = parseFloat(contentdiv.style.opacity) + parseFloat(0.2);
	}

	if (effectType=="down" && contentdiv.style.opacity<=0){
		clearInterval(productsFadeInterval);
	}

	if (effectType=="up" && contentdiv.style.opacity>=1)
		clearInterval(productsFadeInterval);

//	contentdiv.style.filter  = "alpha(opacity="+contentdiv.style.opacity*100+")";
}

var currentProductPointer = -1;
var productsFadeInterval = new Object()

function productDivContentNext(){
	currentProductPointer = (currentProductPointer+1) % 4;

	document.getElementById('productsContect').innerHTML=productBullitsContent[currentProductPointer];

	document.getElementById('productBullit1').src='images/BullitDeSelected.png';
	document.getElementById('productBullit2').src='images/BullitDeSelected.png';
	document.getElementById('productBullit3').src='images/BullitDeSelected.png';
	document.getElementById('productBullit4').src='images/BullitDeSelected.png';

	document.getElementById('productBullit' + (currentProductPointer+1)).src='images/BullitSelected.png';
	if (document.getElementById('productsContect').style.opacity<1){
		productsFadeInterval = setInterval("fadetransition(document.getElementById('productsContect'),'up');", 100);
	}
		
}

function productDivNext(){
	fadetransition(document.getElementById('productsContect'),'reset');
	productsFadeInterval = setInterval("fadetransition(document.getElementById('productsContect'),'down');", 100);
	setTimeout(productDivContentNext, 600);
}
