if (document.images)
{

phone1= new Image(271,230);
phone2= new Image(271,230);
phone3= new Image(271,230);
phone4= new Image(271,230);
phone5= new Image(271,230);
phone6= new Image(271,230);

plan1= new Image(271,230);
plan2= new Image(271,230);
plan3= new Image(271,230);
plan4= new Image(271,230);
plan5= new Image(271,230);
plan6= new Image(271,230);

phone1.src = "http://www.libertywireless.com/media/promomotoq1.jpg";
//phone2.src = "http://www.libertywireless.com/media/promolglx150.jpg";
phone3.src = "http://www.libertywireless.com/media/motoqu.jpg";
phone4.src = "http://www.libertywireless.com/media/motov323i.jpg";
//phone5.src = "http://www.libertywireless.com/media/byod.jpg";
phone6.src = "http://www.libertywireless.com/media/promolglx160.jpg";

plan1.src = "http://www.libertywireless.com/media/promoplan_50.jpg";
//plan2.src = "http://www.libertywireless.com/media/promoplan_20.jpg";
plan3.src = "http://www.libertywireless.com/media/promoplan_0.jpg";
plan4.src = "http://www.libertywireless.com/media/promoplan_20.jpg";
//plan5.src = "http://www.libertywireless.com/media/byod_plan.jpg";
plan6.src = "http://www.libertywireless.com/media/promoplan_20.jpg";
}

function showPhone(product_id)
{
if (product_id == 234)
{
	pimg=document.getElementById('phone_img');
	pimg.src = phone1.src;
	plan_drop = document.getElementById('plans');
	plan_drop.value = 236;
	pimg2=document.getElementById('img2');
	pimg2.src = plan1.src;
	pdetail = document.getElementById('phone_details');
	pdetail.href = "qDetails.htm";
	pldetail = document.getElementById('plan_details');
	pldetail.href = "28daysDetails.htm";
	zipdetail = document.getElementById('lblzip');
	zipdetail.innerText = "Zip";
	chng1detail = document.getElementById('chng1');
	chng1detail.innerText = "Offer is valid only on new activation.";
	chng2detail = document.getElementById('chng2');
	chng2detail.innerText = "Offer is valid only on new activation.";
}

if (product_id == 235)
{
	pimg=document.getElementById('phone_img');
	pimg.src = phone2.src;
	plan_drop = document.getElementById('plans');
	plan_drop.value = 2;
	pimg2=document.getElementById('img2');
	pimg2.src = plan2.src;
	pdetail = document.getElementById('phone_details');
	pdetail.href = "lx150Details.htm";
	pldetail = document.getElementById('plan_details');
	pldetail.href = "planDetails.htm";
	zipdetail = document.getElementById('lblzip');
	zipdetail.innerText = "Zip";
	chng1detail = document.getElementById('chng1');
	chng1detail.innerText = "Offer is valid only on new activation.";
	chng2detail = document.getElementById('chng2');
	chng2detail.innerText = "Offer is valid only on new activation.";
}
if (product_id == 238)
{
	pimg=document.getElementById('phone_img');
	pimg.src = phone4.src;
	plan_drop = document.getElementById('plans');
	plan_drop.value = 2;
	pimg2=document.getElementById('img2');
	pimg2.src = plan4.src;
	pdetail = document.getElementById('phone_details');
	pdetail.href = "V323iDetails.htm";
	pldetail = document.getElementById('plan_details');
	pldetail.href = "planDetails.htm";
	zipdetail = document.getElementById('lblzip');
	zipdetail.innerText = "Zip";
	chng1detail = document.getElementById('chng1');
	chng1detail.innerText = "Offer is valid only on new activation.";
	chng2detail = document.getElementById('chng2');
	chng2detail.innerText = "Offer is valid only on new activation.";
}
if (product_id == 239)
{
	pimg=document.getElementById('phone_img');
	pimg.src = phone5.src;
	plan_drop = document.getElementById('plans');
	plan_drop.value = 240;
	pimg2=document.getElementById('img2');
	pimg2.src = plan5.src;
	pdetail = document.getElementById('phone_details');
	pdetail.href = "byodplanDetails.htm";
	pldetail = document.getElementById('plan_details');
	pldetail.href = "byodplanDetails.htm";
	zipdetail = document.getElementById('lblzip');
	zipdetail.innerText = "Zip";
	chng1detail = document.getElementById('chng1');
	chng1detail.innerText = "";
	chng2detail = document.getElementById('chng2');
	chng2detail.innerText = "";
}
if (product_id == 241)
{
	pimg=document.getElementById('phone_img');
	pimg.src = phone6.src;
	plan_drop = document.getElementById('plans');
	plan_drop.value = 2;
	pimg2=document.getElementById('img2');
	pimg2.src = plan6.src;
	pdetail = document.getElementById('phone_details');
	pdetail.href = "lglx160Details.htm";
	pldetail = document.getElementById('plan_details');
	pldetail.href = "planDetails.htm";
	zipdetail = document.getElementById('lblzip');
	zipdetail.innerText = "Zip";
	chng1detail = document.getElementById('chng1');
	chng1detail.innerText = "Offer is valid only on new activation.";
	chng2detail = document.getElementById('chng2');
	chng2detail.innerText = "Offer is valid only on new activation.";
}
}

function showPlan(product_id)
{
if (product_id == 236)
{
	pimg=document.getElementById('img2');
	pimg.src = plan1.src;
	phone_drop = document.getElementById('phones');
	phone_drop.value = 234;
	pimg2=document.getElementById('phone_img');
	pimg2.src = phone1.src;
	pdetail = document.getElementById('phone_details');
	pdetail.href = "qDetails.htm";
	pldetail = document.getElementById('plan_details');
	pldetail.href = "28daysDetails.htm";
	zipdetail = document.getElementById('lblzip');
	zipdetail.innerText = "Zip";
	chng1detail = document.getElementById('chng1');
	chng1detail.innerText = "Offer is valid only on new activation.";
	chng2detail = document.getElementById('chng2');
	chng2detail.innerText = "Offer is valid only on new activation.";
}

if (product_id == 2)
{
	pimg=document.getElementById('img2');
	pimg.src = plan4.src;
	phone_drop = document.getElementById('phones');
	phone_drop.value = 238;
	pimg2=document.getElementById('phone_img');
	pimg2.src = phone4.src;
	pdetail = document.getElementById('phone_details');
	pdetail.href = "V323iDetails.htm";
	pldetail = document.getElementById('plan_details');
	pldetail.href = "planDetails.htm";
	zipdetail = document.getElementById('lblzip');
	zipdetail.innerText = "Zip";
	chng1detail = document.getElementById('chng1');
	chng1detail.innerText = "Offer is valid only on new activation.";
	chng2detail = document.getElementById('chng2');
	chng2detail.innerText = "Offer is valid only on new activation.";
}
if (product_id == 237)
{
	pimg=document.getElementById('img2');
	pimg.src = plan3.src;
	phone_drop = document.getElementById('phones');
	phone_drop.value = 234;
	pimg2=document.getElementById('phone_img');
	pimg2.src = phone3.src;
	pdetail = document.getElementById('phone_details');
	pdetail.href = "qDetails.htm";
	pldetail = document.getElementById('plan_details');
	pldetail.href = "UpgradePlanDetails.htm";
	zipdetail = document.getElementById('lblzip');
	zipdetail.innerText = "Your Liberty Wireless Number";
	chng1detail = document.getElementById('chng1');
	chng1detail.innerText = "Offer valid only with exisiting active subscription.";
	chng2detail = document.getElementById('chng2');
	chng2detail.innerText = "Offer valid only with exisiting active subscription.";
}
if (product_id == 240)
{
	pimg=document.getElementById('img2');
	pimg.src = plan5.src;
	phone_drop = document.getElementById('phones');
	phone_drop.value = 239;
	pimg2=document.getElementById('phone_img');
	pimg2.src = phone5.src;
	pdetail = document.getElementById('phone_details');
	pdetail.href = "byodplanDetails.htm";
	pldetail = document.getElementById('plan_details');
	pldetail.href = "byodplanDetails.htm";
	zipdetail = document.getElementById('lblzip');
	zipdetail.innerText = "Zip";
	chng1detail = document.getElementById('chng1');
	chng1detail.innerText = "";
	chng2detail = document.getElementById('chng2');
	chng2detail.innerText = "";
}

}