﻿function ShowHomeFlash() {swfobject.embedSWF("../Flash/banner_home.swf", "flashshow", "735", "255", "9.0.0", null, null, { wmode: "transparent" });}

function ShowLongDistanceFlash() 
{
    var flashvars ={
        txt1: "I Love Wednesday call \n Philippines 11 cent/min",
        txt2: "Happy Hour call China \n at 1 cent/min",
        signuplink: "../LongDistance/centchina.aspx"
    };
    
    swfobject.embedSWF("../Flash/banner.swf", "flashshow", "1024", "160", "9.0.0", null, flashvars, { wmode: "transparent" });
}

function ShowInternetFlash() 
{
    var flashvars ={
        txt1: "<b>Hign Speed Internet \n for only $29.95</b> \n (first 6 months)",
        txt2: "Bundle with homephone, same \n price  for more 6 motnhs - $49.95",
        signuplink: "../Default/signup.aspx"
    };
    
    swfobject.embedSWF("../Flash/banner.swf", "flashshow", "1024", "160", "9.0.0", null, flashvars, { wmode: "transparent" });
}

function ShowHomePhoneFlash() 
{
    var flashvars ={
        txt1: "Home phone with \n unlimited calls",
        txt2: "To USA and Canada \n only $19.95",
        signuplink: "../Default/signup.aspx"
    };
    
    swfobject.embedSWF("../Flash/banner.swf", "flashshow", "1024", "160", "9.0.0", null, flashvars, { wmode: "transparent" });
}

function ShowMobileFlash() 
{
    var flashvars ={
        txt1: "Get a $0 handset",
        txt2: "and enjoy free long distance",
        signuplink: "../Default/signup.aspx"
    };
    
    swfobject.embedSWF("../Flash/banner.swf", "flashshow", "1024", "160", "9.0.0", null, flashvars, { wmode: "transparent" });
}

function ShowCallingClubFlash() 
{
    var flashvars ={
        txt1: "No hidden and \n connection fee",
        txt2: "Only 1.8 cent/min",
        signuplink: "../Default/signup.aspx"
    };
    
    swfobject.embedSWF("../Flash/banner.swf", "flashshow", "1024", "160", "9.0.0", null, flashvars, { wmode: "transparent" });
}

function ShowConferencingFlash() 
{
    var flashvars ={
        txt1: "Up to 30 paticiparts \n or callers",
        txt2: "Unlimited number of 30 \n minutes conference calls",
        signuplink: "../Default/signup.aspx"
    };
    
    swfobject.embedSWF("../Flash/banner.swf", "flashshow", "1024", "160", "9.0.0", null, flashvars, { wmode: "transparent" });
}

function ShowELoadFlash() 
{
    var flashvars ={
        txt1: "Mag load na!",
        txt2: "load up your framily and friends \n cellphone in the Phillipines",
        signuplink: "../Default/signup.aspx"
    };
    
    swfobject.embedSWF("../Flash/banner.swf", "flashshow", "1024", "160", "9.0.0", null, flashvars, { wmode: "transparent" });
}

function ShowERemitFlash() 
{
    var flashvars ={
        txt1: "Mag-padala ng pera \n sa murang halaga",
        txt2: "Send money for cheaper \n cost as low as $6.95",
        signuplink: "../Default/signup.aspx"
    };
    
    swfobject.embedSWF("../Flash/banner.swf", "flashshow", "1024", "160", "9.0.0", null, flashvars, { wmode: "transparent" });
}

function ShowBillsPayFlash() 
{
    var flashvars ={
        txt1: "Electric or Phone Bills \n sa Phillipinas",
        txt2: "Walang problema sa pagbayad \n online with Times BillsPay",
        signuplink: "../Default/signup.aspx"
    };
    
    swfobject.embedSWF("../Flash/banner.swf", "flashshow", "1024", "160", "9.0.0", null, flashvars, { wmode: "transparent" });
}

function ShowTVFlash() 
{
    var flashvars ={
        txt1: "The exciting new way",
        txt2: "To customize your \n TV entertainment",
        signuplink: "../Default/signup.aspx"
    };
    
    swfobject.embedSWF("../Flash/banner.swf", "flashshow", "1024", "160", "9.0.0", null, flashvars, { wmode: "transparent" });
}


function ShowAgentFlash() { swfobject.embedSWF("../Flash/BecomeAgent.swf", "agentflash", "653", "207", "9.0.0", null, null, { wmode: "transparent" }); }
function ShowEnterWinFlash() { swfobject.embedSWF("../Flash/tv.swf", "tvflash", "550", "200", "9.0.0", null, null, { wmode: "transparent" }); }

function ShowHomeVideo(){

var params = {
allowFullScreen: "true",
image: "../Images/TVCdec19.JPG",
backcolor: "#ffffff",
screencolor: "#ffffff"
};

swfobject.embedSWF("http://player.longtailvideo.com/player4.6.swf?file=ad.flv&streamer=rtmp://69.90.198.87/oflaDemo&type=rtmp", "playerdiv", "294", "240", "9.0.0", null, params, { wmode: "transparent" });

}

function getPrint(print_area)
{
    //Creating new page
    var pp = window.open();
    //Adding HTML opening tag with <HEAD> … </HEAD> portion 
    pp.document.writeln('<HTML><HEAD><title>Print Preview</title>');
    pp.document.writeln('<LINK href=CSS/print.css type="text/css" rel="stylesheet" media="print">');
    pp.document.writeln('<base target="_self"></HEAD>');

    //Adding Body Tag
    pp.document.writeln('<body MS_POSITIONING="GridLayout" bottomMargin="0"');
    pp.document.writeln(' leftMargin="0" topMargin="0" rightMargin="0">');
    //Adding form Tag
    pp.document.writeln('<form method="post">');

    //Creating two buttons Print and Close within a HTML table
    pp.document.writeln('<TABLE width=100%><TR><TD></TD></TR><TR><TD align=right>');
    pp.document.writeln('<INPUT ID="PRINT" type="button" value="Print" ');
    pp.document.writeln('onclick="javascript:location.reload(true);window.print();">');
    pp.document.writeln('<INPUT ID="CLOSE" type="button" value="Close" onclick="window.close();">');
    pp.document.writeln('</TD></TR><TR><TD></TD></TR></TABLE>');

    //Writing print area of the calling page
    pp.document.writeln(document.getElementById(print_area).innerHTML);
    //Ending Tag of </form>, </body> and </HTML>
    pp.document.writeln('</form></body></HTML>'); 
}
