var mc_url;
var page;
switch (window.location.host) {
    case 'dev.dti-online.info':mc_url = 'mediacenterdev.dti-online.info';break;
    case 'www.dental-tribune.com':mc_url = 'mediacenter.dental-tribune.com';break;
    case 'dental-tribune.com':mc_url = 'mediacenter.dental-tribune.com';break;
    case 'backup.dentaltribune.net':mc_url = 'mediacenterbak.dental-tribune.com';break;

    case 'dev.ortho-tribune.com':mc_url = 'mediacenterdev.ortho-tribune.com';break;
    case 'www.ortho-tribune.com':mc_url = 'mediacenter.ortho-tribune.com';break;
    case 'ortho-tribune.com':mc_url = 'mediacenter.ortho-tribune.com';break;
    case 'backup.ortho-tribune.com':mc_url = 'mediacenterbak.ortho-tribune.com';break;

    case 'zwp-dev.1000grad.com':mc_url = 'mediacenterdev.zwp-online.info';page = 'zwp';break;
    case 'www.zwp-online.info':mc_url = 'mediacenter.zwp-online.info';page = 'zwp';break;
    case 'zwp-online.info':mc_url = 'mediacenter.zwp-online.info';page = 'zwp';break;
    case 'www2.zwp-online.info':mc_url = 'mediacenterbak.zwp-online.info';page = 'zwp';break;

    default: mc_url = 'mediacenterdev.zwp-online.info';page = 'zwp';break;
}

function embedMediacenter(element,id) {

    document.write('<iframe src="http://'+ mc_url +'/index/embedvideolink/movie/'+ id +'" width="100%" height="143" scrolling="no" frameborder="0" name="Videos"></iframe>');

}

function embedImagecenter(element,id,size) {

    if ( page == 'zwp' ) {
        
        document.write('<iframe src="http://'+ mc_url +'/image/embed/ID/'+ id +'" width="100%" height="570" scrolling="no" frameborder="0" name="Photos"></iframe>');
        
    } else {
        if ( size == null ) {size = 'large';}

        document.write('<iframe src="http://'+ mc_url +'/image/searchembed/ID/'+ id +'/size/'+ size +'" width="100%" height="148" scrolling="no" frameborder="0" name="Photos"></iframe>');
    }
}

function embedVideo(element,id,size) {

    if ( size == null ) {size = 'small';}

    var height = '375';
    if ( size == 'large') {
        height = '540';
    }

    if ( page == 'zwp' ) {
        height = '532';
    }

    document.write('<iframe src="http://'+ mc_url +'/index/embedvideo/movie/'+ id +'/size/'+ size +'" width="100%" height="'+ height +'" scrolling="no" frameborder="0" name="Videos"></iframe>');
}

