﻿// JScript File
function genFlashHeader() {

    var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
    if(hasRightVersion) {  // if we've detected an acceptable version
      var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" width="872" height="198">'
      + '<param name="movie" value="flash/head.swf">'
      + '<param name="quality" value="high">'
      + '<param name="wmode" value="transparent">'
      + '<embed src="flash/head.swf" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="872" height="198"></embed>'
      + '</object>'
      document.write(oeTags);   // embed the flash movie
    } else {  // flash is too old or we can't detect the plugin
      var alternateContent ='This content requires the Macromedia Flash Player 8.'
        + '<a href=http://www.macromedia.com/go/getflash/>Get Flash</a>';
      document.write(alternateContent);  // insert non-flash content
    }
    
}

function genFlashPodrska() {

    var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
    if(hasRightVersion) {  // if we've detected an acceptable version
      var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" width="198" height="68">'
      + '<param name="movie" value="flash/podrska.swf">'
      + '<param name="quality" value="high">'
      + '<param name="wmode" value="transparent">'
      + '<embed src="flash/podrska.swf" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="198" height="68"></embed>'
      + '</object>'
      document.write(oeTags);   // embed the flash movie
    } else {  // flash is too old or we can't detect the plugin
      var alternateContent ='This content requires the Macromedia Flash Player 8.'
        + '<a href=http://www.macromedia.com/go/getflash/>Get Flash</a>';
      document.write(alternateContent);  // insert non-flash content
    }
    
}

function genFlashForum() {

    var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
    if(hasRightVersion) {  // if we've detected an acceptable version
      var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" width="198" height="68">'
      + '<param name="movie" value="flash/forum.swf">'
      + '<param name="quality" value="high">'
      + '<param name="wmode" value="transparent">'
      + '<embed src="flash/forum.swf" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="198" height="68"></embed>'
      + '</object>'
      document.write(oeTags);   // embed the flash movie
    } else {  // flash is too old or we can't detect the plugin
      var alternateContent ='This content requires the Macromedia Flash Player 8.'
        + '<a href=http://www.macromedia.com/go/getflash/>Get Flash</a>';
      document.write(alternateContent);  // insert non-flash content
    }
    
}

function genFlashDomene() {

    var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
    if(hasRightVersion) {  // if we've detected an acceptable version
      var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" width="198" height="68">'
      + '<param name="movie" value="flash/domene.swf">'
      + '<param name="quality" value="high">'
      + '<param name="wmode" value="transparent">'
      + '<embed src="flash/domene.swf" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="198" height="68"></embed>'
      + '</object>'
      document.write(oeTags);   // embed the flash movie
    } else {  // flash is too old or we can't detect the plugin
      var alternateContent ='This content requires the Macromedia Flash Player 8.'
        + '<a href=http://www.macromedia.com/go/getflash/>Get Flash</a>';
      document.write(alternateContent);  // insert non-flash content
    }
    
}

function genFlashChat() {

    var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
    if(hasRightVersion) {  // if we've detected an acceptable version
      var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" width="198" height="68">'
      + '<param name="movie" value="flash/chat.swf">'
      + '<param name="quality" value="high">'
      + '<param name="wmode" value="transparent">'
      + '<embed src="flash/chat.swf" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="198" height="68"></embed>'
      + '</object>'
      document.write(oeTags);   // embed the flash movie
    } else {  // flash is too old or we can't detect the plugin
      var alternateContent ='This content requires the Macromedia Flash Player 8.'
        + '<a href=http://www.macromedia.com/go/getflash/>Get Flash</a>';
      document.write(alternateContent);  // insert non-flash content
    }
    
}

function Popup_slika1() {
    var width = 684;
    var height = 500;
    var left = ((screen.width) / 2) - (width / 2);
    var top = ((screen.height) / 2) - (height / 2);   
    window.open("uploads/topologija-mi.jpg", "", "top=" + top + ",left=" + left + ",height=" + height + ",width=" + width + ",status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=no,titlebar=no");
}