var close_button 	= "no"		// GALLERY CLOSE BUTTON ON/OFF
right_click_on		= "yes"		// RIGHT CLICK PROTECTION ON
var small_icon 		= "no"		// SHOW THE SMALL POP UP ICON
var popup_text 		= "no"		// HAVE TEXT IN THE POP-UPS
var picture_only	= "yes"		// "yes" FOR ONLY THE PICTURE TO SHOW IN THE POPUPS
border_color		= "ffffff"	// PICTURE OUTLINE COLOR
var background_colors	= "948B6D"	// BACKROUND COLOR OF THE GALLERY POPUP

var view_width 		= 920		// GALLERY POPUP WIDTH
var view_height 	= 690		// GALLERY POPUP HEIGHT


var bi_width 		= 920		// FAQ POPUP HEIGHT
var bi_height 		= 690		// FAQ POPUP HEIGHT

var scrollbarS 		= "0"		// TURN ON POPUP SCROLLBARS "1" FOR ON "0" FOR OFF
var biscrollbarS 	= "0"		// TURN ON bi SCROLLBARS "1" FOR ON "0" FOR OFF

var hide_status		= "yes"		// HIDE LINK STATUS
var status_text 	= "Kring Trekanten"	// TEXT IN THE STATUS BAR

var text_width		= "170"		// WIDTH OF THE TEXT TABLE




function popUp(URL) {
var look='toolbar=0,scrollbars=' + scrollbarS + ',location=0,statusbar=0,menubar=0,resizable=1,width='+view_width+',height='+view_height+','
popwin=window.open("","",look)
popwin.document.open()
popwin.document.write('<html><head><title>Stor bild</title>')
popwin.document.write('<link rel=StyleSheet href="kabisast.css" type="text/css" media="screen">')
   if (right_click_on == "yes") {
popwin.document.write('<META HTTP-EQUIV="imagetoolbar" CONTENT="no">')
popwin.document.write('<script language="JavaScript">')
popwin.document.write('function noRightClick() {')
popwin.document.write('if (event.button==2) {')
popwin.document.write('alert(\'You may not right mouse click this page.\')')
popwin.document.write('}')
popwin.document.write('}')
popwin.document.write('document.onmousedown=noRightClick')
popwin.document.write('</script>')
}
popwin.document.write('</head>')
popwin.document.write('<body bgcolor="#'+background_colors+'" leftmargin=0 rightmargin=0 topmargin=0 bottommargin=0 marginheight=0 marginwidth=0>')
popwin.document.write('<TABLE cellpadding=0 cellspacing=0 border=0 width="100%" height="100%" ><tr><td align="center">')
popwin.document.write('<br>')
popwin.document.write('<TABLE cellpadding="0" cellspacing="0" border="0" bordercolor="#' + border_color + '" style="border-collapse:collapse"><tr><td>')
popwin.document.write('<img src="'+URL+'">')

popwin.document.write('</td></tr></table><br>')


popwin.document.write('</td></tr><tr><td valign="bottom" align="center">')
popwin.document.write('<TABLE cellpadding="0" cellspacing="1" border="0" width="100%"><tr><td  width="50%">')
   if (close_button == "yes") {
popwin.document.write('<form style="margin: 0px"><input type="button" value="Stäng" onmouseover="this.className=\'buttonon-popups\'" onmouseout="this.className=\'button-popups\'" class="button-popups" onClick=\'self.close()\'></form>')
}
   
popwin.document.write('</td></tr></table>')
popwin.document.write('</td></tr></table>')
popwin.document.write('</body>')
popwin.document.close()
}





function popUpbi(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=' + biscrollbarS + ',location=0,statusbar=0,menubar=0,resizable=1,width='+bi_width+',height='+bi_height+'');");
}


if (hide_status == "yes") {

function hidestatus(){
window.status=status_text
return true
}

if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)

document.onmouseover=hidestatus
document.onmouseout=hidestatus

}


