//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//function clickIE4(){if (event.button==2){return false;}}
//function clickNS4(e){if (document.layers||document.getElementById&&!document.all){if (e.which==2||e.which==3){return false;}}}
//if (document.layers){document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS4;}else if (document.all&&!document.getElementById){document.onmousedown=clickIE4;}
//document.oncontextmenu=new Function("return false");
var barBWidth = 200;
var barBHeight = 17;
var barBgColor = "#9E1B51";
var barBorderColor = "#13BA01";
var barBlockColor = "#ABABAB"; 	
function BeforeSending(){	
	document.getElementById("progbarSubmit").style.visibility = "hidden"; 
	bar1.showBar();
}	

function goToUrl(geturl){location.href = geturl;}

function changeBgColor(obj, color) {obj.style.backgroundColor=color;}

function toggleLayer( whichLayer ){
  var elem, vis;
  if( document.getElementById ) // this is the way the standards work
    elem = document.getElementById( whichLayer );
  else if( document.all ) // this is the way old msie versions work
      elem = document.all[whichLayer];
  else if( document.layers ) // this is the way nn4 works
    elem = document.layers[whichLayer];
  vis = elem.style;
  // if the style.display value is blank we try to figure it out here
  if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
    vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
  vis.display = (vis.display==''||vis.display=='block')?'none':'block';
}

jQuery(function(){
    jQuery('.trips-container').vTicker({
	   speed: 500,
	   pause: 3000,
	   showItems: 3,
	   animation: 'fade',
	   mousePause: true
	});
	jQuery('.art-container').vTicker({
	   speed: 1000,
	   pause: 3000,
	   showItems: 3,
	   animation: 'fade',
	   mousePause: true
	});
    /*jQuery("#send_reply_form").click(function() {
    var description = jQuery('#reply_desc');
    alert(description.val());
    });*/ 
    jQuery('#right_banner_1').tipsy();
    jQuery('#open_left_1').tipsy();
    jQuery('#open_left_2').tipsy();
    jQuery('#open_left_3').tipsy();
});

hs.graphicsDir = '/includes/highslide/graphics/';  
hs.showCredits = false;
hs.fadeInOut = true;
hs.flushImgSize = true;
hs.dimmingOpacity = 0.000000001;

hs.registerOverlay({
   html: '<div class="highslide-close" title="Close"><a href="#" onclick="return parent.window.hs.close();" style="color:black;">סגור</a></div>',
   position: 'top center',
   useOnHtml: true,
   fade: 2 // fading the semi-transparent overlay looks bad in IE
});