var veidan = {

	_last: null,
	_o:null,
	_culture:'en-US',
	_expand_for_details:'',
	_collapse:'',
	_queryName:'',

	reload_frame: function(obj, id) {

		if ($('frame_0'+id)){
			if(id == 5) { if($('frame_0'+id).visible() == false) { $('frame_0'+id).show(); } }
			//alert(veidan._last);
			if(veidan._last != null && veidan._last != id && veidan._o != null && veidan._o != obj) {
				$('frame_0'+veidan._last).hide(); veidan._o.className = 'anchor_left default_0'+veidan._last;
			}
			veidan._last = id;
			veidan._o = obj;

			if($('frame_0'+id).visible() == false && obj != null) {
				
				//new Effect.Appear('frame_0'+id,{duration:.4,from:.4,to:1});
				$('frame_0'+id).show(); obj.className = obj.className + '_over';
			
				//new Effect.Fade('frame_05');
				$('frame_05').hide();
			}
		}
	},

	bubble: function(id) {
		if($(id)) {
			if($(id).visible() == false) { /*$(id).show();*/ Effect.Appear(id); }
			else { $(id).hide(); }
		}
	},

	_last_obj:null,
    _last_id:null,

	tab_visible: function(item, id) {

		hasPrefix = location.href.toLowerCase().indexOf("he/")>-1 || location.href.toLowerCase().indexOf("en/")>-1 ;		
		//alert(hasPrefix);
	    if(veidan._last_obj != null && veidan._last_obj != item && veidan._last_id != null && veidan._last_id != id) {
	        $(veidan._last_obj).className = 'tab_hidden'; $('img_left_'+veidan._last_id).src = (hasPrefix?"../":"") +"Resources/"+veidan._culture+"/Images/Tabs/bg_left_hidden.gif"; $('img_right_'+veidan._last_id).src = (hasPrefix?"../":"") +"Resources/"+veidan._culture+"/Images/Tabs/bg_right_hidden.gif"; $('panel_'+veidan._last_id).hide();
	    }
	    veidan._last_obj = item; veidan._last_id = id;
	    if($(item).className == 'tab_hidden') {
			 $(item).className = 'tab_visible'; 
			 $('img_left_'+id).src = (hasPrefix?"../":"") +"Resources/"+veidan._culture+"/Images/Tabs/bg_left_visible.gif"; 
			 $('img_right_'+id).src = (hasPrefix?"../":"") +"Resources/"+veidan._culture+"/Images/Tabs/bg_right_visible.gif"; 
			 $('panel_'+id).show(); 
			 }
	    return false;
	},

	toggle: function(z,id) {
	    if($('faq_'+id).visible() == false) { /*$('faq_'+id).show();*/ Effect.Appear('faq_'+id); $('faq_toolbar_'+id).show(); $('faq_open_'+id).src = "../Resources/"+veidan._culture+"/Images/Bg/bg_none.gif"; $('header_'+z).style.color = "#0587d7"; }
	    else { $('faq_'+id).hide(); $('faq_toolbar_'+id).hide(); $('faq_open_'+id).src = "../Resources/"+veidan._culture+"/Images/Bg/bg_open.gif"; $('header_'+z).style.color = "#000000";
	    }
	},

	toggle_next: function(obj,id) {
	    if($('item_'+id).visible() == false) {
	        Effect.Appear('item_'+id);
	        if(obj.className == "anchor_drop") { obj.className = "anchor_drop_up"; }
	    }
	    else {
	        $('item_'+id).hide();
	        if(obj.className == "anchor_drop_up") { obj.className = "anchor_drop"; }
	    }
	},

	toggle_product: function(id) {
	    if($('product_'+id).visible() == false) {
		    Effect.Appear('product_'+id);
	        $('e_'+id).innerHTML = veidan._collapse;
	        $('image_'+id).innerHTML = "<img src=../Resources/en-US/Images/Bg/"+ veidan._queryName +"/bg_close.gif  />";
	    } else { $('product_'+id).hide(); $('e_'+id).innerHTML = veidan._expand_for_details; $('image_'+id).innerHTML = "<img src='../Resources/en-US/Images/Bg/"+ veidan._queryName +"/bg_open.gif'  />"; }
	}

}
