// JavaScript Document
function DoNothing() {}

function showMenu(num)
	{
		if(document.getElementById(num).style.display == 'none')
			{document.getElementById(num).style.display = 'block';}
		else {document.getElementById(num).style.display = 'none';}
	}
	
function itmCookie(cookItm){
	var cookItms = cookItm + "=";
	var ck = document.cookie.split(';');
	for(var i=0;i < ck.length;i++) {
		var c = ck[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(cookItms) == 0) return c.substring(cookItms.length,c.length);
	}
	return null;
}

function Cook(){
	var x = itmCookie('CartItems')
	if (x > 0) {
var str;
if (x == 1) {str = 'יש לך פריט 1 בסל הקניות';}
else {str = 'יש לך '+ x +' פריטים בסל הקניות';}
		document.getElementById('goCart').style.display = 'block';
		document.getElementById('goCart').innerHTML = '<a href="/cart.php" class="cartGo"><img src="/imeges/shoppingcart.gif" width="25" height="25" alt="עבור לסל קניות" border="0" /><span style="position:relative; top: -10px; ">'+ str +'</span></a>';
		}
}


function flotOn(filed,num){
	if (num == '1'){
	document.getElementById(filed).style.display = 'block';}
	if (num == '2'){
	document.getElementById(filed).style.display = 'none';}
 }

function bookmark(){
/* EREZ 
	pageTracker._trackPageview('/program/engineering'); 
*/
	pageTracker._trackPageview('/add_to_fab.php');

    var title="מנוע חיפוש | הדפסה על קנבס | מסגרות לתמונות | הדבקות";
    var url="http://www.printnframe.com";

    if (window.sidebar) window.sidebar.addPanel(title, url,"");

    else if( window.opera && window.print )
    {
    var mbm = document.createElement('a');
    mbm.setAttribute('rel','sidebar');
    mbm.setAttribute('href',url);
    mbm.setAttribute('title',title);
    mbm.click();
    }

    else if( document.all ) window.external.AddFavorite( url, title);

}
