
<!--******** open Print windows *************** -->






function ctrlPrint(){
  print();
}


<!-- Catalog Extra Pages -->


var extraPag = null    // use this when referring to pop-up window
var winCont = 0
var imag = "extraPag"

function openIn(pImageName,imWidth,imHeight,clos,fromwhere) {
	imag = "extraPag" + winCont++ //unique name for each pop-up window
  closeextraPag() 
// specify window parameters document.body.clientHeight window.innerWidth

//var wit=380;
//var hit=550;
//var extraPag = window.open("", "imag","width="+wit+",height="+hit+",status,scrollbars,resizable,left=0,top=0");


//	function expandingWindow(website) {
var heightspeed = 2; // vertical scrolling speed (higher = slower)
var widthspeed = 7;  // horizontal scrolling speed (higher = slower)
var leftdist = 10;    // distance to left edge of window
var topdist = 10;     // distance to top edge of window
var prbutheight= 60; // print button height
	
if (document.all) {
//for full screen opening use...
//var winwidth = window.screen.availWidth - leftdist;
//var winheight = window.screen.availHeight - topdist;

//Screen size
var windowidth = window.screen.availWidth - leftdist;
var windoheight = window.screen.availHeight - topdist;

// for the window open to size of image use...
var winwidth = imWidth;
var winheight = imHeight;

// if the image is bigtger than the screen window make the window the width of the screen
if (imWidth >= windowidth ){
var winwidth = windowidth;
}
//var sizer = window.open("","","left=" + leftdist + ",top=" + topdist + ",width=1,height=1,scrollbars=yes");
var extraPag = window.open("", "imag","left=" + leftdist + ",top=" + topdist + ",width=1,height=1,scrollbars=yes");


	 extraPag.document.write('<html><head><title>MINERVOIS</title>');
	 extraPag.document.write('<style type="text/css"><!-- ');
	 extraPag.document.write('body{scrollbar-base-color: #FFFFFF; scrollbar-shadow-color: #dddddd; scrollbar-highlight-color: #eeeeee; scrollbar-3dlight-color: #aaaaaa;scrollbar-darkshadow-color: #aaaaaa; scrollbar-track-color: #dddddd;  scrollbar-arrow-color: #aaaaaa;background-color:#FFFFFF; } ');
	 extraPag.document.write(' //--></style>');
	 extraPag.document.write('</head>');	
   extraPag.document.write('<BODY BGCOLOR=#FFFFFF TEXT=#FFFFCC LINK=#33CCFF VLINK=#FF6666>');
   extraPag.document.write('<center>');
   extraPag.document.write('<img src="'+fromwhere+'vas/catelog/gallery/larp/' + pImageName + '" alt="' + pImageName + '"  galleryimg="no" border="1"><p>');
   extraPag.document.write('</center>');
	 extraPag.document.write('<table cellpadding="0" cellspacing="0" width="100%" border="0"><tr><td valign="top">');
   extraPag.document.write('&nbsp;<a href="#" onClick="self.close()"><img src=\"'+fromwhere+'images/imPageClose'+clos+'.jpg\" name=\"but1\" border=\"0\"></a>&nbsp;'); 
   extraPag.document.write('<a href=\"#\" onClick=\"javascript:window.print()\"><img src=\"'+fromwhere+'images/imPageprint'+clos+'.jpg\" name=\"but2\" border=\"0\"></a>\n'); 
	 extraPag.document.write('</td><td valign=top align=right>');
	 extraPag.document.write('<img src=\"'+fromwhere+'images/imPagelogo021.jpg\" name=\"but0\" border=\"0\">');
   extraPag.document.write('<p></font></td></tr></table></body></html>');
   extraPag.document.close();	

		//if (navigator.appName.substring(0,8) == "Netscape")  		extraPag.focus();
extraPag.focus();

for (sizeheight = 1; sizeheight < winheight; sizeheight += heightspeed) {
extraPag.resizeTo("1", sizeheight);
}
for (sizewidth = 1; sizewidth < winwidth; sizewidth += widthspeed) {
extraPag.resizeTo(sizewidth, sizeheight);
}
}
extraPag.focus();
		


}



function closeextraPag(){    // close pop-up window if it is open 

  if (navigator.appName != "Microsoft Internet Explorer" 
      || parseInt(navigator.appVersion) >=4) //do not close if early IE
    if(extraPag != null) if(!extraPag.closed) extraPag.close() 
  }



	
	
	
	
	
	
	// If not Internet Explorer
	
	<!-- Catalog Extra Pages -->


var extra = null    // use this when referring to pop-up window
var winCon = 0
var imagt = "extra"

function openPictWind(pImageNam,imWidt,imHeigh,clo,fromwhere) {

// specify window parameters document.body.clientHeight window.innerWidth

var wite=imWidt;
var hite=imHeigh;

	imag = "extra" + winCon++ //unique name for each pop-up window
  closeextra() 

var extra = window.open("", "imagt","width="+wite+",height="+hite+",status,scrollbars,resizable,left=0,top=0");
   extra.document.write('<html><head><title>MINERVOIS</title>');
	 extra.document.write('<style type="text/css"><!-- ');
	 extra.document.write('body{scrollbar-base-color: #ffffff; scrollbar-shadow-color: #dddddd; scrollbar-highlight-color: #eeeeee; scrollbar-3dlight-color: #aaaaaa;scrollbar-darkshadow-color: #aaaaaa; scrollbar-track-color: #dddddd;  scrollbar-arrow-color: #aaaaaa;background-color:#ffffff; } ');
	 extra.document.write(' //--></style>');
	 extra.document.write('</head>');	
   extra.document.write('<BODY BGCOLOR=#000000 TEXT=#FFFFCC LINK=#33CCFF VLINK=#FF6666>');
   extra.document.write('<center>');
   extra.document.write('<img src="'+fromwhere+'vas/catelog/gallery/larp/' + pImageNam + '" alt="' + pImageNam + '" galleryimg="no" border=\"0\"><p>');
   extra.document.write('');
	 extra.document.write('<table cellpadding="0" cellspacing="0" width="90%" border="0"><tr><td valign="top">');
   extra.document.write('&nbsp;<a href="#" onClick="self.close()"><img src=\"'+fromwhere+'images/imPageClose'+clo+'.jpg\" name=\"but5\" border=\"0\"></a>&nbsp;'); 
   extra.document.write('<a href=\"javascript:window.print()\"><img src=\"'+fromwhere+'images/imPagePrint'+clo+'.jpg\" name=\"but6\" border=\"0\"></a>\n'); 
	 extra.document.write('</td><td valign=top align=right>');
	 extra.document.write('<img src=\"'+fromwhere+'images/imPagelogo021.jpg\" border=\"0\">');
   extra.document.write('<p></font></td></tr></table></body></html>');
   extra.document.close();	
		if (navigator.appName.substring(0,8) == "Netscape")  
		extra.focus();
}



function closeextra(){    // close pop-up window if it is open 
  if (navigator.appName != "Microsoft Internet Explorer" 
      || parseInt(navigator.appVersion) >=4) //do not close if early IE
    if(extra != null) if(!extra.closed) extra.close() 
  }

	
	





function openPrintWine(print,windowWine,itemcode,idWine,url,shopid,largeimage,lango){
  if(! window.focus)
    return;

  
  var printWine=window.open(""+ url +"vas/vinsDetails/inprintVins.php?v="+ itemcode +"&shopid="+ shopid +"&vinid="+ idWine +"&largepic="+ largeimage +"&lango="+ lango +"",windowWine,'left=10,top=20,height=580,width=620,dependent=yes,scrollbars=yes');
  printWine.focus();

 
}





function openPortTarif(print,windowFrais,itemcode,quantit,url,tot,postcode,lango){
  if(! window.focus)
    return;
  //alert(quantit);
	var printPort=window.open(""+ url +"vas/tools/caltransport.php?v="+ itemcode +"&tot="+ tot +"&quanti="+ quantit +"&posc="+ postcode+"&lango="+ lango +"",windowFrais,'left=10,top=20,height=340,width=600,dependent=yes,scrollbars=yes');
  
	//var printPort=window.open(""+ url +"vas/vinsDetails/inprintVins.php?v="+ itemcode +"&shopid="+ shopid +"&vinid="+ idWine +"&largepic="+ largeimage +"&lango="+ lango +"",windowFrais,'left=10,top=20,height=580,width=620,dependent=yes,scrollbars=yes');
  printPort.focus();
}









function openPrintPage(print,windowPrint,typeofPrint,weekset,topi,url){
  if(! window.focus)
    return;

  
  var printWin=window.open(""+ url +"main/inprint.php?chprint="+ typeofPrint +"&weektoset="+ weekset +"&topic="+ topi +"",windowPrint,'height=580,width=620,dependent=yes,scrollbars=yes');
  printWin.focus();
 // print.target=windowPrint;
}

function openPrintPageadmin(print,windowPrint,typeofPrint,weekset,topi){
  if(! window.focus)
    return;
  
  var printWin=window.open("../../main/inprint.php?chprint="+ typeofPrint +"&weektoset="+ weekset +"&topic="+ topi +"",windowPrint,'height=580,width=620,dependent=yes,scrollbars=yes');
  printWin.focus();
 // print.target=windowPrint;
}


