// JScript File
function testmovie_DoFSCommand(command, args)
{ 
	javascript:MM_timelinePlay('Timeline1');
}

function testmovi_DoFSCommand(command, args)
{ 
	javascript:MM_timelinePlay('Timeline2');
}

function land(ref, target)
{
    lowtarget=target.toLowerCase();
    if (lowtarget=="_self") { window.location=loc; }
    else if (lowtarget=="_top") { top.location=loc; }
    else if (lowtarget=="_blank") { window.open(loc); }
    else if (lowtarget=="_parent") { parent.location=loc; }
    else { parent.frames[target].location=loc; }
}

function jump(menu)
{
    ref=menu.choice.options[menu.choice.selectedIndex].value;
    splitc=ref.lastIndexOf("*");
    target="";
    if (splitc!=-1)
    {
        loc=ref.substring(0,splitc);
        target=ref.substring(splitc+1,1000);
    }
    else { loc=ref; target="_self"; }
    if (ref != "") { land(loc,target); }
}

function setHomePage()
{
    var agt=navigator.userAgent.toLowerCase();
    var is_major = parseInt(navigator.appVersion);
    var is_minor = parseFloat(navigator.appVersion);
    var is_aol7  = (agt.indexOf("aol 7") != -1);
    var is_aol8  = (agt.indexOf("aol 8") != -1);
    var is_newerAOL = (is_aol7 || is_aol8);

    var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));

    var is_nav4up = (is_nav && (is_major >= 4));
    var is_nav6up = (is_nav && (is_major >= 5));

    var is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));

    var is_ie3 = (is_ie && (is_major < 4));
    var is_ie4 = (is_ie && (is_major == 4) && (agt.indexOf("msie 5")==-1) );
    var is_ie4 = (is_ie && (is_major == 4) && (agt.indexOf("msie 5")==-1) && (agt.indexOf("msie 6")==-1));

    var is_ie5up  = (is_ie && !is_ie3 && !is_ie4);
    var is_win   = ( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) );

    var is_win31 = ((agt.indexOf("windows 3.1")!=-1) || (agt.indexOf("win16")!=-1) || (agt.indexOf("windows 16-bit")!=-1));

    var is_mac = (agt.indexOf("mac")!=-1);

    if (is_win && is_ie4)
    { 
        top.location.href = "browsers/frameset.pc.ie4.exclude.html";
    }
    else if (is_mac && is_ie)
    {
        top.location.href = "browsers/frameset.mac.ie.exclude.html";
    }
    else if (is_newerAOL) { top.location.href = "browsers/frameset.aol.exclude.html"; }
    else if (is_win && is_ie5up)
    {
        HomePage.style.behavior='url(#default#homepage)';
        HomePage.setHomePage('http://www.cnn.com/');
        parent.close();
	}
    else if (is_win && is_nav6up)
    { 
        top.location.href = "browsers/frameset.ns6.exclude.html";
    }
    else if (is_win && is_nav4up)
    {
        top.location.href = "browsers/frameset.pc.ns.exclude.html";
    }
    else if (is_mac && is_nav4up)
    { 
        top.location.href = "browsers/frameset.mac.ns.mo.exclude.html";
    }
    else
    { 
        top.location.href = "browsers/frameset.other.exclude.html";
    }
}

function popUp(URL) {
    day = new Date();
    id = day.getTime();
    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=530,height=282');");
}


function archivepopUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=350,height=400');");
}


function twtpopUp(URL) {
    day = new Date();
    id = day.getTime();
    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=670,height=800');");
}

function travelalbumpopUp(URL) {
    day = new Date();
    id = day.getTime();
    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=624,height=460');");
}

function win_popup(URL, w, h)
{
    if ((w == 0) || (h == 0))
	{
		w = screen.width * 0.75;
		h = screen.height * 0.75;
	}
		
	var leftCorner = (screen.width) ? (screen.width - w)/2 : 0;
	var topCorner = (screen.height) ? (screen.height - h)/2 : 0;
	
	var win = window.open(URL,'_popup_win','width=' + w + ',height=' + h + ',top=' + topCorner + ',left=' + leftCorner + ',toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1');
	win.focus();
}
	
function login()
{
	win_popup('http://www.designtaxi.com/member/login.jsp', 300, 250);
}
	
function info(member)
{
	win_popup('http://www.designtaxi.com/member/info.jsp?member=' + member, 300, 250);
}

function mail(member)
{
	win_popup('http://www.designtaxi.com/member/mail.jsp?member=' + member, 300, 250);
}
	
function subscribe()
{
	win_popup('http://www.designtaxi.com/subscribe.jsp', 300, 250);
}
	
function editprofile()
{
	win_popup('http://www.designtaxi.com/member/editprofile.jsp', 300, 250);
}
	
function noportfolio()
{
	win_popup('http://www.designtaxi.com/member/noportfolio.jsp', 300, 250);
}

