  
  if(window.innerWidth<1280 || window.innerHeight<700){
		document.write("<style>div.scroller { width:970px!important;  } div.scroller div.section { width:970px!important; } html, body { font-size:11px!important; letter-spacing:-0.3px!important; }</style>");
		var imgWidth=300;
		var arrWidth=30;
	}else{
		document.write("<style>div.scroller { width:1200px!important;  } div.scroller div.section { width:1240px!important; } html, body { font-size:13px!important; letter-spacing:-0.5px!important; }</style>");
		var imgWidth=425;
		var arrWidth=40;
	}

function change(id, image) {
document.getElementById(id).src=image;
} 

var Popup = {
  open: function(options)
  {
    this.options = {
      url: '#',
      width: 500,
      height: 400,
      name:"_blank",
      location:"no",
      menubar:"no",
      toolbar:"no",
      status:"no",
      scrollbars:"yes",
      resizable:"yes",
      left:"30",
      top:"160",
      normal:false
    }
    Object.extend(this.options, options || {});

    if (this.options.normal){
        this.options.menubar = "yes";
        this.options.status = "yes";
        this.options.toolbar = "yes";
        this.options.location = "yes";
    }

    this.options.width = this.options.width < screen.availWidth?this.options.width:screen.availWidth;
    this.options.height=this.options.height < screen.availHeight?this.options.height:screen.availHeight;
    var openoptions = 'width='+this.options.width+',height='+this.options.height+',location='+this.options.location+',menubar='+this.options.menubar+',toolbar='+this.options.toolbar+',scrollbars='+this.options.scrollbars+',resizable='+this.options.resizable+',status='+this.options.status
    if (this.options.top!="")openoptions+=",top="+this.options.top;
    if (this.options.left!="")openoptions+=",left="+this.options.left;
    window.open(this.options.url, this.options.name,openoptions );
    return false;
  }
}



function getWidth() {

	for (i = 1; i<=3; i++) {
		var product = 'product-ph-' + i;
		document.getElementById(product).getElementsByTagName('img')[0].width= imgWidth;
	}

	document.getElementById('arr-left').width= arrWidth;
	document.getElementById('arr-right').width= arrWidth;

}



