// JavaScript Document
// **************************************************************
// Author : Jayesh Sharma
// This script originally made by Jayesh Sharma
// **************************************************************
function style1(v)
{
document.getElementById(v).style.cursor="pointer";
var objDiv = document.getElementById("div1");
objDiv.scrollLeft = objDiv.scrollWidth;
}
function style2(v1)
{
document.getElementById(v1).style.cursor="pointer";
var objDiv = document.getElementById("div1");
objDiv.scrollRight = objDiv.scrollWidth;
}

var waktu=0;
function leftScroll(){
isi.scrollBy(-10,0);waktu=setTimeout('leftScroll()',60);
}
function rightScroll(){
isi.scrollBy(10,0);waktu=setTimeout('rightScroll()',60);
}
function stopScroll() {
clearTimeout(waktu);
}

function dotNetApps(tid)
{
var allTags=document.getElementsByTagName('a');
for(var i=0;i<allTags.length;i++)
{
if(allTags.item(i).style.fontWeight="bold")
{
allTags.item(i).style.fontWeight="normal";
}
}
if(tid != '')
{
document.getElementById(tid).style.fontWeight="bold";
}
document.getElementById('divDesc').innerHTML="";
checkDivs();
}


defaultStep=5
step=defaultStep
timeoutValue=2

function scrollDivDown(id){
document.getElementById(id).scrollTop+=step
timerDown=setTimeout("scrollDivDown('"+id+"')",timeoutValue)
}

function scrollDivUp(id){
document.getElementById(id).scrollTop-=step
timerUp=setTimeout("scrollDivUp('"+id+"')",timeoutValue)
}
function scrollDivRight(id){
	
document.getElementById(id).scrollLeft+=step

timerRight=setTimeout("scrollDivRight('"+id+"')",timeoutValue)
}

function scrollDivLeft(id){
document.getElementById(id).scrollLeft-=step

timerLeft=setTimeout("scrollDivLeft('"+id+"')",timeoutValue)
}

function resetDiv(id)
{
document.getElementById(id).scrollLeft = 0;
}

// *** D E F I N E V A R I A B L E S ***
// PUT YOUR CONTENT FILE
var filecontent = "Thumbnails.html"; // put your content file
//if(hu != "")
//{
//filecontent = fName;
//}
// SCROLLER OUTER BORDER IN PIXEL
var scrollborder = "0px";
var scrollbordercolor = "#CCCCCC";
// SCROLLBOX SIZE IN PIXEL:[999]px OR PERSENTAGE:[1-100]%
var scrollwidth = "80%";
var scrollheight = "100px";
// FILE NAVIGATION IMAGES (left & right) ATTRIBUTES
var imgleft = "left.gif";
var imgright = "right.gif";
var imgwidth = "100";
var imgheight = "100";

// *** S T A R T S C R I P T ***

function boxanak(){
var boxwidth=
document.writeln('<iframe name="isi" id="frame1" align="middle" src="'+filecontent+'" ');
document.writeln('width=505px height="'+scrollheight+'" style="border:none;" Marginwidth=0 Marginheight=0 ');
document.writeln('Hspace=0 Vspace=0 Frameborder=0 Scrolling=No></iframe>');
}
function playscroll(){
document.writeln('<table border=0 cellspacing=0 cellpadding=0');
document.writeln('style="border:'+scrollborder+' solid '+scrollbordercolor+'; width:'+scrollwidth+' ;height:'+scrollheight+' ">');
document.writeln('<tr><td width="'+imgwidth+'" valign=top></td>');
document.writeln('<td valign=top>');
boxanak();
document.writeln('</td>');
document.writeln('</tr></table>');
}
function normalFont()
{
var allTags=document.getElementsByTagName('a');
//alert(allTags.length);
for(var i=0;i<allTags.length;i++)
{
if(allTags.item(i).style.fontWeight="bold")
{
allTags.item(i).style.fontWeight="normal";
}
}
checkDivs();
}
function checkDivs()
{
if((document.getElementById('divDesc').innerHTML)=="")
{
document.getElementById('uparrow').style.visibility="hidden";
document.getElementById('downarrow').style.visibility="hidden";
}
else
{
document.getElementById('uparrow').style.visibility="visible";
document.getElementById('downarrow').style.visibility="visible";
}
if((document.getElementById('divScroll').innerHTML)=="")
{
document.getElementById('imgstart').style.visibility="hidden";
document.getElementById('imgLast').style.visibility="hidden";
}
else
{
document.getElementById('imgstart').style.visibility="visible";
document.getElementById('imgLast').style.visibility="visible";
}
}
//function resetDiv()
//{
//document.getElementById('mid').scrollLeft = 0;
//}
function resetDescDiv()
{
document.getElementById('divDesc').scrollTop = 0;
}

