// BEST BUYS 2010

// 1 - GOT only 1 promo | 2 - GOT many promos | 0 - NO promo --

var promos 		= 1; 
var latestpromo = "bb24()";
var tabs 		= ""; 		//dont edit this

//if need tabs ------------------------------------------------

constructTab("a_discover", "Flavors of the World");
constructTab("a_laurent", "Laurent Perrier");

//Linkages ----------------------------------------------------

function loadcont(obj)
{
	switch(obj)
	{
		case "a_discover"	: bb24(); break;
		case "a_laurent"	: bb25(); break;
	}
	scrolto('div_bbcontent#01');
}

//Contents ---------------------------------------------------



//Discover the flavors of the World
function bb24(obj) {
	
var TN =
"<br/><table border='0' width='96%' align='center' class='promobox'>"+

"<tr><td><br/><h2>&nbsp;&nbsp; April - May 2010 </h2></td></tr>"+
"<tr><td valign='top' align='center'>"+

"<img src='discover/discover_header.jpg'><br/><br/>"+
"<img src='discover/1_01.jpg'><br/>"+
"<img src='discover/1_02.jpg'><br/>"+
"<img src='discover/1_03.jpg'><br/>"+
"<img src='discover/1_04.jpg'><br/>"+
"<img src='discover/1_05.jpg'><br/>"+
"<img src='discover/1_06.jpg'><br/>"+
"<img src='discover/1_07.jpg'><br/>"+
"<img src='discover/1_08.jpg'><br/>"+
"<img src='discover/1_09.jpg'><br/>"+
"<img src='discover/1_10.jpg'><br/><br/>"+
"<div align='center'><b>*MHD reserves the right to substitute prizes with similar value. Terms &amp; Conditions apply.</b></div><br/><br/>"+
"</td></tr>"+

"</tr><tr><td align='right'>"+
"<a href='javascript:void(0);' class='quicklink' onclick=\"scrolto('a_top');\">| back to top |</a></td></tr></table>";
	
	//document.getElementById(obj).innerHTML = "<font class=f2>" + TN + "</font>";
	document.getElementById("div_bbcontent#01").innerHTML  = "<font class=f2>" + TN + "</font>";
	
}


//Laurent Perrier
function bb25(obj) {
	
var TN =
"<br/><table border='0' width='96%' align='center' class='promobox'>"+

"<tr><td valign='top'><h2> Exclusive Specials : An Extrodinary Champagne since 1812</h2><br/>"+

"<p><b class='festive_txt'>Laurent Perrier brut L-P Non Vintage</b> is now available in all TWG outlets in sizes <b class='festive_txt'>75CL and 1.5L</b>! For those who are not familiar with the brand, Laurent-Perrier is the World’s largest family-owned Champagne house. This all time favorite champagne is adorned with an extraordinary, one-of-a-kind, black and white photograph of a tulip by famed photographer, Jean-Baptiste Huynh.</p>"+

"<p>The reason why Huynh chose a tulip is to visually illustrate the style and character of Laurent-Perrier Brut L-P – <b class='festive_txt'>crisp and elegant with a strong underlying structure and a silky smooth mouth-feel.</b> Hence, Huynh photographed with additional images of nature to represent the entire L-P portfolio, which will debut in the fall in year 2005. </p>"+

"<p>Champagne is the traditional holiday beverage of France, where it is customary to keep a bottle chilled at all times where one must always be prepared for any impromptu visits! From holiday parties to intimate celebrations, or simply for well-stocked home refrigerators, this year’s charming Laurent-Perrier Brut L-P is the perfect way to always be prepared for a fête. Grab yours today!</p>"+

"<br/><div align='center'><span style='border:2px #930 dotted; width:400px;'><img src='http://www.thewinegallery.com.sg/bestbuy/laurent/adv.jpg' width='400' alt='' border='0'/></span></div><br/>"+

"<h4 align='center'>NOW AVAILABLE @ ALL TWG OUTLETS IN 75CL & 1.5L!</h4>"+

"<div align='center'><ul><li>75CL now selling @ $65.00 (Save $19.00)</li><li>1.5L now selling @ $130.00 (Save $8.00)</li></ul></div>"+


"</tr><tr><td align='right'>"+
"<a href='javascript:void(0);' class='quicklink' onclick=\"scrolto('a_top');\">| back to top |</a></td></tr></table>";
	
	//document.getElementById(obj).innerHTML = "<font class=f2>" + TN + "</font>";
	document.getElementById("div_bbcontent#01").innerHTML  = "<font class=f2>" + TN + "</font>";
	
}



//----------------------------------------------------------------------------------------------------------------------------


//PROMOTION NAME
function bb26(obj) {
	
var TN =
"<br/><table border='0' width='96%' align='center' class='promobox'>"+

"<tr><td valign='top'><h2> heading </h2><br/>"+
"<img src='xmas/xmas_promo_web.jpg'><br/></td></tr>"+

"</tr><tr><td align='right'>"+
"<a href='javascript:void(0);' class='quicklink' onclick=\"scrolto('a_top');\">| back to top |</a></td></tr></table>";
	
	//document.getElementById(obj).innerHTML = "<font class=f2>" + TN + "</font>";
	document.getElementById("div_bbcontent#01").innerHTML  = "<font class=f2>" + TN + "</font>";
	
}



//DO NOT EDIT OR DELETE FROM HERE


function constructTab(a_link, title){
	tabs += "<span><a nohref class='quicklink' onclick='loadcont(\" "+a_link+" \");'>"+ title +"</a></span> | ";
}

function loadBBcontents() {
	
	if(promos==0) noPromo();
	
	else if(promos==2){
		document.getElementById("div_quicklink").innerHTML = "&nbsp;" + tabs + "<br/><br/>";
		eval(latestpromo);
	}
	
	else eval(latestpromo);	
}

function noPromo() {		
	document.getElementById('div_bbcontent#01').innerHTML = 
	"<br/><br/><br/> &nbsp;&nbsp;&nbsp;> There are no promotions currently. Join our mailing list to get the latest updates.";
}

function startload(obj)
{
	var TN =
	"<br/><table border='0' width='96%' align='center' style='border: 1px solid #000000; padding: 5px 5px 5px 5px'>"+
	
	"<tr><td valign='top'>loading contents..</td></tr><tr><td align='right'>"+
	"<a href='javascript:void(0);' class='quicklink' onclick=\"scrolto('a_top');\">| back to top |</a></td></tr></table>";
	
	document.getElementById(obj).innerHTML += "<font class=f2>" + TN + "</font>";
}

onerror=handleErr
function handleErr(msg,url,l)
{
	txt ="RunTime Error!\n\n";
	txt+="Error: " + msg + "\n";
	txt+="URL: " + url + "\n";
	txt+="Line: " + l + "\n\n";
	txt+="Click OK to continue.\n\n";
	alert(txt); return true;
}