
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function popup(url, name, width, height)
{
settings=
"toolbar=no,location=no,directories=no,"+
"status=no,menubar=no,scrollbars=no,"+
"resizable=no,width="+width+",height="+height;

//MyNewWindow=window.open("http://posiflexusa.local/"+url,name,settings);
MyNewWindow=window.open(url,name,settings);
}

function formAction(v1,v2,v3,v4)
{
var x=document.forms.form1.year;
var y=document.forms.form1.month;
var z=document.forms.form1.day;
var w=document.forms.form1.endDay;
x.selectedIndex=v1;
y.selectedIndex=v2;
z.selectedIndex=v3;
w.selectedIndex=v4;
}


var r=0;
var g=0;
var b=0;
var ind=1;
var sw=0;
function fade() {
	        if(document.getElementById("abc").firstChild.nodeName =="A") 
            document.getElementById("abc").firstChild.style.color= 'rgb('+r+','+g+','+b+')';
			else 
				 document.getElementById("abc").style.color= 'rgb('+r+','+g+','+b+')';
		     if (r <=215 && sw==0)
				{
                        r=r+1;
                        g=g+1;
                        b=b+1;
                        setTimeout("fade()",30);
            } 
			else if ( r>0&&sw==1)
			{			r=r-1;
                        g=g-1;
                        b=b-1;
						 setTimeout("fade()",30);
			}
			else {
				      setTimeout("changeContent1()",1000);
            }
}

function changeContent1() {
            if(ind == content.length) ind=0;
			if(sw==0) {
				sw=1;
				r=215;
				g=215;
				b=215;
				
				}
			else {
				sw=0;
				r=0;
				b=0;
				g=0;
				
				}
			 document.getElementById("abc").innerHTML=content[ind++];
			  if(document.getElementById("abc").firstChild.nodeName =="A") 
				document.getElementById("abc").firstChild.style.color= 'rgb('+r+','+g+','+b+')';
			else 
				 document.getElementById("abc").style.color= 'rgb('+r+','+g+','+b+')';
			
			 setTimeout("fade()",30);

}



//for driver pages and utilites page
function resubmitDriver(v)
{
  document.forms.driverForm.action="driver.php?flag="+v;
  document.forms.driverForm.submit();
}

function resubmitUtility(v)
{
  document.forms.driverForm.action="utilities.php?flag="+v;
  document.forms.driverForm.submit();
}

function resubmitDoc(v)
{
  document.forms.driverForm.action="documents.php?flag="+v;
  document.forms.driverForm.submit();
}

function resubmitFaq(v)
{
  document.forms.driverForm.action="faqs.php?flag="+v;
  document.forms.driverForm.submit();
}

//map functions
var imgSel=-1;
var num=19;
function divOver(v)
{
	document.getElementById(v).style.backgroundColor="#FF0000";
}

function divOut(v)
{
	if (imgSel!=v)
	document.getElementById(v).style.backgroundColor="#000066";
}

function divClick(v,id)
{
	imgSel=v;
	for(i=1;i<=num;i++)
		document.getElementById("Layer"+i).style.backgroundColor="#000066"
		
	document.getElementById(v).style.backgroundColor="#FF0000";
	document.getElementById("country").innerHTML=mapLine.maps[id].country;
	document.getElementById("coName").innerHTML=mapLine.maps[id].coName;
	document.getElementById("address").innerHTML=mapLine.maps[id].address;
	document.getElementById("tel").innerHTML=mapLine.maps[id].tel;
	document.getElementById("fax").innerHTML=mapLine.maps[id].fax;
	document.getElementById("email").innerHTML="email:&nbsp;<a href='mailto:"+mapLine.maps[id].email+"' >"+mapLine.maps[id].email+"</a>";
	if(mapLine.maps[id].web.length!=0 )
		document.getElementById("web").innerHTML="web site:&nbsp;<a href=' http://"+mapLine.maps[id].web+" ' target='_blank' >"+mapLine.maps[id].web+"</a>";
	else	
		document.getElementById("web").innerHTML="";
	
}

	function mapImg(id,country,coName,address,tel,fax,email,web )
	{
		this.id=id;
		this.country=country;
		this.coName=coName;
		this.address=address;
		this.tel=tel;
		this.fax=fax;
		this.email=email;
		this.web=web;
	}

	function mapArray()
	{
		this.maps= new Array();
		this.add = function(id,country,coName,address,tel,fax,email,web) {
		this.maps[id] = new mapImg(id,country,coName,address,tel,fax,email,web);
	//	alert(id);
		}
 
	 }

var mapLine=new mapArray();
mapLine.add(0,'USA','POSIFLEX Business Machines, Inc. ','30689 Huntwood Avenue, Hayward, CA 94544, USA','TEL :+1-510-429-7097','FAX :+1-510-475-0982','Sales@posiflexusa.com','www.posiflexusa.com');
//mapLine.add(1,'United Kingdom','POSIFLEX International Ltd. ','Saddleworth Business Centre, Huddersfield Road, DELPH, OLDHAM OL3 5DF, United Kingdom','TEL :+44(0) 1457 877720','FAX :+44(0) 1457 877730','office@posiflexuk.com','www.posiflexuk.com');
mapLine.add(1,'United Kingdom','POSIFLEX International Ltd. ','Unit 13a, Halliwell Business Parks, Rossini Street, Halliwell, Bolton, BL1 8DL, United Kingdom','TEL :++44(0)1204 848 848','FAX :+44 (0)1204 842 535','info@posiflexuk.com','www.posiflexuk.com');
mapLine.add(2,'Netherlands','POSIFLEX Europa B.V. ','Willem Barentszweg 6 C 5928 LM Venlo The Netherlands','TEL :+31(0)77 464 0990','FAX :+31(0)77 464 0995','sean@posiflex-eu.nl','www.posiflex-eu.nl');
//mapLine.add(3,'Germany','Positive Solution Gmbh','Alfred Nobel Strasse 9 50259 Pulheim ','TEL :0049 2234 43270','FAX :0049 2234 432779','info@positive-solution.com','www.positive-solution.de');
mapLine.add(3,'Germany','Posiflex GmbH','Sachsstrasse 28,  D - 50259 Pulheim ','TEL :+49 (0) 2234 4327 0','FAX :+49 (0) 2234 4327 79','info@posiflex.de','www.posiflex.de');
mapLine.add(4,'Croatia','Please contact POSIFLEX Incorporated for more information', '6., Wu-Chuan Rd., Wu-Ku, Taipei Hsien, Taiwan','TEL :+886-2-2299-1599','FAX :+886-2-2299-1808','posiflex@posiflex.com.tw','www.posiflex.com.tw');
mapLine.add(5,'India','Please contact POSIFLEX Incorporated for more information', '6., Wu-Chuan Rd., Wu-Ku, Taipei Hsien, Taiwan','TEL :+886-2-2299-1599','FAX :+886-2-2299-1808','posiflex@posiflex.com.tw','www.posiflex.com.tw');
//mapLine.add(4,'Croatia','KUZMIC LTD.','1.Mazuranica 20, HR-40000 Cakovec Coratia ','TEL :+385-40-395-315','FAX :+385-40-395-454','kuzmic-pro@ck.tel.hr','www.kuzmic-pro.hr');
//mapLine.add(5,'India','Protocol Solution Pvt. Ltd. ','#627, 11th Main, HAL 2nd stage, Bangalore-560 008 Karnataka India','TEL :91 80 527 3586/ 528 7154','FAX :91 80 525 0459 / 525 1043','dinesh@protocolbarcode.com','www.protocolsolution.com/');
mapLine.add(6, 'Taiwan','Posiflex Incorporated ','6., Wu-Chuan Rd., Wu-Ku, Taipei Hsien, Taiwan','TEL :+886-2-2299-1599','FAX :+886-2-2299-1808','posiflex@posiflex.com.tw','www.posiflex.com.tw');
mapLine.add(7,'Janpan','Please contact POSIFLEX Incorporated for more information', '6., Wu-Chuan Rd., Wu-Ku, Taipei Hsien, Taiwan','TEL :+886-2-2299-1599','FAX :+886-2-2299-1808','posiflex@posiflex.com.tw','www.posiflex.com.tw');
mapLine.add(8,'South Africa ','Please contact POSIFLEX Incorporated for more information', '6., Wu-Chuan Rd., Wu-Ku, Taipei Hsien, Taiwan','TEL :+886-2-2299-1599','FAX :+886-2-2299-1808','posiflex@posiflex.com.tw','www.posiflex.com.tw');
mapLine.add(9,'Australia','Please contact POSIFLEX Incorporated for more information', '6., Wu-Chuan Rd., Wu-Ku, Taipei Hsien, Taiwan','TEL :+886-2-2299-1599','FAX :+886-2-2299-1808','posiflex@posiflex.com.tw','www.posiflex.com.tw');
mapLine.add(10,'New Zealand ','Please contact POSIFLEX Incorporated for more information', '6., Wu-Chuan Rd., Wu-Ku, Taipei Hsien, Taiwan','TEL :+886-2-2299-1599','FAX :+886-2-2299-1808','posiflex@posiflex.com.tw','www.posiflex.com.tw');
mapLine.add(11,'Russia','Please contact POSIFLEX Incorporated for more information', '6., Wu-Chuan Rd., Wu-Ku, Taipei Hsien, Taiwan','TEL :+886-2-2299-1599','FAX :+886-2-2299-1808','posiflex@posiflex.com.tw','www.posiflex.com.tw');
mapLine.add(12,'Baltic Region','Please contact POSIFLEX Incorporated for more information', '6., Wu-Chuan Rd., Wu-Ku, Taipei Hsien, Taiwan','TEL :+886-2-2299-1599','FAX :+886-2-2299-1808','posiflex@posiflex.com.tw','www.posiflex.com.tw');
mapLine.add(13,'China','Please contact POSIFLEX Incorporated for more information', '6., Wu-Chuan Rd., Wu-Ku, Taipei Hsien, Taiwan','TEL :+886-2-2299-1599','FAX :+886-2-2299-1808','posiflex@posiflex.com.tw','www.posiflex.com.tw');
mapLine.add(14,'Czech','Please contact POSIFLEX Incorporated for more information', '6., Wu-Chuan Rd., Wu-Ku, Taipei Hsien, Taiwan','TEL :+886-2-2299-1599','FAX :+886-2-2299-1808','posiflex@posiflex.com.tw','www.posiflex.com.tw');
mapLine.add(15,'Indonesia','Please contact POSIFLEX Incorporated for more information', '6., Wu-Chuan Rd., Wu-Ku, Taipei Hsien, Taiwan','TEL :+886-2-2299-1599','FAX :+886-2-2299-1808','posiflex@posiflex.com.tw','www.posiflex.com.tw');
mapLine.add(16,'Korea','Please contact POSIFLEX Incorporated for more information', '6., Wu-Chuan Rd., Wu-Ku, Taipei Hsien, Taiwan','TEL :+886-2-2299-1599','FAX :+886-2-2299-1808','posiflex@posiflex.com.tw','www.posiflex.com.tw');
mapLine.add(17,'Malaysia','Please contact POSIFLEX Incorporated for more information', '6., Wu-Chuan Rd., Wu-Ku, Taipei Hsien, Taiwan','TEL :+886-2-2299-1599','FAX :+886-2-2299-1808','posiflex@posiflex.com.tw','www.posiflex.com.tw');
mapLine.add(18,'Spain','Please contact POSIFLEX Incorporated for more information', '6., Wu-Chuan Rd., Wu-Ku, Taipei Hsien, Taiwan','TEL :+886-2-2299-1599','FAX :+886-2-2299-1808','posiflex@posiflex.com.tw','www.posiflex.com.tw');
mapLine.add(19,'Bulgaria','Please contact POSIFLEX Incorporated for more information', '6., Wu-Chuan Rd., Wu-Ku, Taipei Hsien, Taiwan','TEL :+886-2-2299-1599','FAX :+886-2-2299-1808','posiflex@posiflex.com.tw','www.posiflex.com.tw');
mapLine.add(20,'Greece','Please contact POSIFLEX Incorporated for more information', '6., Wu-Chuan Rd., Wu-Ku, Taipei Hsien, Taiwan','TEL :+886-2-2299-1599','FAX :+886-2-2299-1808','posiflex@posiflex.com.tw','www.posiflex.com.tw');
mapLine.add(21,'Singapore','Please contact POSIFLEX Incorporated for more information', '6., Wu-Chuan Rd., Wu-Ku, Taipei Hsien, Taiwan','TEL :+886-2-2299-1599','FAX :+886-2-2299-1808','posiflex@posiflex.com.tw','www.posiflex.com.tw');
mapLine.add(22,'Saudi Arabia','Please contact POSIFLEX Incorporated for more information', '6., Wu-Chuan Rd., Wu-Ku, Taipei Hsien, Taiwan','TEL :+886-2-2299-1599','FAX :+886-2-2299-1808','posiflex@posiflex.com.tw','www.posiflex.com.tw');
mapLine.add(23,'Thailand','Please contact POSIFLEX Incorporated for more information', '6., Wu-Chuan Rd., Wu-Ku, Taipei Hsien, Taiwan','TEL :+886-2-2299-1599','FAX :+886-2-2299-1808','posiflex@posiflex.com.tw','www.posiflex.com.tw');
mapLine.add(24,'UAE','Please contact POSIFLEX Incorporated for more information', '6., Wu-Chuan Rd., Wu-Ku, Taipei Hsien, Taiwan','TEL :+886-2-2299-1599','FAX :+886-2-2299-1808','posiflex@posiflex.com.tw','www.posiflex.com.tw');
//mapLine.add(7,'Janpan','JAPAN SYSTEM PROJECT., LTD. ','4-2-19 NISHISHINJUKU SHINJUKU-KU, TOKYO, JAPAN 160-0023','TEL :03-3320-6992','FAX :03-5350-2623','pos@pcpos.co.jp','www.pcpos.co.jp');
//mapLine.add(8,'South Africa ','Pos International Pty. Ltd. ','Mustek Park, 332 15th Road Randjespark Midrand, Gauteng, South Africa','TEL :+27-11-314-3140','FAX :+27-11-314-3033','JarrickA@pos.co.za','www.posiflex.co.za');
//mapLine.add(9,'Australia','VANTEX Wholesale Distribution ','43-47Racecourse Road, North Melbourne, 3051, Victoria Australia','TEL :61-3-9326-6844','FAX :61-3-9320-8088','vantex@vantex.com.au','www.vantex.com.au');
//mapLine.add(10,'New Zealands ','Positech Wholesale Ltd ','Unit 2 No 1 Homersham Place, Russley 8004, Christchurch New Zealand','TEL :643-358 5812','FAX :643-358 0709','chrism@posiflex.co.nz','www.posiflex.co.nz');
//mapLine.add(11,'Russia','Posiflex Russia Trading Company ','Varshavskoe shosse, 46 Business Center, Office 305 Moscow, Russia, 115230','TEL :+7 (095) 424-73-73','FAX :N/A','com@posiflex.org','www.posiflex.org');
//mapLine.add(12,'Baltic Region','Posiflex Baltic Ltd. ','Kalvariju Str. 143 Vilnius 08221, Lithuania','TEL :+37052104539','FAX :+37065680831','posiflex@posiflex.lt','www.posiflex.lt');
//mapLine.add(13,'China','POSIFLEX Electronics Ltd  ','Jinyu Mansion No.129A, Xuanwumen Xidajie Xicheng District, Beijing, China P.C.:100031','TEL :+86-10-6641-0113/114','FAX:+86-10-6641-0115','posiflex@95777.com','');
//mapLine.add(14,'Czech','GastroData, s.r.o.  ','Hanusova 353/12, 140 00 PRAHA 4, Czech Republic','TEL :420 261 214 142','FAX :420 261 215 720','info@posiflex.cz','www.posiflex.cz');
//mapLine.add(15,'Indonesia','FLEXIPOS MITRA ABADI  ','Mega Grosir Cempaka Mas Ruko Block O No. 29 Jakarta Pusat - Indonesia','TEL :62-21-42888883 (hunting)','FAX :62-21-42900265','flexipos@bit.net.id','www.flexipos.biz');
//mapLine.add(16,'Korea','Shinsegae Internet & Commerce Ltd. ','197-12, Guro-Dong, Guro-Gu, Seoul, Korea','TEL :+ 82 2 3397 1191','FAX :+ 82 2 3397 1299','sunyang@shinsegae.com','www.shinsegae.com');
//mapLine.add(17,'Malaysia','DATASCAN (MALAYSIA) SDN BHD ','Level 1, Block B, Peremba SquareSaujana Resort, Seksyen U240150 Shah Alam, Malaysia','TEL :603-7623 7777','FAX :603-7622 1999','info@datascan.com.my','www.transight.com');
//mapLine.add(18,'Spain','Mustek S.L. ','Entenza, 202 08029 Barcelona, Spain','TEL :+3493-419-3246','FAX :+3493-321-0758','comercial@posiflex.es','www.posiflex.es');
//mapLine.add(19,'Bulgaria','Posiflex Bulgaria Ltd.','5-7 Vinica str. Office 4 District Geo Milev 1606 Sofia, Bulgaria','TEL :+359-2-971-6640','FAX :+359-2-971-6641','office@posiflexbg.com','http://www.posiflexbg.com');
//mapLine.add(20,'Greece','CPI SA','Rafailidou 1 & Agriniou 17778, Tavros, Greece','TEL :+30-210-4805810','FAX :+30 210-4805801','nkap@cpi.gr','www.cpi.gr');
//mapLine.add(21,'Singapore','Transight (S) Pte Ltd.','2 Alexandra Road Delta House #05-05 Singapore 159919','TEL :+65-6377-5660','FAX :+65-6278-8309','victorchee@transight.com.sg','www.transight.com');
//mapLine.add(22,'Saudi Arabia','3D Systems ','PO Box 295754 Riyadh-11351, Kingdom of Saudi Arabia','TEL :+966-1-464 5232','FAX :+966-1-464 5292','info@3d-sys.com','www.3D-sys.com');
//mapLine.add(23,'Thailand','e-Merchant Co., Ltd ','17th Floor, Central Tower Pinklao 7/129 Baromrajchonnee Road, Thailand','TEL :+662-884 9922','FAX :+662-884 9166','witchapun@e-merchant.co.th','www.e-merchant.co.th');
//mapLine.add(24,'UAE','Pixel Digital Systems LLC','Airport Road, P.O.Box 60827','TEL :+971 4 282 7205','FAX :+971 4 282 7206','pixel@emirates.net.ae','www.pixel-digital.com');
mapLine.add(25,'Mexico','POSIFLEX Business Machines, Inc. ','30689 Huntwood Avenue, Hayward, CA 94544, USA','TEL :+1-510-429-7097','FAX :+1-510-475-0982','Sales@posiflexusa.com','www.posiflexusa.com');
