// JavaScript Document
function pop(src) {
	if (!window.brWin) {
        brWin = window.open(src,'brWin','status=no,scrollbars=yes,menu=no,location=no,resizable=yes,width=620,height=350,top=0,left=0');
    }
    else {        
        if (!brWin .closed) {          
			brWin .close();
        }
        brWin = window.open(src,'brWin','status=no,scrollbars=yes,menu=no,location=no,resizable=yes,width=620,height=350,top=0,left=0');
    }
	brWin.focus();	
}
function launch (id,un,pw)
{
var src;
var w;
var h;
	switch(id) 
	{
		case 1:
			src = 'http://demos.s4netquest.com/huntington/index.asp';
			w  = 800;
			h = 630;
			break;		
		case 2:
			src = 'http://s4dev.com/bmw_dealer/whos_who_departments_intro.html';						
			w  = 820;
			h = 600;
			break;					
		/*
		case 3:
			src = 'http://s4dev.com/viocdev/demo_login.asp';
			w  = 820;
			h = 650;
			break;					
		*/
		case 3:
			src = 'http://s4dev.com/viocdev/content/superpro/oil_demo/index.html';
			w  = 820;
			h = 650;
			break;					
		case 4:
			src = 'http://s4dev.com/bankone/login.asp?a=dologin&UserName='+un+'&Password='+pw;
			w  = 820;
			h = 600;
			break;					
		case 5:
			src = 'http://s4dev.com/PNC_VT_DEMO/?'
			w  = 820;
			h = 610;
			break;					
		case 6:
			src = 'http://biometlearningsystemdemo.s4netquest.com/splash.asp?un='+un+'&pw='+pw;
			w  = 1034;
			h = 700;
			break;								
		case 10:
			src = 'http://s4dev.com/huntington/product/index.html'
			w  = 1034;
			h = 710;
			break;				
		case 11:
			src = 'http://s4dev.com/huntington/ice/index.html'
			w  = 1034;
			h = 710;
			break;				
		case 12:
			src = 'http://s4dev.com/huntington/systems_dev/index.html'
			w  = 1034;
			h = 710;
			break;
		case 13:		
			src = 'http://s4dev.com/hoag/shell.htm'
			w  = 1034;
			h = 700;
			break;
		case 14:
			src = 'http://yum.s4dev.com/'
			w  = 1034;
			h = 700;
			break;	
		case 19:
			src = 'http://s4dev.com/textron_demo/demo.html'
			w  = 1035;
			h = 664;
			break;	
		/*
		case 20:
			src = 'http://ebi.s4dev.com/login.asp?d=1&ln='+un+'&pw='+pw;
			w  = 1034;
			h = 700;
			break;				
		*/
		case 20: //EBI
			src = 'http://ebi.s4dev.com/content/custom/dev/demo.html';
			w  = 1030;
			h = 680;
			break;			
		case 30: //NATIONWIDE
			//src = 'http://s4dev.com/nationwide/html/index.html';
			src = 'http://nationwidebrand.s4dev.com/module.html';
			w  = 1024;
			h = 768;
			break;
		case 40: //Medical Demo
			src = 'http://medical.s4dev.com/content/custom/dev/index.html';
			w = 1030;
			h = 680;
	}

	if (!window.demoWin) {
        demoWin = window.open(src,'demoWin','status=no,scrollbars=yes,menu=no,location=no,resizable=yes,width='+w+',height='+h+',top=0,left=0');
    }
    else {        
        if (!demoWin .closed) {          
			demoWin .close();
        }
		demoWin = window.open(src,'demoWin','status=no,scrollbars=yes,menu=no,location=no,resizable=yes,width='+w+',height='+h+',top=0,left=0');
    }
	demoWin.focus();
}