var newWin = null;
var ie = document.all ? 1 : 0
var ns = document.layers ? 1 : 0
doc = "document.all."; sty = ".style"
var initialize = 0
var Ex, Ey, topColor, subColor, ContentInfo
Ex = "event.x";
Ey = "event.y";

function SA(artistName,linkOffset,sort)
{
window.location = "musicSelectPage.jsp?sc=0&co=byartist&artistName=" + artistName + "&lo=" + linkOffset + "&so=" + sort;
}
function SID(id,linkOffset,sort)
{
window.location = "musicSelectPage.jsp?sc=0&co=byID&id=" + id + "&lo=" + linkOffset + "&so=" + sort;
}
function search()
{
window.focus();
window.location = "musicSelectPage.jsp?sc=0&co=search&searchText=" + document.form1.searchText.value;
return false;
}
function quickCommentCD(title)
{
var windowParams = "width=400,height=185,resizable=no,scrollbars=no,left=400,top=300";
var zoomUrl = "http://www.lanka.info/feedBack/quickCommentsCD.html?" + title + " or generally about Sinhala CDs at Kapruka";
newWin = window.open(zoomUrl,"Popup",windowParams);
}
function showFAQ()
{
var windowParams = "width=680,height=600,resizable=yes,scrollbars=yes";
var zoomUrl = "http://www.lanka.info/shops/musicStore/cdCommonQestions.htm";
newWin = window.open(zoomUrl,"Popup",windowParams);
}
function loadImage( image , winWidth, winHeight)
{
if (newWin) 
{
if (newWin.closed == false) newWin.focus();
}
var windowParams = "dependent=yes,width=" + winWidth + ",height=" + winHeight + ",resizable=no" ;	
var zoomUrl = "http://www.lanka.info/shops/utils/cdZoomDisplay.jsp?imageLink="+image;
newWin = window.open(zoomUrl,"winname",windowParams);
}
function showFAQ()
{
var windowParams = "width=680,height=600,resizable=yes,scrollbars=yes";
var zoomUrl = "http://www.lanka.info/shops/musicStore/cdCommonQestions.htm";
newWin = window.open(zoomUrl,"Popup",windowParams);
}
function renderShippingRates()
{
document.write('<table width="82%" border="0" CELLSPACING=5 ALIGN="CENTER">');
document.write('<tr><td height="10" width="32%"> <table width="100" border="0" align="center" cellpadding="0" cellspacing="0">');
document.write('<tr><td><img src="http://www.lanka.info/images/ratesBar.gif" width="171" height="19"></td></tr></table>');
document.write('<table class=tinyr width="171" height="10" border="1" align="center" cellpadding="4" cellspacing="0" bordercolor="#006699"><tr> ');
document.write('<td height="10"><b> Shipping and Handling <br>Charges to USA/Canada.</b><br><br>One CD &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;= US$1.50<br>Two CDs &nbsp;&nbsp;= US$2.99<br>Three CDs = US$4.50<br>Four CDs&nbsp;&nbsp;&nbsp;= US$5.10<br>Six CDs&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;= US$7.80<br>7-10 CDs&nbsp;&nbsp;&nbsp;= US$10.00-U$14.00<br>&#149;<a class=ex href="http://www.lanka.info/contactUs/cdWorldRates.html">Other Countries.<br></a></td></tr></table></td>');
document.write('<td height="10" width="68%" valign="middle"><font class=tinyr>These Songs and CDs are cultural products of Sri Lanka. They are results of talent and hard work of lankan artists. There are many web sites which sell pirated copies and MP3s of these songs for cheaper prices. <b>CDs listed in Kapruka are by original artists and producers.</b> We are authorized distributors for Singlanka and other major producers of Sri lanka. ');
document.write('<br><br>At Kapruka, you can shop with confidence. We use the latest encryption technology, digital certificates, secure commerce servers, and authentication to ensure that your personal information is secure online. We never store your credit card information. They are discarded after the transaction. You may goto <a class=ex href="http://www.lanka.info/contactUs/orderStatus.jsp">Order Status</a> page or call our office locations to inquire about your orders. U.S.A Central Office: +1-859-215-0159. Colombo Office: +1-94-12823336</font> </td>');
document.write('</tr></table>');
}
function renderMiddleBar()
{
document.write('<table class="kaprukaOnlineShopBody" style="border-bottom-width:0px;" cellpadding="0" cellspacing="0" border="0">');
document.write('<tr><td width="123" bgcolor="316CA6" height="16">&nbsp;</td><td width="*" bgcolor="FFFFFF" height="16"> ');
document.write('<table class=mediumb width="100%" cellpadding="0" cellspacing="0" border="0"><tr> ');
document.write('<td width="1%" bgcolor="316CA6" height="14" valign="top"> ');
document.write('<div align="right"><img src="http://www.lanka.info/images/TopCurve.gif" width="36" height="23"></div></td>');
document.write('<td width="*" height="14" align="center" bgcolor="99CCFF">&nbsp;</td>');
document.write('<td width="20%" bgcolor="#99CC99" height="14"><img src="http://www.lanka.info/images/TopRightG.gif" width="30" height="23" align="absmiddle">Sinhala&nbsp;CDs</td>');
document.write('</tr></table></td></tr></table>');
}
function MoveToolTip(layerName, FromTop, FromLeft, e)
{
eval(doc + layerName + sty + ".top = "  + (eval(FromTop) + document.body.scrollTop));
eval(doc + layerName + sty + ".left = " + (eval(FromLeft) + 15));
}
function ReplaceContent(layerName)
{
document.all[layerName].innerHTML = ContentInfo;
}
function a(){initialize=1}
function deActivate(){initialize=0}
function herathtip(e)
{
if(initialize){
MoveToolTip("ToolTip", Ey, Ex, e)
eval(doc + "ToolTip" + sty + ".visibility = 'visible'")
}
else
{
MoveToolTip("ToolTip", 0, 0)
eval(doc + "ToolTip" + sty + ".visibility = 'hidden'")
}
}
function shoppingCartGuide()
{
var windowParams = "width=620,height=640,resizable=yes,scrollbars=yes";
var zoomUrl = "http://www.lanka.info/help/shoppingCartGuide.html";
newWin = window.open(zoomUrl,"winname",windowParams);
}






