﻿var req;
function retrieveURL() {
 var width =800;
 var height=800;
switch (Zap_type)
{
    case 1:
        width = 600;
        height = 80;
        break;
    case 2:
        width = 125;
        height = 144;
        break;
    case 3:
        width = 125;
        height = 585;
        break;
    case 4:
        width = 600;
        height = 78;
        break;
    case 5:
        width = 80;
        height = 450;
        break;
    case 6:
        width = 150;
        height = 150;
        break;
    case 7:
        width = 150;
        height = 190;
        break;
    case 8:
        width = 150;
        height = 200;
        break;
    case 9:
        width = 120;
        height = 600;
        break;   
    case 10:
        width = 120;
        height = 400;
        break;
    case 11:
        width = 120;
        height = 300;
        break;
    case 12:
        width = 728;
        height = 90;
        break;
    case 13:
        width = 158;
        height = 65;
        break;
    case 14:
        width = 240;
        height = 150;
        break;
    case 15:
        width = 250;
        height = 60;
        break;
    case 16:
        width = 240;
        height = 60;
        break;
    case 17:
        width = 468;
        height = 60;
        break;
    case 18:
        width = 230;
        height = 60;
        break;
    case 19:
        width = 380;
        height = 60;
        break;
    case 20:
        width = 125;
        height = 125;
        break;
    case 21:
        width = 148;
        height = 75;
        break;
    case 22:
        width = 100;
        height = 350;
        break;
    case 23:
        width = 175;
        height = 200;
        break;
    case 24:
        width = 175;
        height = 200;
        break;
    case 25:
        width = 199;
        height = 136;
        break;
    case 26:
        width = 180;
        height = 90;
        break;
    case 27:
        width = 232;
        height = 243;
        break;
    case 28:
        width = 256;
        height = 165;
        break;
    case 29:
        width = 116;
        height = 190;
        break;
    case 30:
        width = 116;
        height = 150;
        break;
    case 31:
        width = 116;
        height = 150;
        break;
    case 32:
        width = 281;
        height = 151;
        break;
    case 33:
        width = 182;
        height = 110;
        break;
    case 34:
        width = 160;
        height = 600;
        break;
    case 36:
        width = 336;
        height = 280;
        break;
    case 37:
        width = 70;
        height = 350;
        break;
}

    document.write ('<iframe src="' + 'http://affiliate.zap.co.il/affiliate/affiliate.aspx?sog=' + Zap_sog  +'&ref='+ Zap_ref + '&type=' + Zap_type +'" width="' + width +'" height="' + height+ '" frameborder=0 scrolling=no></iframe>');

}
