//############################### www.electronics-diy.com #####################################


//####################################################################
// open window
//####################################################################

//javascript:open_win('lg/FODK_blue1.htm', 840, 420);

function open_win(url,x,y) {
        flyout=window.open(url,"table","resizable=yes,scrollbars=no,width=" +x+ ",height=" +y+ ",top=5,left=10")
}


function open_win2(url) {
        flyout=window.open(url,"table","resizable=yes,scrollbars=yes,width=500,height=800,top=5,left=10")
}

function open_win3(url) {
        flyout=window.open(url,"table","resizable=yes,scrollbars=yes,width=850,height=360,top=5,left=10")
}


//####################################################################
// bookmark
//####################################################################

function bookmark(){

var url='http://www.art-pipes.com'
var title='Art-Pipes.com - Quality, Hand Crafted Glass Pipes'

window.external.AddFavorite(url,title);
}


//####################################################################
// resize window
//####################################################################

function resize_window() {
var i=0;
  if (navigator.appName == 'Netscape') i=0;
  if (document.images[0]) 
	     window.resizeTo(document.images[0].width +50, document.images[0].height+160-i);
self.focus();
}


//####################################################################
// date
//####################################################################

function date() {
var now = new Date();
var day = now.getDay(); //0-6
var day_num = now.getDate(); //0-30
var month = now.getMonth(); //0-11
var year = now.getFullYear();
    
var days = new Array(7);
days[0] = "Sunday"
days[1] = "Monday"
days[2] = "Tuesday"
days[3] = "Wednesday"
days[4] = "Thursday"
days[5] = "Friday"
days[6] = "Saturday"

var months = new Array(12);
months[0] = "January"
months[1] = "February"
months[2] = "March"
months[3] = "April"
months[4] = "May"
months[5] = "June"
months[6] = "July"
months[7] = "August"
months[8] = "September"
months[9] = "October"
months[10] = "November"
months[11] = "December"

document.write("<font color=#CC6600 size=2 face=Verdana, Arial, Helvetica, sans-serif>" + days[day] + ", " + months[month] + " " + day_num + ", " + year + "</font>");
}


//####################################################################
// Show Image
//####################################################################
function showImage(model, num) {
	document[model].src = "images/" + model + "_" + num + ".jpg";   //FJ_1.jpg
}

//####################################################################
// 
//####################################################################

function xyz() {

//<script language="javascript">
//<!--

//-->
//</script>

}


//####################################################################
// // simple expand / collapse for DIVs 
//####################################################################
function ExpandCollapseDIV(element_id){
var obj = document.getElementById(element_id);

	if (obj.style.display == 'none'){ 
		obj.style.display = ''; // show div
	} else {
		obj.style.display = 'none'; // hide div
	}
}

