<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs
     title="My CRT - Favorite FLV Videos"
     title_url="http://sangear.googlepages.com/"
     description="Play a Collection of your Favorite Videos and Flash SWF, Flash FLV Movies, Use the URL in Embed Code."
     height="335" width="353"
     directory_title="My CRT - Favorite FLV Videos"
     author="Anantha Narayan"
     author_location="Bangalore, India"
     author_affiliation="SAN Gear"
     screenshot="http://hosting.gmodules.com/ig/gadgets/file/115620494432743575267/mycrt.jpg"
     thumbnail="http://hosting.gmodules.com/ig/gadgets/file/115620494432743575267/mycrt-tn.jpg"
     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="Video-00 URL"/>
<UserPref name="sit_0" display_name="Video-00 Title"/>
<UserPref name="siu_1" display_name="Video-01 URL"/>
<UserPref name="sit_1" display_name="Video-01 Title"/>
<UserPref name="siu_2" display_name="Video-02 URL"/>
<UserPref name="sit_2" display_name="Video-02 Title"/>
<UserPref name="siu_3" display_name="Video-03 URL"/>
<UserPref name="sit_3" display_name="Video-03 Title"/>
<UserPref name="siu_4" display_name="Video-04 URL"/>
<UserPref name="sit_4" display_name="Video-04 Title"/>
<UserPref name="siu_5" display_name="Video-05 URL"/>
<UserPref name="sit_5" display_name="Video-05 Title"/>
<UserPref name="siu_6" display_name="Video-06 URL"/>
<UserPref name="sit_6" display_name="Video-06 Title"/>
<UserPref name="siu_7" display_name="Video-07 URL"/>
<UserPref name="sit_7" display_name="Video-07 Title"/>
<UserPref name="siu_8" display_name="Video-08 URL"/>
<UserPref name="sit_8" display_name="Video-08 Title"/>
<UserPref name="siu_9" display_name="Video-09 URL"/>
<UserPref name="sit_9" display_name="Video-09 Title"/>
<UserPref name="siu_10" display_name="Video-10 URL"/>
<UserPref name="sit_10" display_name="Video-10 Title"/>
<UserPref name="siu_11" display_name="Video-11 URL"/>
<UserPref name="sit_11" display_name="Video-11 Title"/>
<UserPref name="siu_12" display_name="Video-12 URL"/>
<UserPref name="sit_12" display_name="Video-12 Title"/>
<UserPref name="siu_13" display_name="Video-13 URL"/>
<UserPref name="sit_13" display_name="Video-13 Title"/>
<UserPref name="siu_14" display_name="Video-14 URL"/>
<UserPref name="sit_14" display_name="Video-14 Title"/>
<UserPref name="siu_15" display_name="Video-15 URL"/>
<UserPref name="sit_15" display_name="Video-15 Title"/>
<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 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 myflv1 ="<embed src='";
var myflv2 ="' type='application/x-shockwave-flash' wmode='transparent' width='305' height='257'></embed>";
//  
var site_list=new Array();
site_list[0] = "http://www.youtube.com/v/kEveOBzncFk&rel=1";
site_list[1] = "http://www.youtube.com/v/PHT15h5t228&rel=1";
site_list[2] = "http://www.youtube.com/v/MhZDXET_bs8&rel=1";
site_list[3] = "http://www.youtube.com/v/9iHIGgjJpM8&rel=1";
site_list[4] = "http://www.youtube.com/v/sMhb14jkjtE&rel=1";
site_list[5] = "http://www.youtube.com/v/pUniT1_bDAM&rel=1";
//
var site_name=new Array();
site_name[0] = "Magic Eye Vacuum Valve Tube";
site_name[1] = "Operating a Thumbwheel Switch";
site_name[2] = "Steam Engine Locomotive Train";
site_name[3] = "Audio Music Jukebox Gadget";
site_name[4] = "Alarm Clock Gadget Instructions";
site_name[5] = "Animation Box or PNG TV";
//
var site_no=0;
var play_live=0;
var path_str;
var name_str;
//
//
function get_sets(){  
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 play_sites(){
get_sets();
if(play_live==0){
play_live=1;
document.images.play_img.src =   stop_btn.src;
linktext[0]= site_name[site_no];
show_text(0,'page_now');
linktext[1]= myflv1 + site_list[site_no] + myflv2;
show_text(1,'tube_now');  
}
else{
play_live=0;
document.images.play_img.src =   play_btn.src;
show_text(2,'page_now');
show_text(3,'tube_now');  
}
show_sno();
}
//
function play_now(){
get_sets();
play_live=0;
document.images.play_img.src =   play_btn.src;
linktext[0]= site_name[site_no];
show_text(0,'page_now');
linktext[1] = "<br/><br/>Press Play to Start<br/><br/><b>" + site_name[site_no] + "</b>";
show_text(1,'tube_now'); 
show_sno();  
}
//
function prev_sites(){
if (site_no>0){site_no--;}
play_now();  
}
//
function next_sites(){
if (site_no < 15 && site_list[site_no+1]){site_no++;}
play_now();
}
//
// Online Help Start
//adapted from Link Description script- www.dynamicdrive.com
var linktext=new Array()
linktext[0]=""
linktext[1]=""
linktext[2]="My CRT <a href='http://sangear.googlepages.com/my-crt' target='_blank'>Help</a>"
linktext[3]="<br/><br/>Search Videos<br/><br/><a href='http://video.google.com/' target='_blank'>Google Video</a><br/><br/>Press Play to Start"
//
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="";
//
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");
}
//
//
//End of the ScreenPlay
//
</script>
<div class="sandbox">
<div class="display_set">
<img align="middle" name="sno2" src="http://hosting.gmodules.com/ig/gadgets/file/115620494432743575267/0.png"><img align="middle" name="sno1" 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">My CRT <a href="http://sangear.googlepages.com/my-crt" target='_blank'>Help</a></span></div>
<div id="tube_bar"><span id="tube_now"><br/><br/> 
Settings of this Gadget<br/><br/>URL of the FLV Flash Movie and Titles for 15 Videos.<br/><br/>   
In <a href="http://www.youtube.com/" target="_blank">YouTube</a> use the URL in the embed code.<br/><br/>
Search Videos<br/><br/><a href="http://video.google.com/" target="_blank">Google Video</a><br/>
</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 4px 0px 4px;
	padding: 0px 0px 0px 0px;
}


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

a:hover {
	text-decoration: none;
	color: #FDFCA7;
	font-weight: bold;
	font-size: 11px;
}

#tube_now a,#tube_now a:link,#tube_now a:active,#tube_now a:visited {
	text-decoration: none;
	color: #3D70C1;
	font-size: 12px;
}

#tube_now a:hover {
	text-decoration: none;
	color: #FF0084;
	font-size: 12px;
}  
      
.sandbox{
	background-image: url(http://hosting.gmodules.com/ig/gadgets/file/115620494432743575267/crt-tube.png);
	position: relative;
	left: 0;
	top: 0;
	height:335px;
	width:353px;
	z-index: 10;
	background-color: transparent;
}
.back_set{
	margin: 0px 0px 0px 0px;
	padding: 0px 0px 0px 0px;
	position: absolute;
	left: 24px;
	top: 29px;
	height:257px;
	width:306px;
        z-index: 1;
        background-image: url(http://hosting.gmodules.com/ig/gadgets/file/115620494432743575267/bluback.jpg);
}
.credits{
	position: absolute;
	left: 265px;
	top: 300px;
	z-index: 400;
	height: 11px;
	width: 70px;
	font-size: 10px;
	font-weight: bold;
	letter-spacing: 1px;
}
.control_set{
	margin: 0px 0px 0px 0px;
	padding: 1px 1px 1px 1px;
	position: absolute;
	left: 60px;
	top: 290px;
	z-index: 200;
	height: 22px;
	width: 110px;
        background-color: transparent;
}
.display_set{
	margin: 0px 0px 0px 0px;
	padding: 0px 0px 0px 0px;
	position: absolute;
	border: 1px solid #9AA9CC;
	left: 200px;
	top: 290px;
	z-index: 200;
	height:23px;
	width:50px;
	text-align: center;
        background-color: #000000;
}
#site_bar{
	margin: 0px 0px 0px 0px;
	padding: 0px 0px 0px 0px;
	position: relative;
	left: 20px;
	top: 2px;
	z-index: 200;
	height:20px;
	width:310px;
	color: #FFFFFF;
	font-size: 10px;
	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: #FFFFFF;
	font-size: 10px;
	font-weight: bold;
	font-family: Verdana,Arial,Helvetica,sans-serif;
} 
#tube_bar{
	margin: 0px 0px 0px 0px;
	padding: 0px 0px 0px 0px;
	position: relative;
	left: 24px;
	top: 9px;
	z-index: 200;
	height:256px;
	width:306px;
	color: #50697D;
	font-size: 12px;
	text-align: center;
	font-family: Verdana,Arial,Helvetica,sans-serif;
}
#tube_now{
	margin: 0px 0px 0px 0px;
	padding: 0px 0px 0px 0px;
        z-index: 200;
	position: relative;
	color: #50697D;
	font-size: 12px;
	text-align: center;
	font-family: Verdana,Arial,Helvetica,sans-serif;
}   
</style>
]]></Content>
</Module>





