// Otvara sliku u popup-u veličine slike
function showBanner(path, width, height) {
	var ajmo = window.open('', 'banner_preview', 'width='+width+',height='+height+',top='+(screen.height/2-(height/2))+',left='+(screen.width/2-(width/2)));
	ajmo.document.write('<html>\n<head>\n<title>Vidi</title>\n</head>\n');
	ajmo.document.write('<body marginwidth=0 marginheight=0 topmargin=0 leftmargin=0>\n');

	if( path.substring( (path.length-3),path.length )=='swf' ) {
		ajmo.document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 		 codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" WIDTH='+width+' HEIGHT='+height+'><PARAM NAME=movie VALUE="'+path+'"> <PARAM NAME=quality VALUE=high> <EMBED src="'+path+'" quality=high WIDTH='+width+' HEIGHT='+height+' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=Shockwav eFlash"></EMBED> </OBJECT>');
	} else {
		ajmo.document.write('<img src="'+path+'" width='+width+' height='+height+' border=0>');
	}

	ajmo.document.write('</body>\n');
	ajmo.document.write('</html>\n');
	ajmo.document.close();

}

// Otvara sliku u popup-u veličine slike
function showBannerWithLink(path, width, height, link) {
	var ajmo = window.open('', 'banner_preview', 'width='+width+',height='+height+',top='+(screen.height/2-(height/2))+',left='+(screen.width/2-(width/2)));
	ajmo.document.write('<html>\n<head>\n<title>Vidi</title>\n</head>\n');
	ajmo.document.write('<body marginwidth=0 marginheight=0 topmargin=0 leftmargin=0>\n');

	if( path.substring( (path.length-3),path.length )=='swf' ) {
		ajmo.document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 		 codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" WIDTH='+width+' HEIGHT='+height+'><PARAM NAME=movie VALUE="'+path+'"> <PARAM NAME=quality VALUE=high> <EMBED src="'+path+'" quality=high WIDTH='+width+' HEIGHT='+height+' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=Shockwav eFlash"></EMBED> </OBJECT>');
	} else {
		ajmo.document.write('<a href="'+ link +'" target="_blank"><img src="'+path+'" width='+width+' height='+height+' border=0></a>');
	}

	ajmo.document.write('</body>\n');
	ajmo.document.write('</html>\n');
	ajmo.document.close();

}

function bitdefender() {
	var path = 'http://www.vidi.hr/banner/bitdefender/virlist_05_04.gif';
	var width = '332';
	var height = '314';

	var bd = window.open('', 'bitdefender_preview', 'width='+width+',height='+height+',top='+(screen.height/2-(height/2))+',left='+(screen.width/2-(width/2)));
	bd.document.write('<html>\n<head>\n<title>Bitdefender lista virusa</title>\n</head>\n');
	bd.document.write('<body marginwidth=0 marginheight=0 topmargin=0 leftmargin=0>\n');

	if( path.substring( (path.length-3),path.length )=='swf' ) {
		bd.document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 		 codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" WIDTH='+width+' HEIGHT='+height+'><PARAM NAME=movie VALUE="'+path+'"> <PARAM NAME=quality VALUE=high> <EMBED src="'+path+'" quality=high WIDTH='+width+' HEIGHT='+height+' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=Shockwav eFlash"></EMBED> </OBJECT>');
	} else {
		bd.document.write('<img src="'+path+'" width='+width+' height='+height+' border=0>');
	}

	bd.document.write('</body>\n');
	bd.document.write('</html>\n');
	bd.document.close();
}

// showBannerWithLink('http://www.vidi.hr/banner/popup/popup_prijava2006.jpg', 300, 300, 'http://www.vidi.hr/prijava2006/');
