
/* - ++resource++cis.javascripts/dbsearch.js - */
// http://www.cis.at/portal_javascripts/++resource++cis.javascripts/dbsearch.js?original=1
$(document).ready(function(){});var old_content;
function replace_front_image(url){if(!old_content)
old_content=$('#front_image_container').html();$.get('replaceFrontIMG?url='+url, function(data){$('#front_image_container').html(data)})}
function restore_front_image(){$('#front_image_container').html(old_content)}
var old_branchen_content;var col2_content;var hide_col_2=1;var breadcrumbs='';portal-breadcrumbs
function show_branchen_container(){var old_branchen_content=$('#dbresult_container').html();if(!old_branchen_content){$.get('alle_branchen', function(data){$('#dbresult_container').html(data)})} else{$('#dbresult_container').html('')}
if(hide_col_2==1){hide_col_2=0;col2_content=$('#portal-column-two').html();$('#portal-column-two').html('');breadcrumbs=$('#portal-breadcrumbs').html();$('#portal-breadcrumbs').html('')} else{hide_col_2=1;$('#portal-column-two').html(col2_content);$('#portal-breadcrumbs').html(breadcrumbs)}}
function switch_to_db(param){var search_value=$('#dbsearchinput').val();if(search_value){window.location.href="http://cis.users.aboliton.at/CISDB/netzwerk/index.php?param="+search_value} else{if(param){window.location.href="http://cis.users.aboliton.at/CISDB/netzwerk/index.php"+param} else{window.location.href="http://cis.users.aboliton.at/CISDB/netzwerk/index.php"}}}
function is_child_of(parent,child){if(child!=null){while(child.parentNode){if((child=child.parentNode)==parent){return true}}}
return false}
function fixOnMouseOut(element,event,JavaScript_code){var current_mouse_target=null;if(event.toElement){current_mouse_target=event.toElement} else if(event.relatedTarget){current_mouse_target=event.relatedTarget}
if(!is_child_of(element,current_mouse_target)&&element!=current_mouse_target){eval(JavaScript_code)}}


