// JavaScript Document


function pops(page) 
{
var props=window.open(page, 'poppage', 'toolbars=0, scrollbars=1, location=0, status=0, menubars=0, resizable=0, width=740, height=500 left = 200, top = 250');

}
function popImg(title,src)
{
	
var props=window.open('', 'ppage', 'toolbars=0, scrollbars=1, location=0, status=0, menubars=0, resizable=1, width=600, height=400 left = 150, top = 100');
 
   var string=""+
"<html>"+
"<head>"+
"<title>"+title+"</title><link rel='stylesheet' href='css/stylesheet.css' type='text/css' />"+
"</head>"+
"<body class='pop'>"+
"<div align='center' ><img src='pics/"+src+"'/><br/>"+title+
"</div>"+
"</body>"+
"</html>"
    props.document.open();
    props.document.write(string);
    props.document.close();
	

}

function popFlash(obj)
{
	
var props=window.open(obj, 'ppage', 'toolbars=0, scrollbars=1, location=0, status=0, menubars=0, resizable=1, width=600, height=800 left = 150, top = 100');
 
 /*  var string=""+
"<html>"+
"<head>"+
"<title>"+title+"</title><link rel='stylesheet' href='css/stylesheet.css' type='text/css' />"+
"</head>"+
"<body class='pop'>"+
"<div align='center' ><img src='pics/"+src+"'/><br/>"+title+
"</div>"+
"</body>"+
"</html>"
    props.document.open();
    props.document.write(string);
    props.document.close();*/
	

}

function popString(title,text)
{
	
var props=window.open('', 'ppage', 'toolbars=0, scrollbars=0, location=0, status=0, menubars=0, resizable=0, width=300, height=200 left = 330, top = 300');
 
   var string=""+
"<html>"+
"<head>"+
"<title>"+title+"</title><link rel='stylesheet' href='css/stylesheet.css' type='text/css' />"+
"</head>"+
"<body class='pop'>"+
"<div align='center' >"+text+
"</div>"+
"</body>"+
"</html>"
    props.document.open();
    props.document.write(string);
    props.document.close();
	

}
function popMovie(film, w,h)
{
var url = 'video/';
if(w>h)
{
	w=w+20;
	h=h+60;
}
else
{
	w=w+70;
	h=h+60;
}
var props=window.open('', 'ppage', 'toolbars=0, scrollbars=0, location=0, status=0, menubars=0, resizable=yes, width='+w+', height='+h+', left = 300, top = 300');

 var string=""+
"<html> "+
"<head>"+
"<title></title><link rel='stylesheet' href='css/stylesheet.css' type='text/css' />"+
"</head>"+
"<body class='video'>"+
"<div align='center' style='position:relative;top:-5px' > <embed type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/MediaPlayer/' src='"+url+""+film+"'  autostart='true'> </embed>"
"</div>"+
"</body>"+
"</html>";
    props.document.open();
    props.document.write(string);
    props.document.close();
	 

}
function popPhucket(film, w,h)
{
var url = 'http://s27.photobucket.com/player.swf?refURL=/&file='+film+'&os=1&ap=1';

var props=window.open(url, 'ppage', 'toolbars=0, scrollbars=0, location=0, status=0, menubars=0, resizable=yes, width='+w+', height='+h+', left = 300, top = 300');

/* var string=""+
"<html> "+
"<head>"+
"<title></title><link rel='stylesheet' href='css/stylesheet.css' type='text/css' />"+
"</head>"+
"<body class='video'>"+
"<div align='center' style='position:relative;top:-5px' > <embed type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/MediaPlayer/' src='"+url+""+film+"'  autostart='true'> </embed>"
"</div>"+
"</body>"+
"</html>";
    props.document.open();
    props.document.write(string);
    props.document.close();*/
	 

}
function popYoutube(film, w,h)
{
var url = 'http://www.youtube.com/v/'+film;

var props=window.open('', 'psage', 'toolbars=0, scrollbars=0, location=0, status=0, menubars=0, resizable=yes, width='+(w+30)+', height='+(h+20)+', left = 300, top = 300');

 var string=""+
"<html> "+
"<head>"+
"<title></title><link rel='stylesheet' href='css/stylesheet.css' type='text/css' />"+
"</head>"+
"<body class='video'>"+
"<div align='center' style='position:relative;top:-5px' > <object width='"+w+"' height='"+h+"'><param name='movie' value='"+url+"'></param><param name='wmode' value='transparent'></param><embed src='"+url+"'  type='application/x-shockwave-flash' wmode='transparent' width='"+w+"' height='"+h+"'></embed></object>"+
"</div>"+
"</body>"+
"</html>";
    props.document.open();
    props.document.write(string);
    props.document.close();
	 

}
function popSlide(nr)
{
//var url = 'http://www.youtube.com/v/'+film;

var props=window.open('', 'psage', 'toolbars=0, scrollbars=0, location=0, status=0, menubars=0, resizable=yes, width='+(570+30)+', height='+(420+20)+', left = 300, top = 300');
//http://widget-36.slide.com/widgets/slideticker.swf
 var string=""+
"<html> "+
"<head>"+
"<title></title><link rel='stylesheet' href='css/stylesheet.css' type='text/css' />"+
"</head>"+
"<body class='video'><div><embed src='http://widget-37.slide.com/widgets/slideticker.swf' type='application/x-shockwave-flash' "+
"quality='high' scale='noscale' salign='l' wmode='transparent' flashvars='cy=un&il=1&channel="+nr+"&site=widget-37.slide.com' "+
"style='width:570px;height:420px' name='flashticker' align='middle'></embed>"+
"</body>"+
"</html>";
    props.document.open();
    props.document.write(string);
    props.document.close();
	 

}
function popSlide2009(nr)
{
//var url = 'http://www.youtube.com/v/'+film;

var props=window.open('', 'psage', 'toolbars=0, scrollbars=0, location=0, status=0, menubars=0, resizable=yes, width='+(570+30)+', height='+(420+20)+', left = 300, top = 300');
//
 var string=""+
"<html> "+
"<head>"+
"<title></title><link rel='stylesheet' href='css/stylesheet.css' type='text/css' />"+
"</head>"+
"<body class='video'><div>"+
"<embed src='http://widget-59.slide.com/widgets/slideticker.swf'"+
" type='application/x-shockwave-flash' quality='high' scale='noscale' salign='l' "+
" wmode='transparent'"+
" flashvars='cy=gn&il=1&channel="+nr+"&site=widget-59.slide.com'"+
" style='width:590px;height:430px' name='flashticker' align='middle'></embed></div>"+
"</body>"+
"</html>";
    props.document.open();
    props.document.write(string);
    props.document.close();
	 

}

function popSlideNew(nr)
{
//var url = 'http://www.youtube.com/v/'+film;

var props=window.open('', 'psage', 'toolbars=0, scrollbars=0, location=0, status=0, menubars=0, resizable=yes, width='+(570+30)+', height='+(420+20)+', left = 300, top = 300');
//
 var string=""+
"<html> "+
"<head>"+
"<title></title><link rel='stylesheet' href='css/stylesheet.css' type='text/css' />"+
"</head>"+
"<body class='video'><div><embed src='http://widget-36.slide.com/widgets/slideticker.swf' type='application/x-shockwave-flash' "+
"quality='high' scale='noscale' salign='l' wmode='transparent' flashvars='cy=un&il=1&channel="+nr+"&site=widget-36.slide.com' "+
"style='width:570px;height:420px' name='flashticker' align='middle'></embed>"+
"</body>"+
"</html>";
    props.document.open();
    props.document.write(string);
    props.document.close();
	 

}
/*
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/sRvSirz2Vvo"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/sRvSirz2Vvo" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>*/




