var screenW = screen.width
var screenH = screen.height
var browserSize = 1;

if (screenW>799) {
  browserSize = 0.625;
  browserSize2 = '_600';
}
if (screenW>1023) {
  browserSize = .80;
  browserSize2 = '_800';
}
if (screenW>1279) {
  browserSize = 1;
  browserSize2 = '';
}

function inline(src,name,height){
    //document.write('<img src="'+src+'" width="'+width*screenwidth+'">');
    document.write('<iframe src="'+src+'" name="'+name+'" width=100% height="'+height*browserSize+'px" frameborder=0></iframe>');
}

function open_popup(page,width,height,scroll,name) {
    top.window_handle = open(page,'pop','width='+width+',height='+height+',scrollbars='+scroll+',resizable=1,top=15,left=15');
    top.window_handle.focus();
    if (!top.window_handle.opener) top.window_handle.opener = self;
}

function imageborder(src,bsize,bcolor,picnm){
    //document.write('<img src="'+src+'" width="'+width*screenwidth+'">');
    document.write('<img src="'+src+browserSize2+'.jpg" border="'+bsize+'px" align='+align+' name="'+picnm+'">');
}

function image(src,width,align,picnm){
    //document.write('<img src="'+src+'" width="'+width*screenwidth+'">');
    document.write('<img src="'+src+browserSize2+'.jpg" border=0 align='+align+' name="'+picnm+'">');
}

function imagespacerh(height){
    //document.write('<img src="'+src+'" width="'+width*screenwidth+'">');
    document.write('<img src="./gfx.spacer.gif" border=0 width="1px" height="'+height*browserSize+'">');
}

function imagehot(src,width,align,picnm){
    //document.write('<img src="'+src+'" width="'+width*screenwidth+'">');
    document.write('<img src="'+src+browserSize2+'.jpg" ');
    document.write(' border=0 align='+align+' name="'+picnm+'" onMouseOver="document.'+picnm+'.src=\''+src+'_on'+browserSize2+'.jpg\'"');
    document.write(' onMouseOut="document.'+picnm+'.src=\''+src+browserSize2+'.jpg\'" >');
}

function imagemap(src, mapname){
    //document.write('<img src="'+src+'" width="'+width*screenwidth+'">');
    document.write('<img src="'+src+browserSize2+'.jpg" border=0 USEMAP="'+mapname+browserSize2+'">');
}


