<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs
     title="MultiMedia SiteShow Presentation"
     title_url="http://sangear.googlepages.com/"
     description="SlideShow of WebPages, Photos, Videos, PDF or Music, Set Slide Duration and Page or Media URL."
     height="100" width="225"
     directory_title="MultiMedia SiteShow Presentation"
     author="Anantha Narayan"
     author_location="Bangalore, India"
     author_affiliation="SAN Gear"
     screenshot="http://hosting.gmodules.com/ig/gadgets/file/115620494432743575267/site-show.png"
     thumbnail="http://hosting.gmodules.com/ig/gadgets/file/115620494432743575267/site-show-tn.png"
     scaling="false"
     scrolling="false"
     author_photo="http://hosting.gmodules.com/ig/gadgets/file/115620494432743575267/anantha-narayan.png"
     author_aboutme="Electronic Webmaster"
     author_link="http://sangear.googlepages.com/"
     author_quote="From SoulNet to InterNet"
     author_email="delabs@yahoo.com"/>
<UserPref name="siu_0" display_name="Site-00 URL"/>
<UserPref name="sit_0" display_name="Site-00 Title"/>
<UserPref name="siu_1" display_name="Site-01 URL"/>
<UserPref name="sit_1" display_name="Site-01 Title"/>
<UserPref name="siu_2" display_name="Site-02 URL"/>
<UserPref name="sit_2" display_name="Site-02 Title"/>
<UserPref name="siu_3" display_name="Site-03 URL"/>
<UserPref name="sit_3" display_name="Site-03 Title"/>
<UserPref name="siu_4" display_name="Site-04 URL"/>
<UserPref name="sit_4" display_name="Site-04 Title"/>
<UserPref name="siu_5" display_name="Site-05 URL"/>
<UserPref name="sit_5" display_name="Site-05 Title"/>
<UserPref name="siu_6" display_name="Site-06 URL"/>
<UserPref name="sit_6" display_name="Site-06 Title"/>
<UserPref name="siu_7" display_name="Site-07 URL"/>
<UserPref name="sit_7" display_name="Site-07 Title"/>
<UserPref name="siu_8" display_name="Site-08 URL"/>
<UserPref name="sit_8" display_name="Site-08 Title"/>
<UserPref name="siu_9" display_name="Site-09 URL"/>
<UserPref name="sit_9" display_name="Site-09 Title"/>
<UserPref name="siu_10" display_name="Site-10 URL"/>
<UserPref name="sit_10" display_name="Site-10 Title"/>
<UserPref name="siu_11" display_name="Site-11 URL"/>
<UserPref name="sit_11" display_name="Site-11 Title"/>
<UserPref name="siu_12" display_name="Site-12 URL"/>
<UserPref name="sit_12" display_name="Site-12 Title"/>
<UserPref name="siu_13" display_name="Site-13 URL"/>
<UserPref name="sit_13" display_name="Site-13 Title"/>
<UserPref name="siu_14" display_name="Site-14 URL"/>
<UserPref name="sit_14" display_name="Site-14 Title"/>
<UserPref name="siu_15" display_name="Site-15 URL"/>
<UserPref name="sit_15" display_name="Site-15 Title"/>
<UserPref name="ssdly_" display_name="Delay in Seconds" default_value="30" required="true"/>
<UserPref name="swsiz_"
     display_name="Size of Window"
     datatype="enum"
     required="true"
     default_value="1">
  <EnumValue value="1" display_value="Big"/>
  <EnumValue value="2" display_value="Medium"/>
  <EnumValue value="3" display_value="Small"/>
  <EnumValue value="4" display_value="Tiny"/>
</UserPref>
<Content type="html"><![CDATA[
<script type="text/javascript">
//Start ScreenPlay
var prefs = new _IG_Prefs(__MODULE_ID__);
var ghig_path = "http://hosting.gmodules.com/ig/gadgets/file/115620494432743575267/"
var delay_secs = prefs.getString("ssdly_");
var win_size =  prefs.getString("swsiz_");
//
var seg_0 = new Image();
seg_0.src = ghig_path + "0.png";
var seg_1 = new Image();
seg_1.src = ghig_path + "1.png";
var seg_2 = new Image();
seg_2.src = ghig_path + "2.png";
var seg_3 = new Image();
seg_3.src = ghig_path + "3.png";
var seg_4 = new Image();
seg_4.src = ghig_path + "4.png";
var seg_5 = new Image();
seg_5.src = ghig_path + "5.png";
var seg_6 = new Image();
seg_6.src = ghig_path + "6.png";
var seg_7 = new Image();
seg_7.src = ghig_path + "7.png";
var seg_8 = new Image();
seg_8.src = ghig_path + "8.png";
var seg_9 = new Image();
seg_9.src = ghig_path + "9.png";
//
var play_btn = new Image();
play_btn.src = ghig_path + "play.png";
var stop_btn = new Image();
stop_btn.src = ghig_path + "stop.png";
//
var site_list=new Array();
site_list[0] = "http://news.google.com/";
site_list[1] = "http://www.yahoo.com/";
site_list[2] = "http://www.gutenberg.net/";
site_list[3] = "http://wikipedia.org/";
site_list[4] = "http://www.tucows.com/";
site_list[5] = "http://www.snapfiles.com/";
//
var site_name=new Array();
site_name[0] = "Google News";
site_name[1] = "Yahoo!";
site_name[2] = "Gutenberg";
site_name[3] = "Wikipedia";
site_name[4] = "tucows";
site_name[5] = "SnapFiles";
//
var ss_win;
var win_wide;
var win_tall;
var win_set;
var delay_count = 0;
var site_no=0;
var play_live=0;
var site_clk;
var delay_slide;
var path_str;
var name_str;
//
function set_userp(){
delay_secs = parseInt(delay_secs);
if (delay_secs>30 ||delay_secs<999 ) {
delay_slide =delay_secs;
}
else{delay_slide=30;}
if(delay_slide < 30){delay_slide=30;}
if(delay_slide > 999){delay_slide=999;}
//
for (i = 0; i < 16; i++){
path_str = "prefs.getString('siu_" + i +"')";
name_str = "prefs.getString('sit_" + i +"')";
if(eval(path_str)){site_list[i] = eval(path_str);}
if(eval(name_str)){site_name[i] = eval(name_str);}
}
//
}
//
function opo_win(){
switch (win_size){
case "1":
win_wide = 800;
win_tall = 600;
break;
case "2":
win_wide = 600;
win_tall = 450;
break;
case "3":
win_wide = 400;
win_tall = 300;
break;
case "4":
win_wide = 300;
win_tall = 225;
break;
}
win_set = "width=" + win_wide + ",height=" + win_tall + ",top=50,left=200,scrollbars=1,resizable=0,status=0,menubar=0,toolbar=0,location=0,directories=0";
ss_win = window.open(site_list[site_no],"site_win", win_set);
ss_win.focus();
}
//
function play_sites(){
set_userp();
if(play_live==0){
play_live=1;
document.images.play_img.src =   stop_btn.src;
if (!ss_win || ss_win.closed){opo_win();}
ss_win.focus();
linktext[0]= site_name[site_no];
show_text(0,'page_now');
show_sno();
play_clock();
}
else{
play_live=0;
document.images.play_img.src =   play_btn.src;
clearTimeout(site_clk);
}
}
//
function play_clock(){
site_clk = window.setTimeout('play_back();',500);
}
function play_back(){
count_delay();
if (play_live==1){
site_clk = window.setTimeout('play_clock();',500);
}
}
//
function count_delay(){
if(delay_slide > delay_count){delay_count++;}
else{
delay_count=0;
next_sites();
}
show_dly();
}
//
function prev_sites(){
set_userp();
if (!ss_win || ss_win.closed){opo_win();}
ss_win.focus();
if (site_no>0){site_no--;}
ss_win.location = site_list[site_no];
linktext[0]= site_name[site_no];
show_text(0,'page_now');
show_sno();
}
//
function next_sites(){
set_userp();
if (!ss_win || ss_win.closed){opo_win();}
ss_win.focus();
if (site_no < 15 && site_list[site_no+1]){
site_no++;
ss_win.location = site_list[site_no];
linktext[0]= site_name[site_no];
show_text(0,'page_now');
}
else{
site_no=0;
play_live=0;
document.images.play_img.src = play_btn.src;
clearTimeout(site_clk);
if (ss_win || !ss_win.closed){ss_win.close();}
show_text(1,'page_now');
}
show_sno();
}
//
// Online Help Start
//adapted from Link Description script- www.dynamicdrive.com
var linktext=new Array()
linktext[0]=""
linktext[1]="SiteShow<br><a href='http://sangear.googlepages.com/siteshow' target='_blank'>Help</a>"
linktext[2]=""
linktext[3]=""
//
var ns6=document.getElementById&&!document.all
var ie=document.all

function show_text(thetext, whichdiv){
if (ie) eval("document.all."+whichdiv).innerHTML=linktext[thetext]
else if (ns6) document.getElementById(whichdiv).innerHTML=linktext[thetext]
}

function resetit(whichdiv){
if (ie) eval("document.all."+whichdiv).innerHTML=' '
else if (ns6) document.getElementById(whichdiv).innerHTML=' '
}
//  Online Help End
//
var site_str="";
var dly_str="";
//
function show_sno() {
if(site_no>9){site_str = "h"+ site_no;}
else{site_str = "h0"+ site_no;}
//
document.images.sno1.src = eval("seg_" + site_str.charAt(2) + ".src");
document.images.sno2.src = eval("seg_" + site_str.charAt(1) + ".src");
}
//
function show_dly() {
if(delay_count>9 && delay_count<100){dly_str = "h0"+ delay_count;}
else if(delay_count>99){dly_str = "h"+ delay_count;}
else{dly_str = "h00"+ delay_count;}
//
document.images.dsp1.src = eval("seg_" + dly_str.charAt(1) + ".src");
document.images.dsp2.src = eval("seg_" + dly_str.charAt(2) + ".src");
document.images.dsp3.src = eval("seg_" + dly_str.charAt(3) + ".src");
}
//
//End of the ScreenPlay
//
</script>
<div class="sandbox">
<div class="display_set">
<img align="left" name="sno2" src="http://hosting.gmodules.com/ig/gadgets/file/115620494432743575267/0.png"><img align="left" name="sno1" src="http://hosting.gmodules.com/ig/gadgets/file/115620494432743575267/0.png" ><img align="right" name="dsp3" src="http://hosting.gmodules.com/ig/gadgets/file/115620494432743575267/0.png"><img align="right" name="dsp2" src="http://hosting.gmodules.com/ig/gadgets/file/115620494432743575267/0.png" ><img align="right" name="dsp1" src="http://hosting.gmodules.com/ig/gadgets/file/115620494432743575267/0.png" >
</div>
<div class="control_set">
<img class="btn_img" alt="Prev" title="Prev" onclick="prev_sites();" src="http://hosting.gmodules.com/ig/gadgets/file/115620494432743575267/prev.png"><img alt="Play/Stop" title="Play/Stop" onclick="play_sites();" class="btn_img" name="play_img" src="http://hosting.gmodules.com/ig/gadgets/file/115620494432743575267/play.png" ><img alt="Next" title="Next" class="btn_img" onclick="next_sites();" src="http://hosting.gmodules.com/ig/gadgets/file/115620494432743575267/next.png" >
</div>
<div class="credits"><a target="_blank" href="http://www.geocities.com/delabs/">SAN Gear</a></div>
<div class="back_set"></div>
<div id="site_bar"><span id="page_now">SiteShow<br><a href="http://sangear.googlepages.com/siteshow" target='_blank'>Help</a></span></div>
</div>  
<style type="text/css">
font{
	color: #4B6E9B;
	font-size: 11px;
}
img {
	margin: 1px 1px 1px 1px;
	padding: 0px 0px 0px 0px;
}

.btn_img {
	margin: 0px 5px 0px 5px;
	padding: 0px 0px 0px 0px;
}


a:link,a:active,a:visited {
	text-decoration: none;
	color: #5C74CC;
	font-weight: bold;
	font-size: 11px;
}

a:hover {
	text-decoration: none;
	color: #000000;
	font-weight: bold;
	font-size: 11px;
}
.sandbox{
	background-image: url(http://hosting.gmodules.com/ig/gadgets/file/115620494432743575267/frame.png);
	position: relative;
	left: 0;
	top: 0;
	height:100px;
	width:210px;
	z-index: 10;
	background-color: transparent;
}
.back_set{
	margin: 0px 0px 0px 0px;
	padding: 0px 0px 0px 0px;
	position: absolute;
	left: 4px;
	top: 4px;
	height:92px;
	width:202px;
        z-index: 1;
        background-image: url(http://hosting.gmodules.com/ig/gadgets/file/115620494432743575267/back.jpg);
}
.credits{
	position: absolute;
	left: 145px;
	top: 78px;
	z-index: 400;
	height: 11px;
	width: 195px;
	font-size: 10px;
	font-weight: bold;
	letter-spacing: 1px;
}
.control_set{
	margin: 0px 0px 0px 0px;
	padding: 1px 1px 1px 1px;
	position: absolute;
	left: 25px;
	top: 65px;
	z-index: 200;
	height: 22px;
	width: 200px;
	background-color: transparent;
}
.display_set{
	margin: 0px 0px 0px 0px;
	padding: 0px 0px 0px 0px;
	position: absolute;
	border-bottom: 3px double #9AA9CC;
	left: 4px;
	top: 4px;
	z-index: 200;
	height:25px;
	width:201px;
	text-align: center;
	background-color: black;
}
#site_bar{
	margin: 0px 0px 0px 0px;
	padding: 0px 0px 0px 0px;
	position: relative;
	left: 5px;
	top: 35px;
	z-index: 200;
	height:30px;
	width:200px;
	color: #8482C6;
	font-size: 11px;
	text-align: center;
	font-weight: bold;
	font-family: Verdana,Arial,Helvetica,sans-serif;
}
#page_now{
	margin: 0px 0px 0px 0px;
	padding: 0px 0px 0px 0px;
        z-index: 200;
	position: relative;
	color: #8482C6;
	font-size: 11px;
	font-weight: bold;
	font-family: Verdana,Arial,Helvetica,sans-serif;
}  
</style>
]]></Content>
</Module>





