﻿test_funkt = function () 
             {
                 $(function () 
                 {
                    var options =
						    {
						        zoomWidth: 360,
						        zoomHeight: 240,
						        position: 'right',
						        xOffset: 16,
						        showEffect: 'show',
						        hideEffect: 'fadeout',
						        fadeoutSpeed: 'slow'
						    }
                     $(".jqzoom").jqzoom(options);
                   }
	              );

                    $('.expand').click(
					            					function () {
					            					    var href = jQuery(this).attr('href');
					            					    var elclass = href.match('#([a-zA-Z]+)([0-9]+)');

					            					    if (elclass[1] == 'html') {
					            					        jQuery('.html' + elclass[2] + 'div').show();
					            					        jQuery('.js' + elclass[2] + 'div').hide();
					            					    } else {
					            					        jQuery('.html' + elclass[2] + 'div').hide();
					            					        jQuery('.js' + elclass[2] + 'div').show();
					            					    }
					            					    jQuery(this).addClass('alert').siblings('a').removeClass('alert');
					            					    return false;
					            					}
            								  );

}







GB_myShow = function (_caption, _url, _height, _width, _callback_fn) {
    var options = { caption: _caption,
        center_win: true,
        height: _height,
        width: _width,
        fullscreen: false,
        overlay_click_close: true,
        callback_fn: _callback_fn
    };
    var win = new GB_Window(options);
    return win.show(_url);
}
function styleChange(newStyle, item) {
    var resultStyle = '';
    if (newStyle == 'button_down') {
        if (item.id == 'ctl00_ContentPlaceHolderMain_ImageButtonThumbnail1') {
            get_object('ctl00_ContentPlaceHolderMain_ImageButtonThumbnail2').style.cssText = 'border: 1px solid #E4E4EA;';
            get_object('ctl00_ContentPlaceHolderMain_ImageButtonThumbnail3').style.cssText = 'border: 1px solid #E4E4EA;';
            resultStyle = 'border: 1px solid #C70085;';
        }
        if (item.id == 'ctl00_ContentPlaceHolderMain_ImageButtonThumbnail2') {
            get_object('ctl00_ContentPlaceHolderMain_ImageButtonThumbnail1').style.cssText = 'border: 1px solid #E4E4EA;';
            get_object('ctl00_ContentPlaceHolderMain_ImageButtonThumbnail3').style.cssText = 'border: 1px solid #E4E4EA;';
            resultStyle = 'border: 1px solid #C70085;';
        }
        if (item.id == 'ctl00_ContentPlaceHolderMain_ImageButtonThumbnail3') {
            get_object('ctl00_ContentPlaceHolderMain_ImageButtonThumbnail1').style.cssText = 'border: 1px solid #E4E4EA;';
            get_object('ctl00_ContentPlaceHolderMain_ImageButtonThumbnail3').style.cssText = 'border: 1px solid #E4E4EA;';
            resultStyle = 'border: 1px solid #C70085;';
        }
        item.style.cssText = resultStyle;
    }
    if (newStyle == 'button_up') {

        get_object('ctl00_ContentPlaceHolderMain_ImageButtonThumbnail1').style.cssText = 'border: 1px solid #E4E4EA;';
        get_object('ctl00_ContentPlaceHolderMain_ImageButtonThumbnail2').style.cssText = 'border: 1px solid #E4E4EA;';
        get_object('ctl00_ContentPlaceHolderMain_ImageButtonThumbnail3').style.cssText = 'border: 1px solid #E4E4EA;';
    }

}
/**********************
*   wb 21.01.2010
**/
function get_object(id) {
    var object = null;
    if (document.layers) {
        object = document.layers[id];
    } else if (document.all) {
        object = document.all[id];
    } else if (document.getElementById) {
        object = document.getElementById(id);
    }
    return object;
}
/**********************/


function toggleVeilLeft(elem) {
    var li = elem.parentNode;
    if (li.className == "arright") {
        li.className = "ardown";
    } else {
        li.className = "arright";
    }
}
function goBack() {
    history.back();
    return false;
}
function linkme(link) {
    window.location.href = link;
}
function back(refer) {
    if (document.referrer > 0) {
        window.location.href = document.referrer;
    } else {
        history.back();
        window.setTimeout("linkme('" + refer + "')", 500);
    }
}
