var ie=document.all && !window.opera

function show_men() {
	clear_hide();
	
	var menupop = document.getElementById('submenu');
	
	//if (ie) {
	//	menupop.style.marginLeft = '-104px';
	//}
	menupop.style.visibility = 'visible';
}

function hide() {
	var menupop = document.getElementById('submenu');
	menupop.style.visibility = 'hidden';
}

function hide_men () {
	delayhide=setTimeout("hide()",500)
}

function leave_menu () {
	clear_hide();
	var menupop = document.getElementById('submenu');
	menupop.style.visibility = 'visible';
}

function clear_hide () {
	if (window.delayhide)
		window.clearTimeout(delayhide);
}

function change (id) {
	
	photos = document.getElementsByTagName('img');
	for(i=0; i<photos.length; i++) {
		if (photos[i].className == 'project_photo') photos[i].style.display = 'none';
	}
	
	links = document.getElementsByTagName('a');
	for(i=0; i<links.length; i++) {
		if (links[i].className == 'current') links[i].className = '';
	}
	
	document.getElementById('p_' + id).style.display = 'block';
	document.getElementById('l_' + id).className = 'current';
	
	return false;
}

function show(url) {
	newwindow=window.open(url,'name','height=442,width=700');
	if (window.focus) {newwindow.focus()}
	return false;
}

function loadSWFObject()
{
	var flash_content = new SWFObject("images/swf/banner.swf", "Banner", "923", "316", "8", "#FFFFFF");
	
	flash_content.addParam("wmode", "transparent");
	flash_content.write("flash_content");
	
	if (document.getElementById("left")) {
		var products_content = new SWFObject("images/swf/products.swf", "Products", "275", "218", "8", "#FFFFFF");
		
		products_content.addParam("wmode", "transparent");
		products_content.write("left");
	}
	
	if (document.getElementById("right")) {
		var services_content = new SWFObject("images/swf/services.swf", "Products", "275", "218", "8", "#FFFFFF");
		
		services_content.addParam("wmode", "transparent");
		services_content.write("right");
	}
}$(document).ready(function () {	$('.print_ico').click(function () {		window.print();	})})
